[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I can't make sure it's a bug. But I think it's important.
From: |
Akim Demaille |
Subject: |
Re: I can't make sure it's a bug. But I think it's important. |
Date: |
Thu, 26 Sep 2013 15:48:48 +0200 |
Le 23 sept. 2013 à 16:08, 王波 <address@hidden> 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.