Le 23 sept. 2013 à 16:08, 王波 <wangbo15541...@hotmail.com> a écrit :
> Demaille, > > Thanks for your reply. > > Do you mean yylineno? I don't know to which of my comments you are referring to. It is a bad idea to use variables from the scanner (yytext, yylineno, yywhatever) from the parser, since the parser reads ahead: when it processes an action, it might have read yet another token, which completely moved your cursor. Really, read the doc of %locations. _______________________________________________ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison