mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
During deterministic GLR operation, user actions should be able to
influence the parse by changing yychar. To make this easier to fix and to make glr.c easier to evolve in general, don't maintain yytoken in parallel with yychar; just compute yytoken when needed. * tests/glr-regression.at (Incorrect lookahead during deterministic GLR): Check that setting yychar in a user action has the intended effect. * data/glr.c (yyGLRStack): Remove yytokenp member. (yyclearin): Don't set *yytokenp. (yyprocessOneStack, yyreportSyntaxError, yyrecoverSyntaxError): Examine yychar rather than *yytokenp to determine the current lookahead. Compute yytoken locally when needed. (yyparse): Likewise. Remove the local yytoken that yytokenp used to point to. * doc/bison.texinfo (Bison Options): Remove stray sentence fragment after `--report' documentation.
This commit is contained in:
@@ -6889,8 +6889,6 @@ Implies @code{state} and augments the description of the automaton with
|
||||
the full set of items for each state, instead of its core only.
|
||||
@end table
|
||||
|
||||
For instance, on the following grammar
|
||||
|
||||
@item -v
|
||||
@itemx --verbose
|
||||
Pretend that @code{%verbose} was specified, i.e, write an extra output
|
||||
|
||||
Reference in New Issue
Block a user