Added local keyword
This commit is contained in:
parent
6f6306c064
commit
5483073347
2 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,7 @@ namespace arookas {
|
||||||
class sunParser {
|
class sunParser {
|
||||||
static string[] keywords = {
|
static string[] keywords = {
|
||||||
"import",
|
"import",
|
||||||
"builtin", "function", "var", "const",
|
"builtin", "function", "var", "const", "local",
|
||||||
"if", "while", "do", "for",
|
"if", "while", "do", "for",
|
||||||
"return", "break", "continue",
|
"return", "break", "continue",
|
||||||
"yield", "exit", "lock", "unlock", "int", "float", "typeof",
|
"yield", "exit", "lock", "unlock", "int", "float", "typeof",
|
||||||
|
|
|
@ -18,6 +18,7 @@ BUILTIN = "builtin"
|
||||||
FUNCTION = "function"
|
FUNCTION = "function"
|
||||||
VAR = "var"
|
VAR = "var"
|
||||||
CONST = "const"
|
CONST = "const"
|
||||||
|
LOCAL = "local"
|
||||||
|
|
||||||
IF = "if"
|
IF = "if"
|
||||||
ELSE = "else"
|
ELSE = "else"
|
||||||
|
|
Loading…
Reference in a new issue