20 lines
329 B
Go
20 lines
329 B
Go
package runner
|
|
|
|
var KeywordTypes = map[string]TokenType{
|
|
"and": AND,
|
|
"class": CLASS,
|
|
"else": ELSE,
|
|
"false": FALSE,
|
|
"for": FOR,
|
|
"fun": FUN,
|
|
"if": IF,
|
|
"nil": NIL,
|
|
"or": OR,
|
|
"print": PRINT,
|
|
"return": RETURN,
|
|
"super": SUPER,
|
|
"this": THIS,
|
|
"true": TRUE,
|
|
"var": VAR,
|
|
"while": WHILE,
|
|
}
|