Website Summary Files Commits Branches @commit @diff @stats
path: root / demo / bison / calc / parser.tab.c
diff options
context:
space:
mode:
Commitd57561ef43c80fa6050e80f4876a45ba886818ff (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-10-21 21:29:04 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-10-21 21:29:31 +0300
Filesc2d4726a7b8093cafb03853943c4752fa643fa2b /demo/bison/calc/parser.tab.c
IPL-d57561ef43c80fa6050e80f4876a45ba886818ff.tar
IPL-d57561ef43c80fa6050e80f4876a45ba886818ff.tar.gz
IPL-d57561ef43c80fa6050e80f4876a45ba886818ff.zip
Parent1384d7ea4e80eaa6b195195af81de974575b2bb0 (diff)
Debugging options for the bison parser
1 files changed, 5 insertions, 1 deletions
-rw-r--r--demo/bison/calc/parser.tab.c6
diff --git a/demo/bison/calc/parser.tab.c b/demo/bison/calc/parser.tab.c
index 11422b8..0948b48 100644
--- a/demo/bison/calc/parser.tab.c
+++ b/demo/bison/calc/parser.tab.c
@@ -92,7 +92,7 @@ int yyerror(const char* error);
# define YY_YY_PARSER_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
-# define YYDEBUG 0
+# define YYDEBUG 1
#endif
#if YYDEBUG
extern int yydebug;
@@ -1478,6 +1478,10 @@ int yyerror(const char* error)
int main()
{
+#if YYDEBUG
+ yydebug = 1;
+#endif
+
yyparse();
return 0;
}