mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
Fix problem reported by Henrik Grubbstroem in
<http://mail.gnu.org/pipermail/bug-bison/2002-October/001670.html>: "nonterm: { $$ = 123; } { $$ = $1; };" was wrongly rejected, because the Bison parser reads the second action before reducing the first one. * src/scan-gram.l (rule_length): New static var. Use it to keep track of the rule length in the scanner, since we can't expect the parser to be in lock-step sync with the scanner. (handle_action_dollar, handle_action_at): Use this var. * tests/actions.at (Exotic Dollars): Test for the problem.
This commit is contained in:
13
ChangeLog
13
ChangeLog
@@ -1,3 +1,16 @@
|
||||
2002-10-13 Paul Eggert <eggert@twinsun.com>
|
||||
|
||||
Fix problem reported by Henrik Grubbstroem in
|
||||
<http://mail.gnu.org/pipermail/bug-bison/2002-October/001670.html>:
|
||||
"nonterm: { $$ = 123; } { $$ = $1; };" was wrongly rejected,
|
||||
because the Bison parser reads the second action before reducing
|
||||
the first one.
|
||||
* src/scan-gram.l (rule_length): New static var.
|
||||
Use it to keep track of the rule length in the scanner, since
|
||||
we can't expect the parser to be in lock-step sync with the scanner.
|
||||
(handle_action_dollar, handle_action_at): Use this var.
|
||||
* tests/actions.at (Exotic Dollars): Test for the problem.
|
||||
|
||||
2002-10-12 Paul Eggert <eggert@twinsun.com>
|
||||
|
||||
* lib/timevar.c [! IN_GCC && HAVE_SYS_TIME_H]: Include <sys/time.h>.
|
||||
|
||||
Reference in New Issue
Block a user