Re: Bison & flex on start conditions

2006-01-16 Thread Henrik Sorensen
On Monday 16 January 2006 16.46, Steve Murphy wrote: > On Mon, 2006-01-16 at 08:56 +, Evan Lavelle wrote: > > Henrik Sorensen wrote: > > > For the pl1 problem, I cheated a bit with flex, and when certain > > > conditions are met I simply save all the token met, and then change > > > them to wha

Re: Bison & flex on start conditions

2006-01-16 Thread Steve Murphy
On Mon, 2006-01-16 at 08:56 +, Evan Lavelle wrote: > Henrik Sorensen wrote: > > > For the pl1 problem, I cheated a bit with flex, and when certain conditions > > are met I simply save all the token met, and then change them to what I > > need > > before returning the tokens to bison. If you

Re: Bison & flex on start conditions

2006-01-16 Thread Evan Lavelle
Henrik Sorensen wrote: For the pl1 problem, I cheated a bit with flex, and when certain conditions are met I simply save all the token met, and then change them to what I need before returning the tokens to bison. If you are interested in more feel free to contact me, or better look at the cod

Re: Bison & flex on start conditions

2006-01-16 Thread Evan Lavelle
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 mu