logo separator

[mkgmap-dev] To do: If-Then-Else

From Andrzej Popowski popej at poczta.onet.pl on Tue Feb 7 21:35:25 GMT 2017

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



More information about the mkgmap-dev mailing list