[antlr-interest] [LEXER] Unwanted behaviour ?
Martin Potier
martin.potier at gmail.com
Mon Oct 12 05:28:54 PDT 2009
certainly :
link
: LO PURETEXT ('|' PURETEXT)? LE
;
LO : '[['; // Link opening
LE : ']]'; // Link ending
PURETEXT
: ( ESC_SEQ | ~('\\'|TM1|TM2|TM3|TM4|ULM|LO|LE|OLM|BM|IM|UM|'|'|'\n') )+
;
Indhu Bharathi a écrit :
> Can you post a small sample where the problem exists?
>
>
>
>
>
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org
> [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Martin Potier
> Sent: Monday, October 12, 2009 5:44 PM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] [LEXER] Unwanted behaviour ?
>
>
>
> Hi,
>
>
>
> There's something I can't explain : in the lexer, a terminal defined
>
> with '[' is perfectly matched. If i modify it to '[[' it is ignored. Did
>
> I miss something ?
>
>
>
> Is that a remaining behaviour from ANTLR 2 ?
>
>
>
> Thanks
>
>
>
> --
>
> Martin
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
>
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>
More information about the antlr-interest
mailing list