[antlr-interest] @init actions in "C Target " have problems with MSVS compilers
Alexander Stasenko
astasenko at gmail.com
Thu Mar 22 21:59:35 PDT 2007
Thanks for your recommendation. I'll follow it.
2007/3/23, Jim Idle <jimi at temporal-wave.com>:
> Be careful with those auto initializations though. As general rule most
> compilers will let the last declaration be initialized while being
> declared but many moan about anything else. To be strictly correct you
> should use:
>
> PragmaComment
> @declarations {int isPragma;}
> @init { isPragma = 0; }
> :
>
> Then I will guarantee that the codegen will compile everywhere.
>
--
Best regards, Alexander.
More information about the antlr-interest
mailing list