From 70bbb098d3b76909d27e0bff3c331f774073dfb0 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 23 Jan 2021 00:05:15 +0100 Subject: [PATCH] Remove stale keywords They were removed from the grammar, but not the lexer --- src/asm/lexer.c | 2 -- src/asm/parser.y | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/asm/lexer.c b/src/asm/lexer.c index a92dbe01..706363f6 100644 --- a/src/asm/lexer.c +++ b/src/asm/lexer.c @@ -218,8 +218,6 @@ static struct KeywordMapping { {"PRINTV", T_POP_PRINTV}, {"PRINTF", T_POP_PRINTF}, {"EXPORT", T_POP_EXPORT}, - {"XDEF", T_POP_XDEF}, - {"GLOBAL", T_POP_GLOBAL}, {"DS", T_POP_DS}, {"DB", T_POP_DB}, {"DW", T_POP_DW}, diff --git a/src/asm/parser.y b/src/asm/parser.y index 7edcb7f2..0ae82123 100644 --- a/src/asm/parser.y +++ b/src/asm/parser.y @@ -500,7 +500,7 @@ enum { %token T_POP_PRINT "PRINT" T_POP_PRINTLN "PRINTLN" %token T_POP_PRINTF "PRINTF" T_POP_PRINTT "PRINTT" T_POP_PRINTV "PRINTV" T_POP_PRINTI "PRINTI" %token T_POP_IF "IF" T_POP_ELIF "ELIF" T_POP_ELSE "ELSE" T_POP_ENDC "ENDC" -%token T_POP_EXPORT "EXPORT" T_POP_GLOBAL "GLOBAL" T_POP_XDEF "XDEF" +%token T_POP_EXPORT "EXPORT" %token T_POP_DB "DB" T_POP_DS "DS" T_POP_DW "DW" T_POP_DL "DL" %token T_POP_SECTION "SECTION" T_POP_FRAGMENT "FRAGMENT" %token T_POP_RB "RB" T_POP_RW "RW" // There is no T_POP_RL, only T_Z80_RL