[antlr-interest] [LEXER] Unwanted behaviour ?

Martin Potier martin.potier at gmail.com
Mon Oct 12 06:59:37 PDT 2009


I pasted the whole grammar.
http://pastebin.com/m3ef40d4a

I someone know how to fix this, please tell me.
It's been 3 days already that I'm trying to understand why this won't
work as expected.

--
Martin

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