Skip to content

%ifdef, %ifndef, %endif

ksherlock edited this page Dec 20, 2015 · 2 revisions

The %ifdef, %ifndef, and %endif directives.

These should be self-explanatory for anyone that's ever used C or C++. (And since lemon generates a C or C++ parser, that should include all lemon users.)

Macros are defined via the -D command line flag; there is no %define directive within lemon.

Clone this wiki locally