The parser can control the lexer, but you must be careful to do this only when that parser does not need a lookahead token, lest the two get out of sync.

On 10/11/2016 08:58 PM, guillaume marques wrote:
On 11 Oct 2016, at 20:50, haber...@telia.com wrote:

In the manual of Bison 3.0.4, 7.2 Lexical Tie-ins, p. 130:
You must also write the code in yylex to obey the flag.

Oh gosh, I did not pay enough attention to this sentence
when I first read it I guess..

Thanks a lot for all the help you provided and the time you
allocated!

Have a great day :)

Sincerely yours,


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

Reply via email to