Re: Adding a grammar rule with conditional compilation

2017-02-27 Thread Ondrej Zajicek
On Sat, Feb 25, 2017 at 09:59:30PM +0100, Dean wrote: > Hello, > > I'm modifying some parts of the code, and I've added a new grammar rule for > creating static routes in the config.Y file. > > However, I would like this rule to only be enabled based on a preprocessor > definition, with an #ifdef

Adding a grammar rule with conditional compilation

2017-02-25 Thread Dean
Hello, I'm modifying some parts of the code, and I've added a new grammar rule for creating static routes in the config.Y file. However, I would like this rule to only be enabled based on a preprocessor definition, with an #ifdef, or throw a syntax error otherwise. I can't figure out a way