Output token definitions before the first part of user declarations.

This commit is contained in:
Paul Eggert
2002-10-12 23:20:23 +00:00
parent 095b9f05c3
commit 17acead581
3 changed files with 7 additions and 8 deletions

View 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

View 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

View 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