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
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