On Tue, 12 Aug 2008, Lucian Smith wrote:

> If I recall correctly, in my own C++ code, I had to have an actual 
> grammar line that *used* 'yyerrok' before bison would put the relevant 
> code into the .tab.cpp file.

> Similar things happened with yylloc, I believe.

Bison parses semantic actions only well enough to find the closing brace, 
to substitute any $ and @ constructs, and to prepare for m4.  That is, it 
does not check for uses of C constructs like yyerrok and yylloc.  
However, the presence of @ does enable location tracking code, so maybe 
that's what you're thinking of.


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

Reply via email to