help-bison
[Top][All Lists]
Advanced

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

Bison & flex on start conditions


From: Steve Murphy
Subject: Bison & flex on start conditions
Date: Fri, 13 Jan 2006 06:10:14 -0700

Hello--

Been playing with bison/flex for years; think they're great.

There are few interoperability issues between them, however.

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.

Bison can call a function in the flex world, that will run the 
 BEGIN(XXX) and set the start condition for flex. But usually, it's
already too late... bison has it's lookahead token. Flex already
evaluated the token under the old regime, and returned a token.

Has anybody got a solution how to trigger flex start conditions from
bison, so everything works out nice?

murf

-- 
Steve Murphy <address@hidden>
Electronic Tools Company





reply via email to

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