I have lexer rules in Antlr3 as:
HYPHEN : '-';
TOKEN : HYPHEN CHARS;
CHARS : 'a' ..'z';
Parser rule is as:
exp : CHARS | some complex expression;
parser_rule : exp HYPHEN exp;
If I try to match 'abc-abc' with parser_rule, It fails. Because lexer creates TOKEN for HYPHEN exp. How can I match it correctly with parser_rule.