[antlr-interest] [LEXER] Unwanted behaviour ?
Jim Idle
jimi at temporal-wave.com
Fri Oct 16 02:56:59 PDT 2009
LO LE and PURETEXT are ambiguous - you should eb getting warnings about that (which yuou should not ignore).
Jim
> -----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:59 PM
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] [LEXER] Unwanted behaviour ?
>
> 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
> >
> >
>
> 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