]> git.saurik.com Git - bison.git/commit
Changes in response to error report by S. Eken: GLR mode does not
authorPaul Hilfinger <Hilfinger@CS.Berkeley.EDU>
Wed, 29 Jan 2003 23:37:15 +0000 (23:37 +0000)
committerPaul Hilfinger <Hilfinger@CS.Berkeley.EDU>
Wed, 29 Jan 2003 23:37:15 +0000 (23:37 +0000)
commitf868dc04e4f89a1f4086a983b79f28ec2890f7cf
treedaf24087e0583313e9d7226a5f0e542d5747ecd3
parent6cee62971ee356291af2bb9c19a6eea3d4f781d8
Changes in response to error report by S. Eken: GLR mode does not
handle negative $ indices or $ indices in embedded rules correctly.
See <http://mail.gnu.org/archive/html/bug-bison/2003-01/msg00076.html>.

(b4_rhs_value): Change to use YYFILL macro.
(b4_rhs_location): Ditto.
(yyfill): New function to copy from stack tree into array
incrementally.
(yyuserAction): Modify to allow incremental move of semantic values
to rhs array when in GLR mode.
Define YYFILL to use in user-defined actions to fill semantic array
as needed.
Remove dummy use of yystack, as there is now a guaranteed use.
(yydoAction): Modify to allow incremental move of semantic values
to rhs array when in GLR mode.
(yyresolveAction): Ditto.
(yyglrShiftDefer): Update comment.
(yyresolveStates): Use X == NULL for pointers, not !X.
(yyglrReduce): Ditto.
(yydoAction): Ditto
data/glr.c