From 0096af85be03af7312fbb232b7f4a3a5c28417de Mon Sep 17 00:00:00 2001 From: Eatswap Date: Sun, 11 Dec 2022 19:54:56 +0800 Subject: [PATCH] fix: shift/reduce conflict (1) --- DragonLisp.y | 2 -- Makefile | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/DragonLisp.y b/DragonLisp.y index f7c8a13..253e7ba 100644 --- a/DragonLisp.y +++ b/DragonLisp.y @@ -162,8 +162,6 @@ S-Expr-var-op var-op-tokens : DEFVAR { std::printf("Parsed var-op-tokens -> DEFVAR\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"); } ; diff --git a/Makefile b/Makefile index 1e2a695..d4ec1c2 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ LEXFLAGS ?= -T --hex # Syntax Analysis YACC = bison -YACCFLAGS ?= -Wall --color -v -t -d +YACCFLAGS ?= -Wall --color -v -t -d -Wcounterexamples LANG = c++ # Compile C/C++ Code