Practical difference between parser rules and lexer rules in ANTLR?
I understand the theory behind separating parser rules and lexer rules in theory, but what are the practical differences between these two statements in ANTLR: my_rule: ... ; MY_RULE: ... ; Do they result in different AST trees? Different performance? Potential ambiguities? Jen wrote : ... what are the practical differences between these two statements in ANTLR ... MY_RULE will be used to tokenize your input source. It represents a fundamental building block of your language. my_rule is called from the parser, it consists of zero or more other parser rules or tokens produced by the lexer. That