fix: shift/reduce conflict (1)

This commit is contained in:
Eatswap 2022-12-11 19:54:56 +08:00
parent 5d31db1584
commit 0096af85be
Signed by: Eatswap
GPG Key ID: BE661106A1F3FA0B
2 changed files with 1 additions and 3 deletions

View File

@ -162,8 +162,6 @@ S-Expr-var-op
var-op-tokens var-op-tokens
: DEFVAR { std::printf("Parsed var-op-tokens -> DEFVAR\n"); } : DEFVAR { std::printf("Parsed var-op-tokens -> DEFVAR\n"); }
| SETQ { std::printf("Parsed var-op-tokens -> SETQ\n"); } | SETQ { std::printf("Parsed var-op-tokens -> SETQ\n"); }
| INCF { std::printf("Parsed var-op-tokens -> INCF\n"); }
| DECF { std::printf("Parsed var-op-tokens -> DECF\n"); }
| DEFCONSTANT { std::printf("Parsed var-op-tokens -> DEFCONSTANT\n"); } | DEFCONSTANT { std::printf("Parsed var-op-tokens -> DEFCONSTANT\n"); }
; ;

View File

@ -10,7 +10,7 @@ LEXFLAGS ?= -T --hex
# Syntax Analysis # Syntax Analysis
YACC = bison YACC = bison
YACCFLAGS ?= -Wall --color -v -t -d YACCFLAGS ?= -Wall --color -v -t -d -Wcounterexamples
LANG = c++ LANG = c++
# Compile C/C++ Code # Compile C/C++ Code