[antlr-interest] bad generated code?

Monty Zukowski monty at codetransform.com
Fri Sep 30 17:40:35 PDT 2005


On Sep 30, 2005, at 4:57 PM, Christian Bird wrote:
>
>  zimport :
>     #("import"
>         (name ARROW complexNameList SEMI |
>         "all" identifier SEMI) )
>     ;

It does seem like a code gen bug.  I would recommend breaking this up  
into another rule if you can:

zimport: #("import" importSuffix)
importSuffix: name ARROW complexNameList SEMI
                        | "all" identifier SEMI
                        ;

See if that still triggers the problem.

Monty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050930/6faaa107/attachment.html


More information about the antlr-interest mailing list