Implemented else blocks
This commit is contained in:
parent
ff86dfe590
commit
e537e543cc
17 changed files with 118 additions and 25 deletions
|
@ -20,6 +20,7 @@ const (
|
|||
ArrayEnd // ]
|
||||
_keywords // <keywords>
|
||||
Assert // assert
|
||||
Else // else
|
||||
If // if
|
||||
Import // import
|
||||
Loop // loop
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue