summaryrefslogtreecommitdiff
path: root/data/skeletons
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-02-05 07:26:42 +0100
committerAkim Demaille <akim.demaille@gmail.com>2020-02-05 07:40:07 +0100
commitd727e0ff2320886de8d319e2622391456dfb3d5e (patch)
treeb83eef75693b03c2b5e57416c28f471837df8561 /data/skeletons
parent37aeda6fb300aa5f4b9db2f2e0d7e4d833807103 (diff)
downloadbison-d727e0ff2320886de8d319e2622391456dfb3d5e.tar.gz
traces: don't print the stack before the gotos
The C, C++ and D skeletons used to show the stack right after popping the stack during the reduction. Now that the stack is printed after reaching a new state, that has become useless: Entering state 1 Stack now 0 1 Reducing stack by rule 5 (line 83): $1 = token "number" (1) -> $$ = nterm exp (1) Stack now 0 Entering state 8 Stack now 0 8 Remove the "Stack now 0" line. * data/skeletons/lalr1.cc, data/skeletons/lalr1.d, * data/skeletons/lalr1.java, data/skeletons/yacc.c: Here.
Diffstat (limited to 'data/skeletons')
-rw-r--r--data/skeletons/lalr1.cc1
-rw-r--r--data/skeletons/lalr1.d3
-rw-r--r--data/skeletons/lalr1.java1
-rw-r--r--data/skeletons/yacc.c1
4 files changed, 0 insertions, 6 deletions
diff --git a/data/skeletons/lalr1.cc b/data/skeletons/lalr1.cc
index 7e080ec0..35dedce9 100644
--- a/data/skeletons/lalr1.cc
+++ b/data/skeletons/lalr1.cc
@@ -993,7 +993,6 @@ b4_dollar_popdef])[]dnl
YY_SYMBOL_PRINT ("-> $$ =", yylhs);
yypop_ (yylen);
yylen = 0;
- YY_STACK_PRINT ();
// Shift the result of the reduction.
yypush_ (YY_NULLPTR, YY_MOVE (yylhs));
diff --git a/data/skeletons/lalr1.d b/data/skeletons/lalr1.d
index 1b4fda0e..cb1dc4ca 100644
--- a/data/skeletons/lalr1.d
+++ b/data/skeletons/lalr1.d
@@ -344,9 +344,6 @@ b4_user_union_members
yystack.pop (yylen);
yylen = 0;
-]b4_parse_trace_if([[
- if (0 < yydebug)
- yystack.print (yyDebugStream);]])[
/* Shift the result of the reduction. */
yyn = yyr1_[yyn];
diff --git a/data/skeletons/lalr1.java b/data/skeletons/lalr1.java
index b28e7bbd..7f5e4a1a 100644
--- a/data/skeletons/lalr1.java
+++ b/data/skeletons/lalr1.java
@@ -482,7 +482,6 @@ m4_define([b4_define_state],[[
yystack.pop (yylen);
yylen = 0;
-
/* Shift the result of the reduction. */
int yystate = yyLRGotoState (yystack.stateAt (0), yyr1_[yyn]);
yystack.push (yystate, yyval]b4_locations_if([, yyloc])[);
diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index 72e6cd47..8883a987 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -1823,7 +1823,6 @@ yyreduce:
YYPOPSTACK (yylen);
yylen = 0;
- YY_STACK_PRINT (yyss, yyssp);
*++yyvsp = yyval;]b4_locations_if([
*++yylsp = yyloc;])[