It seems that the Lexer rules are not validated if they exist or not.
I have simplified the grammar to show the issue:
If you use a parser rule that doesn't exist, the VS2010 plug-in
complains but if it's a Lexer rule, not only it doesn't complain, but
it generated the Lexer+Parser and it compiles with no errors.

In the following sample LexerRule doesn't exist.

grammar TestGrammar;
options {
    language=CSharp3;
    TokenLabelType=CommonToken;
    output=AST;
    ASTLabelType=CommonTree;
}

public compileUnit: parserRule EOF;

parserRule:     LexerRule;

LEXERRULE2: 'VALUE';

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-interest@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to