module support
Some checks failed
Build / build (push) Successful in 10m22s
Test / build (push) Failing after 15m54s

This commit is contained in:
Chuck Smith
2024-03-26 16:49:38 -04:00
parent 6d234099d1
commit 110152a139
21 changed files with 541 additions and 100 deletions

View File

@@ -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 {