mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
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.
This commit is contained in:
@@ -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);]])[
|
||||
|
||||
|
||||
Reference in New Issue
Block a user