mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
GCJ's parser requires the tokens to be defined before the prologue.
* data/bison.simple: Output the token definition before the user's prologue. * tests/regression.at (Braces parsing, Duplicate string) (Mixing %token styles): Check the output from bison. (Early token definitions): New.
This commit is contained in:
@@ -175,6 +175,8 @@ m4_if(b4_prefix[], [yy], [],
|
||||
/* Copy the first part of user declarations. */
|
||||
b4_pre_prologue
|
||||
|
||||
b4_token_defines(b4_tokens)
|
||||
|
||||
/* Enabling traces. */
|
||||
#ifndef YYDEBUG
|
||||
# define YYDEBUG b4_debug
|
||||
@@ -312,8 +314,6 @@ union yyalloc
|
||||
|
||||
#endif
|
||||
|
||||
b4_token_defines(b4_tokens)
|
||||
|
||||
/* YYFINAL -- State number of the termination state. */
|
||||
#define YYFINAL b4_final
|
||||
#define YYFLAG b4_flag
|
||||
|
||||
Reference in New Issue
Block a user