[antlr-interest] missing MATCHRANGE macro
yushang
yusunn at gmail.com
Mon Nov 7 02:17:10 PST 2011
Hi,
I think I've found the reason . I've written a rule as follow
numeric_literal
: '0'..'9' ('0'..'9')*
| ('0'..'9')* '.' '0'..'9' ('0'..'9')*
;
which will be translated to MATCHRANGE in Parser , if I change it to this :
numeric_literal
: INT
| FLOAT
;
INT
: '0'..'9' ('0'..'9')*
;
FLOAT
: ('0'..'9')* '.' '0'..'9' ('0'..'9')*
;
will OK. Many thanks.
2011/11/5 yushang <yusunn at gmail.com>
> Hi , I'm using ANTLR v3 C runtime and found this macro is missing from
> the generated *Parser.c and *Parser.h . This macro can be found in
> *Lexer.c file . Is this a bug ?
> thanks in advance .
>
More information about the antlr-interest
mailing list