* src/bison.simple: Remove a useless #line directive.

s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
* src/output.c (get_lines_number): New.
(output_parser): Adjust, now takes care about the lines of a
output muscles.
Fix line numbering.
(actions_output): Computes the number of lines taken by actions.
(output_master_parser): Insert new skeleton which is the name of
the output parser file name.
This commit is contained in:
Marc Autret
2001-12-16 01:26:25 +00:00
parent a79986b830
commit f0440388e9
3 changed files with 46 additions and 8 deletions

View File

@@ -82,7 +82,8 @@ typedef struct yyltype
/* Copy the user declarations. */
%%prologue
#line %%line "%%skeleton"
/* Line 85 of bison.simple. */
#line %%line "%%parser-file-name"
#include <stdio.h>
@@ -511,8 +512,6 @@ yystpcpy (yydest, yysrc)
#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 *.
It should actually point to an object.
@@ -897,7 +896,8 @@ yyreduce:
{
%%actions
}
#line %%line "%%skeleton"
/* Line 902 of bison.simple. */
#line %%line "%%parser-file-name"
yyvsp -= yylen;
yyssp -= yylen;