I'm using ANTLR V3 to produce C# code for DSL language.
The produced code contain the attribute CLSCompliant on both laxer and parser classes which cause a warning to be generated because my project is not CLS compliant.
- How can I make ANTLR produce code without the CLSCompliant attribute?
- Is it possible to change the string template of C# 3 grammar?
@header {#pragma warning disable 3021}
will add the pragma to both the parser and the lexer files, rather than needing two separate lines. – Literatim