d: remove unnecessary comparison from YYParser.parse()

* data/skeletons/lalr1.d: Here.
This commit is contained in:
Adela Vais
2020-12-21 13:38:00 +02:00
committed by Akim Demaille
parent c0f3b55b25
commit 2b4451c4af

View File

@@ -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)[;
}