mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +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
|
/* If just tried and failed to reuse lookahead token after an
|
||||||
* error, discard it. */
|
* error, discard it. */
|
||||||
|
|
||||||
if (yytoken <= ]b4_symbol(eof, [kind])[)
|
/* Return failure if at end of input. */
|
||||||
{
|
if (yytoken == ]b4_symbol(eof, [kind])[)
|
||||||
/* Return failure if at end of input. */
|
return false;
|
||||||
if (yytoken == ]b4_symbol(eof, [kind])[)
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
yytoken = ]b4_symbol(empty, kind)[;
|
yytoken = ]b4_symbol(empty, kind)[;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user