mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33: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>
|
||||
|
||||
* 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
|
||||
TABLE_OBSTACK and FDEFINES file. Also notice any %token, %left,
|
||||
etc. found there. */
|
||||
/* obstack_1grow (&table_obstack, '\n'); */
|
||||
|
||||
read_declarations ();
|
||||
/* 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
|
||||
guards and actions. */
|
||||
readgram ();
|
||||
/* Now we know whether we need the line-number stack. If we do,
|
||||
write its type into the .tab.h file. */
|
||||
/* if (defines_flag)
|
||||
reader_output_yylsp (&defines_obstack); */
|
||||
#if 0
|
||||
if (defines_flag)
|
||||
reader_output_yylsp (&defines_obstack);
|
||||
#endif
|
||||
/* Write closing delimiters for actions and guards. */
|
||||
/* output_trailers (); */
|
||||
/* if (locations_flag)
|
||||
obstack_sgrow (&table_obstack, "#define YYLSP_NEEDED 1\n\n"); */
|
||||
#if 0
|
||||
output_trailers ();
|
||||
if (locations_flag)
|
||||
obstack_sgrow (&table_obstack, "#define YYLSP_NEEDED 1\n\n");
|
||||
#endif
|
||||
/* Assign the symbols their symbol numbers. Write #defines for the
|
||||
token symbols into FDEFINES if requested. */
|
||||
packsymbols ();
|
||||
|
||||
Reference in New Issue
Block a user