to the user action: let it fail if lacking.
Suggested by Aharon Robbins and Tom Tromey.
+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-14 Akim Demaille <akim@epita.fr>
* src/lex.c (literalchar): Simply return the char you decoded, non
it is today without the invaluable help of these people:
Airy Andre Airy.Andre@edf.fr
+Aharon Robbins arnold@gnu.org
Akim Demaille akim@freefriends.org
Albert Chin-A-Young china@thewrittenword.com
Alexander Belopolsky alexb@rentec.com
Robert Anisko anisko_r@epita.fr
Shura debil_urod@ngs.ru
Tom Lane tgl@sss.pgh.pa.us
+Tom Tromey tromey@cygnus.com
Wolfram Wagner ww@mpi-sb.mpg.de
Wwp subscript@free.fr
}
}
- 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;}");
}
\f
/*-------------------------------------------------------------------.