mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
d: remove unnecessary comparison from YYParser.parse()
* data/skeletons/lalr1.d: Here.
This commit is contained in:
committed by
Akim Demaille
parent
c0f3b55b25
commit
2b4451c4af
@@ -591,12 +591,9 @@ m4_popdef([b4_at_dollar])])dnl
|
||||
/* If just tried and failed to reuse lookahead token after an
|
||||
* error, discard it. */
|
||||
|
||||
if (yytoken <= ]b4_symbol(eof, [kind])[)
|
||||
{
|
||||
/* Return failure if at end of input. */
|
||||
if (yytoken == ]b4_symbol(eof, [kind])[)
|
||||
return false;
|
||||
}
|
||||
/* Return failure if at end of input. */
|
||||
if (yytoken == ]b4_symbol(eof, [kind])[)
|
||||
return false;
|
||||
else
|
||||
yytoken = ]b4_symbol(empty, kind)[;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user