]> git.saurik.com Git - bison.git/commit
Fix problem reported by Henrik Grubbstroem in
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Oct 2002 08:40:10 +0000 (08:40 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 13 Oct 2002 08:40:10 +0000 (08:40 +0000)
commitbcbad5b9a09c468a6bebbac4382e0a7c6a27250f
treea8e4f54ffad48560e4d829f88886f6ff912f0f46
parent0ff67d71d72b7c4ded512a83e7108f101bb3ae51
 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.
ChangeLog