Website Summary Files Commits Branches @commit @diff @stats
path: root / demo / bison / calc / parser.y
diff options
context:
space:
mode:
1 files changed, 4 insertions, 0 deletions
-rw-r--r--demo/bison/calc/parser.y4
diff --git a/demo/bison/calc/parser.y b/demo/bison/calc/parser.y
index 7a9aefb..098382a 100644
--- a/demo/bison/calc/parser.y
+++ b/demo/bison/calc/parser.y
@@ -41,6 +41,10 @@ int yyerror(const char* error)
int main()
{
+#if YYDEBUG
+ yydebug = 1;
+#endif
+
yyparse();
return 0;
}