]> git.saurik.com Git - bison.git/commitdiff
Output token definitions before the first part of user declarations.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Oct 2002 23:20:23 +0000 (23:20 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Oct 2002 23:20:23 +0000 (23:20 +0000)
data/glr.c
data/lalr1.cc
data/yacc.c

index 6824d2bf310619b09b23bc5790439dd58784b945..0868f0256147a9fcf50c848c40232dc72308e948 100644 (file)
@@ -136,10 +136,10 @@ b4_copyright([Skeleton parser for GLR parsing with Bison], [2002])
 #define yynerrs b4_prefix[]nerrs
 b4_location_if([#define yylloc b4_prefix[]lloc])])
 
-/* Copy the first part of user declarations.  */
-b4_pre_prologue
+b4_token_defines(b4_tokens)
 
-b4_token_defines(b4_tokens)[
+/* Copy the first part of user declarations.  */
+b4_pre_prologue[
 
 /* Enabling traces.  */
 #ifndef YYDEBUG
index 5f1490a52101107fc2f8f6e3a82137bc3921e3df..2e4d47da0d3187ac7bdf3c55599f77ad50016b5e 100644 (file)
@@ -104,15 +104,14 @@ b4_copyright([C++ Skeleton parser for LALR(1) parsing with Bison],
 /* Using locations.  */
 #define YYLSP_NEEDED b4_locations_flag
 
+b4_token_defines(b4_tokens)
+
 /* Copy the first part of user declarations.  */
 b4_pre_prologue
 
 /* Line __line__ of __file__.  */
 #line __oline__ "__ofile__"
 
-/* Tokens.  */
-b4_token_defines(b4_tokens)
-
 /* Enabling traces.  */
 #ifndef YYDEBUG
 # define YYDEBUG b4_debug
index aa6cdf6a3f4a1da98dad9c5f904e142949b386ca..31ee8436c85111bbd88ea622c91ad34208ec8ebf 100644 (file)
@@ -166,11 +166,11 @@ m4_if(b4_prefix[], [yy], [],
 #define yynerrs b4_prefix[]nerrs
 b4_location_if([#define yylloc b4_prefix[]lloc])])
 
+b4_token_defines(b4_tokens)
+
 /* Copy the first part of user declarations.  */
 b4_pre_prologue
 
-b4_token_defines(b4_tokens)
-
 /* Enabling traces.  */
 #ifndef YYDEBUG
 # define YYDEBUG b4_debug