[il-antlr-interest: 27331] [antlr-interest] question about lexer rules

2009-12-19 Thread codeman
A question to lexer rules and its priorities. Is there any dependency between order of lexer rule definitions? Some time ago I had some trouble: TIME: (DIGIT+'h' |DIGIT+'m' |DIGIT+'s' |DIGIT+'h'+DIGIT+'m' |DIGIT+'h'+DIGIT

[il-antlr-interest: 27008] [antlr-interest] same char but different context

2009-11-28 Thread codeman
Given is a record-per-line format like this: => single letter => any except end-of-line => end of line My problem is the following: WHello World "W" => recognized as single char "Hello " is broken, W seems to be a new start char Here is my grammer. Aimed target is to parse a quicken inter