[il-antlr-interest: 23565] [antlr-interest] Appending lexer rule disables rule further above. Bug?

2009-05-07 Thread Nukiti Romanova
I'd like to write a parser for some legacy data set definition files. Here is a contrived example what the definitions look like: // A sample data type definition Type foo.bar.Strange name with 1000 weird chars: $\\d[] { required searchable String Simple

[il-antlr-interest: 23585] Re: [antlr-interest] match any token in line

2009-05-07 Thread Nukiti Romanova
maybe is this what you want? in : cname*; cname : '@' CHAR* ':' NL param*; param : (CHAR|':')+ NL+; CHAR: ~(NewLineChars|'@'|':')+ ; NL : NewLineChars+; fragment NewLineChars : '\n' | '\r' ; Nukiti Hello, new to ANTLR I wondered if it is possible