Choosing your grammar rule dynamically

2010-02-04 Thread filip
Hello I have a bison grammar file, and I would like to enable/disable certain rules based on a variable. So for example: rule1 : rule2 | rule3 | rule4 rule2: A B C rule3: D E F rule2 rule4: rule2 | G On a certain day I only want rule 4 disabled. Is there a possibility to do such a thing in bi

Re: Choosing your grammar rule dynamically

2010-02-04 Thread Joel E. Denny
On Thu, 4 Feb 2010, fi...@code2develop.com wrote: > I have a bison grammar file, and I would like to enable/disable certain > rules based on a variable. > > So for example: > > rule1 : rule2 | rule3 | rule4 > rule2: A B C > rule3: D E F rule2 > rule4: rule2 | G > > On a certain day I only want