Saturday, 15 June 2013

ANTLR 4 lexer subrule order -


Is ANTLR4 the order of alternatives between the Lexer sub-rules? For example, is there any difference between the following rules?

  STRING: '' '(' \\ ''.) * *? '' '('. '' '' (. | '' '' '' * * * '' '' 'The first verbal rule can match the entire input: "abc \" DEF. Second, its "ABC" ", And then the remaining characters will report the error for the sequence.  

The first thing that happens to be the entry of the entry is that the luxor first matches the above, which is defined before. .

No comments:

Post a Comment