"Joel E. Denny" <[EMAIL PROTECTED]> writes:

> Why must the lookahead token be maintained in two variables?  Why not just 
> maintain yychar and invoke YYTRANSLATE whenever yytoken is needed?

In the case of yacc.c, it's most likely efficiency: the desire to
avoid reinvoking YYTRANSLATE.  The tradeoffs are no doubt different
for GLR.  (And I doubt whether anybody's measured the efficiency in
the yacc case either, at least not recently....)


_______________________________________________
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to