Re: set flex start conditions from bison?

2009-08-26 Thread Akim Demaille
Le 25 août 09 à 13:53, Rui Maciel a écrit : Akim Demaille wrote: AFAIK, Flex does not generate a header file with its definitions such as start conditions, so you probably need to write a small wrapper around flex that extracts it from the generated scanner *.c file. Then, from the grammar fil

Re: set flex start conditions from bison?

2009-08-26 Thread Rui Maciel
Akim Demaille wrote: > Can you show the content of this file? Can you also show where you > include it in your Bison file? Maybe you include the flex header from > the bison and vice versa, which probably does not work as expected. > Usually you include the Bison header from the Flex scanner (to

Re: set flex start conditions from bison?

2009-08-26 Thread Akim Demaille
Le 26 août 09 à 12:11, Rui Maciel a écrit : Akim Demaille wrote: Can you show the content of this file? Can you also show where you include it in your Bison file? Maybe you include the flex header from the bison and vice versa, which probably does not work as expected. Usually you includ

Re: set flex start conditions from bison?

2009-08-26 Thread Rui Maciel
Akim Demaille wrote: > Can you show the content of this file? Can you also show where you > include it in your Bison file? Maybe you include the flex header from > the bison and vice versa, which probably does not work as expected. > Usually you include the Bison header from the Flex scann