mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
* src/output.c (output_actions): Clean up.
* src/reader.c (reader): Clean up, CPP-out useless code.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-08-28 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
|
* src/output.c (output_actions): Clean up.
|
||||||
|
* src/reader.c (reader): Clean up, CPP-out useless code.
|
||||||
|
|
||||||
2001-08-28 Pascal Bart <pascal.bart@epita.fr>
|
2001-08-28 Pascal Bart <pascal.bart@epita.fr>
|
||||||
|
|
||||||
* src/output.c (output): Copy attrs_obstack in the '%%definitions'
|
* src/output.c (output): Copy attrs_obstack in the '%%definitions'
|
||||||
|
|||||||
20
src/reader.c
20
src/reader.c
@@ -2008,22 +2008,26 @@ reader (void)
|
|||||||
/* Read the declaration section. Copy %{ ... %} groups to
|
/* Read the declaration section. Copy %{ ... %} groups to
|
||||||
TABLE_OBSTACK and FDEFINES file. Also notice any %token, %left,
|
TABLE_OBSTACK and FDEFINES file. Also notice any %token, %left,
|
||||||
etc. found there. */
|
etc. found there. */
|
||||||
/* obstack_1grow (&table_obstack, '\n'); */
|
|
||||||
|
|
||||||
read_declarations ();
|
read_declarations ();
|
||||||
/* Start writing the guard and action files, if they are needed. */
|
/* Start writing the guard and action files, if they are needed. */
|
||||||
/* output_headers (); */
|
#if 0
|
||||||
|
output_headers ();
|
||||||
|
#endif
|
||||||
/* Read in the grammar, build grammar in list form. Write out
|
/* Read in the grammar, build grammar in list form. Write out
|
||||||
guards and actions. */
|
guards and actions. */
|
||||||
readgram ();
|
readgram ();
|
||||||
/* Now we know whether we need the line-number stack. If we do,
|
/* Now we know whether we need the line-number stack. If we do,
|
||||||
write its type into the .tab.h file. */
|
write its type into the .tab.h file. */
|
||||||
/* if (defines_flag)
|
#if 0
|
||||||
reader_output_yylsp (&defines_obstack); */
|
if (defines_flag)
|
||||||
|
reader_output_yylsp (&defines_obstack);
|
||||||
|
#endif
|
||||||
/* Write closing delimiters for actions and guards. */
|
/* Write closing delimiters for actions and guards. */
|
||||||
/* output_trailers (); */
|
#if 0
|
||||||
/* if (locations_flag)
|
output_trailers ();
|
||||||
obstack_sgrow (&table_obstack, "#define YYLSP_NEEDED 1\n\n"); */
|
if (locations_flag)
|
||||||
|
obstack_sgrow (&table_obstack, "#define YYLSP_NEEDED 1\n\n");
|
||||||
|
#endif
|
||||||
/* Assign the symbols their symbol numbers. Write #defines for the
|
/* Assign the symbols their symbol numbers. Write #defines for the
|
||||||
token symbols into FDEFINES if requested. */
|
token symbols into FDEFINES if requested. */
|
||||||
packsymbols ();
|
packsymbols ();
|
||||||
|
|||||||
Reference in New Issue
Block a user