mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
* src/reader.c (copy_action): When --yacc, don't append a `;'
to the user action: let it fail if lacking. Suggested by Aharon Robbins and Tom Tromey.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2001-12-15 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/reader.c (copy_action): When --yacc, don't append a `;'
|
||||||
|
to the user action: let it fail if lacking.
|
||||||
|
Suggested by Aharon Robbins and Tom Tromey.
|
||||||
|
|
||||||
2001-12-13 Akim Demaille <akim@epita.fr>
|
2001-12-13 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
Version 1.30g.
|
Version 1.30g.
|
||||||
|
|||||||
5
NEWS
5
NEWS
@@ -3,6 +3,11 @@ Bison News
|
|||||||
|
|
||||||
Changes in version 1.30h:
|
Changes in version 1.30h:
|
||||||
|
|
||||||
|
* User Actions
|
||||||
|
Bison has always permitted actions such as { $$ = $1 }: it adds the
|
||||||
|
ending semicolon. Now if in Yacc compatibility mode, the semicolon
|
||||||
|
is no longer output: one has to write { $$ = $1; }.
|
||||||
|
|
||||||
Changes in version 1.30g:
|
Changes in version 1.30g:
|
||||||
|
|
||||||
* Bug fixes
|
* Bug fixes
|
||||||
|
|||||||
2
THANKS
2
THANKS
@@ -2,6 +2,7 @@ Bison was originally written by Robert Corbett. It would not be what
|
|||||||
it is today without the invaluable help of these people:
|
it is today without the invaluable help of these people:
|
||||||
|
|
||||||
Airy Andre Airy.Andre@edf.fr
|
Airy Andre Airy.Andre@edf.fr
|
||||||
|
Aharon Robbins arnold@gnu.org
|
||||||
Akim Demaille akim@freefriends.org
|
Akim Demaille akim@freefriends.org
|
||||||
Albert Chin-A-Young china@thewrittenword.com
|
Albert Chin-A-Young china@thewrittenword.com
|
||||||
Alexander Belopolsky alexb@rentec.com
|
Alexander Belopolsky alexb@rentec.com
|
||||||
@@ -28,6 +29,7 @@ Richard Stallman rms@gnu.org
|
|||||||
Robert Anisko anisko_r@epita.fr
|
Robert Anisko anisko_r@epita.fr
|
||||||
Shura debil_urod@ngs.ru
|
Shura debil_urod@ngs.ru
|
||||||
Tom Lane tgl@sss.pgh.pa.us
|
Tom Lane tgl@sss.pgh.pa.us
|
||||||
|
Tom Tromey tromey@cygnus.com
|
||||||
Wolfram Wagner ww@mpi-sb.mpg.de
|
Wolfram Wagner ww@mpi-sb.mpg.de
|
||||||
Wwp subscript@free.fr
|
Wwp subscript@free.fr
|
||||||
|
|
||||||
|
|||||||
@@ -1125,7 +1125,13 @@ copy_action (symbol_list *rule, int stack_offset)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
obstack_sgrow (&action_obstack, ";\n break;}");
|
/* As a Bison extension, add the ending semicolon. Since some Yacc
|
||||||
|
don't do that, help people using bison as a Yacc finding their
|
||||||
|
missing semicolons. */
|
||||||
|
if (yacc_flag)
|
||||||
|
obstack_sgrow (&action_obstack, "}\n break;");
|
||||||
|
else
|
||||||
|
obstack_sgrow (&action_obstack, ";\n break;}");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-------------------------------------------------------------------.
|
/*-------------------------------------------------------------------.
|
||||||
|
|||||||
Reference in New Issue
Block a user