Closed mzp closed 12 years ago
Becase ANTLR's lexer uses longest match string as token, REGEXP_LITERAL always eat '/'.
REGEXP_LITERAL
By changing regexp_literal from token to rule, we decide a usage of '/' at parsing phase, not lexing phase.
regexp_literal
Becase ANTLR's lexer uses longest match string as token,
REGEXP_LITERAL
always eat '/'.By changing
regexp_literal
from token to rule, we decide a usage of '/' at parsing phase, not lexing phase.