mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user