Implemented switch statements
This commit is contained in:
@ -151,6 +151,8 @@ func Tokenize(buffer []byte) List {
|
||||
kind = Loop
|
||||
case "return":
|
||||
kind = Return
|
||||
case "switch":
|
||||
kind = Switch
|
||||
}
|
||||
|
||||
tokens = append(tokens, Token{Kind: kind, Position: position, Length: Length(len(identifier))})
|
||||
|
Reference in New Issue
Block a user