diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-02-02 07:50:50 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-02-02 11:33:16 +0100 |
commit | fe14fb1c4026b96907efb77fc242a007558b08de (patch) | |
tree | 4509d14c5331fae22368fc4d6163bddb3b3c57d2 /data/skeletons | |
parent | 88d1ab421a4730504aabd1e61e8380027ec96545 (diff) | |
download | bison-fe14fb1c4026b96907efb77fc242a007558b08de.tar.gz |
java: use the same calc tests as the other skeletons
* tests/local.at (AT_LANG_MATCH): New.
(AT_YYERROR_DECLARE(java), AT_YYERROR_DECLARE_EXTERN(java)): New.
* tests/calc.at: The grammar file for Java is quite different for the
others, and continuing to assemble it from pieces makes the grammar
file hard to understand. Let's also dispatch on the language to
assemble it, and isolate Java from the others.
Most of this comes from java.at.
Diffstat (limited to 'data/skeletons')
-rw-r--r-- | data/skeletons/lalr1.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/skeletons/lalr1.java b/data/skeletons/lalr1.java index de912383..e9da8cc5 100644 --- a/data/skeletons/lalr1.java +++ b/data/skeletons/lalr1.java @@ -565,7 +565,7 @@ m4_define([b4_define_state],[[ ]b4_location_type[ yyloc;]])[ ]b4_push_if([],[[ ]b4_define_state[]b4_parse_trace_if([[ - yycdebug ("Starting parse\n");]])[ + yycdebug ("Starting parse");]])[ yyerrstatus_ = 0; yynerrs = 0; @@ -599,7 +599,7 @@ b4_dollar_popdef[]dnl /* New state. Unlike in the C/C++ skeletons, the state is already pushed when we come here. */ case YYNEWSTATE:]b4_parse_trace_if([[ - yycdebug ("Entering state " + yystate + "\n"); + yycdebug ("Entering state " + yystate); if (0 < yydebug) yystack.print (yyDebugStream);]])[ |