help-bison
[Top][All Lists]
Advanced

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

Re: Bison & flex on start conditions


From: Evan Lavelle
Subject: Re: Bison & flex on start conditions
Date: Mon, 16 Jan 2006 08:49:16 +0000
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Henrik Sorensen wrote:
On Friday 13 January 2006 13.10, Steve Murphy wrote:

One that would be nice to smooth out would be the start-condition
capability in flex... and how to trigger it from the bison grammar end
of things.

Can you be more specific why you want to do this ?

It gives you much more powerful context-sensitive parsing; it can remove the need for multi-token lookahead in many cases. One obvious application is detecting tokens which might be keywords, or might not be, depending on context. It would certainly have saved me a lot of trouble.

Evan





reply via email to

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