Added SymbolType.STRUCT enum

Added support for SymbolType.STRUCT to getSymbolType
This commit is contained in:
Tristan B. Kildaire 2021-05-04 19:08:55 +02:00
parent 8661d2e264
commit ef3891530a
1 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public enum SymbolType
GOTO,
DO,
DELETE,
STRUCT,
UNKNOWN
}
@ -206,6 +207,11 @@ public SymbolType getSymbolType(Token tokenIn)
{
return SymbolType.NUMBER_LITERAL;
}
/* `struct` */
else if(cmp(token, "struct") == 0)
{
return SymbolType.STRUCT;
}
/* `if` */
else if(cmp(token, "if") == 0)
{