Added string representation of 'static const' token

No more 'Unknown(-141)' in 'Expecting ...' error message
This commit is contained in:
alexey.lysiuk 2017-11-02 14:45:35 +02:00
parent 62e91b23bd
commit de7d8995d5
2 changed files with 2 additions and 0 deletions

View file

@ -147,4 +147,5 @@ xx(TK_Offset, "'offset'")
xx(TK_Slow, "'slow'") xx(TK_Slow, "'slow'")
xx(TK_Bright, "'bright'") xx(TK_Bright, "'bright'")
xx(TK_Let, "'let'") xx(TK_Let, "'let'")
xx(TK_StaticConst, "'static const'")
#undef xx #undef xx

View file

@ -211,6 +211,7 @@ static void InitTokenMap()
TOKENDEF2(TK_Color, ZCC_COLOR, NAME_Color); TOKENDEF2(TK_Color, ZCC_COLOR, NAME_Color);
TOKENDEF2(TK_Sound, ZCC_SOUND, NAME_Sound); TOKENDEF2(TK_Sound, ZCC_SOUND, NAME_Sound);
TOKENDEF2(TK_Let, ZCC_LET, NAME_let); TOKENDEF2(TK_Let, ZCC_LET, NAME_let);
TOKENDEF2(TK_StaticConst, ZCC_STATICCONST,NAME_Staticconst);
TOKENDEF (TK_Identifier, ZCC_IDENTIFIER); TOKENDEF (TK_Identifier, ZCC_IDENTIFIER);
TOKENDEF (TK_StringConst, ZCC_STRCONST); TOKENDEF (TK_StringConst, ZCC_STRCONST);