bison/data glr.c
"Paul N. Hilfinger" <[email protected]>
| Newsgroups | gmane.comp.parsers.bison.cvs |
|---|---|
| Message-ID | <[email protected]> |
CVSROOT: /cvsroot/bison Module name: bison Changes by: Paul N. Hilfinger <[email protected]> 03/01/29 18:37:16 Modified files: data : glr.c Log message: 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 CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/bison/bison/data/glr.c.diff?tr1=1.49&tr2=1.50&r1=text&r2=text