summaryrefslogtreecommitdiff
path: root/data/skeletons/glr.c
diff options
context:
space:
mode:
Diffstat (limited to 'data/skeletons/glr.c')
-rw-r--r--data/skeletons/glr.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/data/skeletons/glr.c b/data/skeletons/glr.c
index 1f956955..70ab8b1d 100644
--- a/data/skeletons/glr.c
+++ b/data/skeletons/glr.c
@@ -2204,12 +2204,7 @@ yy_syntax_error_arguments (const yyGLRStack* yystackp,
- Don't assume there isn't a lookahead just because this state is a
consistent state with a default action. There might have been a
previous inconsistent state, consistent state with a non-default
- action, or user semantic action that manipulated yychar.]b4_lac_if([[
- In the first two cases, it might appear that the current syntax
- error should have been detected in the previous state when yy_lac
- was invoked. However, at that time, there might have been a
- different syntax error that discarded a different initial context
- during error recovery, leaving behind the current lookahead.]], [[
+ action, or user semantic action that manipulated yychar.
- Of course, the expected token list depends on states to have
correct lookahead information, and it depends on the parser not
to perform extra reductions after fetching a lookahead from the
@@ -2217,7 +2212,7 @@ yy_syntax_error_arguments (const yyGLRStack* yystackp,
(from LALR or IELR) and default reductions corrupt the expected
token list. However, the list is correct for canonical LR with
one exception: it will still contain any token that will not be
- accepted due to an error action in a later state.]])[
+ accepted due to an error action in a later state.
*/
if (yytoken != ]b4_symbol(empty, kind)[)
{