Don't invoke unput from scan-gram.l; it ran into a POSIX-compatibility

bug in flex 2.5.31.
This commit is contained in:
Paul Eggert
2003-04-18 07:27:15 +00:00
parent 47e7600a21
commit 1b8f2fff2a

View File

@@ -1,5 +1,14 @@
2003-04-17 Paul Eggert <eggert@twinsun.com> 2003-04-17 Paul Eggert <eggert@twinsun.com>
* src/scan-gram.l: Add %option nounput, since we no longer use unput.
(unexpected_eof): Renamed from unexpected_end_of_file, for brevity.
Do not insert the expected token via unput, as this runs afoul
of a POSIX-compatibility bug in flex 2.5.31.
All uses changed to BEGIN the parent state,
since we no longer insert the expected token via unput.
* tests/regression.at (Invalid inputs): Remove cascaded diagnostic
that is no longer emitted after the above change.
* src/conflicts.c (set_conflicts): Resolve all conflicts, not just * src/conflicts.c (set_conflicts): Resolve all conflicts, not just
the first one. This change is from Paul Hilfinger, and it fixes the first one. This change is from Paul Hilfinger, and it fixes
regression reported by Werner Lemberg in regression reported by Werner Lemberg in