Skip to content

Commit

Permalink
put user code after yyguts init; resolves #1744516
Browse files Browse the repository at this point in the history
Signed-off-by: Will Estes <[email protected]>
  • Loading branch information
Robert Minsk authored and westes committed Aug 8, 2012
1 parent 11b7c6c commit ec2fdb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flex.skl
Original file line number Diff line number Diff line change
Expand Up @@ -1277,8 +1277,6 @@ m4_ifdef( [[M4_YY_NOT_REENTRANT]],
]])
]])

%% [7.0] user's declarations go here

m4_ifdef( [[M4_YY_BISON_LVAL]],
[[
yylval = yylval_param;
Expand Down Expand Up @@ -1334,6 +1332,9 @@ m4_ifdef( [[M4_YY_USES_REJECT]],
yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );
}

{
%% [7.0] user's declarations go here

while ( 1 ) /* loops until end-of-file is reached */
{
%% [8.0] yymore()-related code goes here
Expand Down Expand Up @@ -1491,6 +1492,7 @@ do_action: /* This label is used only to access EOF actions. */
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
} /* end of user's declarations */
} /* end of yylex */
%ok-for-header

Expand Down

0 comments on commit ec2fdb8

Please sign in to comment.