Added SymbolType.STRUCT enum
Added support for SymbolType.STRUCT to getSymbolType
This commit is contained in:
parent
8661d2e264
commit
ef3891530a
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue