Make = a separate token from SET

This does break backwards compat, but if anyone complains I'm gonna be mad
This commit is contained in:
ISSOtm
2020-02-10 00:49:45 +01:00
parent c424a9bf5a
commit 9ed6e9af65
2 changed files with 6 additions and 1 deletions

View File

@@ -565,6 +565,7 @@ static void strsubUTF8(char *dest, const char *src, uint32_t pos, uint32_t len)
%token <tzSym> T_ID
%token <tzSym> T_POP_EQU
%token <tzSym> T_POP_SET
%token <tzSym> T_POP_EQUAL
%token <tzSym> T_POP_EQUS
%token T_POP_INCLUDE T_POP_PRINTF T_POP_PRINTT T_POP_PRINTV T_POP_PRINTI
@@ -973,6 +974,10 @@ set : T_LABEL T_POP_SET const
{
sym_AddSet($1, constexpr_GetConstantValue(&$3));
}
| T_LABEL T_POP_EQUAL const
{
sym_AddSet($1, constexpr_GetConstantValue(&$3));
}
;
include : T_POP_INCLUDE string

View File

@@ -540,7 +540,7 @@ const struct sLexInitString lexer_strings[] = {
/* Handled before in list of CPU instructions */
/* {"set", T_POP_SET}, */
{"=", T_POP_SET},
{"=", T_POP_EQUAL},
{"pushs", T_POP_PUSHS},
{"pops", T_POP_POPS},