Extra Features
This commit is contained in:
@@ -50,6 +50,7 @@ const (
|
||||
IF = "IF"
|
||||
ELSE = "ELSE"
|
||||
RETURN = "RETURN"
|
||||
WHILE = "WHILE"
|
||||
)
|
||||
|
||||
var keywords = map[string]TokenType{
|
||||
@@ -60,6 +61,7 @@ var keywords = map[string]TokenType{
|
||||
"if": IF,
|
||||
"else": ELSE,
|
||||
"return": RETURN,
|
||||
"while": WHILE,
|
||||
}
|
||||
|
||||
func LookupIdent(ident string) TokenType {
|
||||
|
||||
Reference in New Issue
Block a user