help-bison
[Top][All Lists]
Advanced

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

Choosing your grammar rule dynamically


From: filip
Subject: Choosing your grammar rule dynamically
Date: Thu, 4 Feb 2010 14:59:05 +0100

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 bison?

Thank you,

Filip van der Meeren


reply via email to

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