[antlr-interest] Problems with AntlrWorks 1.0b11

Jean Bovet antlr-list at arizona-software.ch
Tue May 8 23:06:50 PDT 2007


This pattern is not recognized by ANTLRWorks (at least not yet). I  
opened an issue (AW-43) for that.

Regards,

Jean

On May 8, 2007, at 12:30 PM, Miguel Ping wrote:

> My guess is that antlworks does not perform the same verifications  
> that the antlr tool performs, but I'm not sure. Maybe mr Jean can  
> shed some light on the subject ;) I always rely on antlr tool, and  
> use antlrworks primarily as editor/debugger and for quick  
> verification of sintactic errors.
>
> As for elimination of left recursion, I wonder if there isn't an  
> algorithm that can solve the left recursion where it can be  
> determined programmatically, like in your case:
>
> funcall:
>             IDENT+;
>
> I guess its fundamentally graph theory problem.
>
>
> On 5/8/07, Shmuel Siegel <ssiegel at finjan.com> wrote:
> I created the following grammar to study the elimination of left  
> recursion. I have two issues with AntlrWorks.
>
>
> When I check grammar, I get a popup that says "Check Grammar  
> Succeeded" gut the console says "Aborting because the following  
> rules are mutually left recursive. [funcCall]"
> When I try the "Refactor" method to eliminate left recursion, it  
> tells me that the method doesn't have left recursion.
>
> grammar boo;
>
>
> funcCall
>
>             :           (IDENT | funcCall) list;
>
> list:       '(' IDENT ')';
>
>
> IDENT
>
>             :           'XXX';
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070508/946c4b06/attachment.html 


More information about the antlr-interest mailing list