help-bison
[Top][All Lists]
Advanced

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

Re: Run-time selection of bison rule reduction?


From: Akim Demaille
Subject: Re: Run-time selection of bison rule reduction?
Date: 30 Apr 2002 17:23:51 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

>>>>> "Casey" == Casey Leedom <address@hidden> writes:

Casey> Greetings, I'm trying to fix a POSIX-compliance bug in flex.

Yep, I've read the thread.

Casey> We could obviously #ifdef parse.y and dual compile flex but
Casey> this would be somewhat awkward.  

That's what I recommend: you have two grammars, you need two parsers.
Bison has no better solution to offer, and I'm afraid it won't.

Casey> It's been a long time since I wrote a yacc/bison parser from
Casey> scratch but I could have sworn that there was a way to provide
Casey> the bison parser with run-time state information to allow it to
Casey> disambiguate between two identical reductions.  

Nope.




reply via email to

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