Implemented assert keyword

This commit is contained in:
2024-07-25 16:47:25 +02:00
parent f0bc5039ee
commit f4dd9004be
14 changed files with 81 additions and 1 deletions

View File

@ -20,6 +20,7 @@ const (
ArrayStart // [
ArrayEnd // ]
_keywords // <keywords>
Assert // assert
If // if
Import // import
Loop // loop

View File

@ -95,6 +95,8 @@ func Tokenize(buffer []byte) List {
kind := Identifier
switch string(identifier) {
case "assert":
kind = Assert
case "if":
kind = If
case "import":