help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: yyerrok is missing in C++ parser


From: Joel E. Denny
Subject: Re: yyerrok is missing in C++ parser
Date: Sun, 17 Aug 2008 15:00:59 -0400 (EDT)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]