X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/17da6427fe433be974371d1b4f56061c0903776d..490abf53b1391c2bc49564bff71ac400880323ad:/src/bison.simple diff --git a/src/bison.simple b/src/bison.simple index 1217108f..56e63c17 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -44,8 +44,10 @@ #define yynerrs %%prefix##nerrs /* Copy the user declarations. */ +#line %%input_line "%%filename" %%prologue +#line %%line "%%skeleton" #ifndef __cplusplus # ifndef __STDC__ # define const @@ -96,6 +98,10 @@ # endif /* alloca not defined */ #endif /* YYSTACK_USE_ALLOCA not defined */ +#ifndef YYSTACK_USE_ALLOCA +# define YYSTACK_USE_ALLOCA 0 +#endif + #if YYSTACK_USE_ALLOCA # define YYSTACK_ALLOC alloca #else @@ -109,8 +115,9 @@ # define YYDEBUG %%debug #endif +#line %%input_line "%%filename" #ifndef YYSTYPE -# define YYSTYPE %%stype +typedef %%stype YYSTYPE; #endif #ifndef YYLTYPE @@ -278,6 +285,9 @@ while (0) Current.last_column = Rhs[N].last_column; #endif +/* Definition of YYLSP_NEEDED. */ +#define YYLSP_NEEDED %%locations_flag + /* YYLEX -- calling `yylex' with the right arguments. */ #if YYPURE @@ -363,7 +373,7 @@ __yy_memcpy (char *to, const char *from, unsigned int count) -#line %%line "%%filename" +#line %%line "%%skeleton" /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. @@ -506,13 +516,13 @@ yyparse (YYPARSE_PARAM_ARG) /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ -yynewstate: + yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ yyssp++; -yysetstate: + yysetstate: *yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) @@ -755,9 +765,9 @@ yyreduce: #endif switch (yyn) { - %%action /* The action file replaces this line. */ + %%action } -#line %%line "%%filename" +#line %%line "%%skeleton" yyvsp -= yylen; yyssp -= yylen; @@ -987,5 +997,5 @@ yyabortlab: return 1; } +#line %%input_line "%%filename" %%epilogue -