module support
This commit is contained in:
@@ -84,6 +84,8 @@ const (
|
||||
ELSE = "ELSE"
|
||||
RETURN = "RETURN"
|
||||
WHILE = "WHILE"
|
||||
// IMPORT the `import` keyword (import)
|
||||
IMPORT = "IMPORT"
|
||||
)
|
||||
|
||||
var keywords = map[string]TokenType{
|
||||
@@ -95,6 +97,7 @@ var keywords = map[string]TokenType{
|
||||
"else": ELSE,
|
||||
"return": RETURN,
|
||||
"while": WHILE,
|
||||
"import": IMPORT,
|
||||
}
|
||||
|
||||
func LookupIdent(ident string) TokenType {
|
||||
|
||||
Reference in New Issue
Block a user