
7 Feb
2017
7 Feb
'17
9:35 p.m.
Hi Gerd, could you implement simple conditional statements, which would be analyzed at the stage of reading style? Similarly like statement "include" is processed. I think the simplest version would contain 3 tokens: ifdefined CONSTANT ifnotdefined CONSTANT endif Scanner should look for ifdefined/ifnotdefined, check if CONSTANT exist and then analyze or skip rules until it finds token endif. It should support nesting. CONSTANT would be given as command line option. Or maybe even as an additional token, like "define CONSTANT". -- Best regards, Andrzej