On Mon, 9 Nov 2009, Putrycy wrote: > Is there anybody so kind to explain the difference between YYLOC and > YYLLOC ? I wasnt able to find any informations > about what exactly is the difference.
In the case of an impure parser, yylloc is a global variable, and the scanner uses it to return token locations to the parser. In parser semantic actions, it's thus the location of the lookahead token, if any. Only the latter statement holds true for a pure parser. You can read about yylloc in the Bison manual. yyloc is an internal variable that is not documented for the user, and so you shouldn't expect its exact functionality to be maintained across Bison versions. If you're curious, it's used to store the LHS value. _______________________________________________ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison