Implemented else blocks

This commit is contained in:
Eduard Urbach 2024-07-30 16:36:33 +02:00
parent ff86dfe590
commit e537e543cc
Signed by: eduard
GPG key ID: 49226B848C78F6C8
17 changed files with 118 additions and 25 deletions

View file

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

View file

@ -143,6 +143,8 @@ func Tokenize(buffer []byte) List {
kind = Assert
case "if":
kind = If
case "else":
kind = Else
case "import":
kind = Import
case "loop":