Re: Selective Compilation

2011-02-08 Thread Hans Aberg
On 8 Feb 2011, at 13:24, Akim Demaille wrote: >>> If I understand your question correctly, here is a way to have multiple >>> scanners and parsers in the same program. >> >> No, he's asking about using a subset of an existing grammar in a new parser. >> >> Example: I have a language which includ

Re: Selective Compilation

2011-02-08 Thread Akim Demaille
Le 8 févr. 2011 à 00:34, Evan Lavelle a écrit : > On 07/02/2011 23:13, Tejas Kajarekar wrote: >> Hi Martin, >> If I understand your question correctly, here is a way to have multiple >> scanners and parsers in the same program. > > No, he's asking about using a subset of an existing grammar in a

Re: Selective Compilation

2011-02-07 Thread Tejas Kajarekar
flex + bison system for an embedded system > > for which I needed selective compilation -- different systems needed > > different language subsets of my flex and bison files. I threw together > > a solution using the C preprocessor to selective compile in only the > > relevant

Re: Selective Compilation

2011-02-07 Thread Evan Lavelle
On 07/02/2011 23:13, Tejas Kajarekar wrote: Hi Martin, If I understand your question correctly, here is a way to have multiple scanners and parsers in the same program. No, he's asking about using a subset of an existing grammar in a new parser. Example: I have a language which includes a comp

Re: Selective Compilation

2011-02-07 Thread Tejas Kajarekar
a flex + bison system for an embedded system > for which I needed selective compilation -- different systems needed > different language subsets of my flex and bison files. I threw together > a solution using the C preprocessor to selective compile in only the > relevant stuff. It i

Re: Selective Compilation

2011-02-07 Thread John P. Hartmann
some time ago I designed a flex + bison system for an embedded system > for which I needed selective compilation -- different systems needed > different language subsets of my flex and bison files. I threw together > a solution using the C preprocessor to selective compile in only the

Selective Compilation

2011-02-07 Thread Martin Alexander Neumann
Hi, some time ago I designed a flex + bison system for an embedded system for which I needed selective compilation -- different systems needed different language subsets of my flex and bison files. I threw together a solution using the C preprocessor to selective compile in only the relevant