In my grammar I have to recognize the token '??' (required by a 3rd party, not my choice).When I compile I'm getting "warning: trigraph ??' ignored".I need to recognize this token.Do I disable trigraphs with "-Wno-trigraphs"? (Unsure of the implications.)
Or is there a way to escape '??' that avoids this issue?
'?\?' is an 'invalid escape sequence' when I use the ANTLR tool to generate my C++. (Likewise '\??', and '\?\?')
I'll try -Wno-trigraphs
--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'?\?' is an 'invalid escape sequence' when I use the ANTLR tool to generate my C++. (Likewise '\??', and '\?\?')
I'll try -Wno-trigraphs
-Wno-trigraphs will only disable the warning. So effectively not doing anything.
I believe this should be fixed within the generator. The generator should escape trigraphs in the generated code.-M