[antlr-interest] Re: java grammar problems

Ray Waldin ray at waldin.net
Tue Sep 23 16:46:35 PDT 2003


Hi,

I think what you mean is that java.tree.g doesn't allow type
definitions within an interface block.  This can be fixed by adding
typeDefinition as a third option to the interfaceBlock rule.

Hope that helps.

-Ray

--- old/java.tree.g     2003-09-23 16:27:37.000000000 -0700
+++ java.tree.g 2003-09-23 16:27:52.000000000 -0700
@@ -86,8 +86,9 @@
 interfaceBlock
        :       #(      OBJBLOCK
                        (       methodDecl
                        |       variableDef
+                       |       typeDefinition
                        )*
                )
        ;



--- In antlr-interest at yahoogroups.com, "zhangcharles"
<zhangcharles at y...> wrote:
> I posted this a month ago. I think it got lost in the message pond.
> 
> ------------------------------------- 
> Hi, the current java.tree.g grammar doesn't seem to take inner 
> interface definition into consideration. Any advices of how to add 
> it since I'm not a grammar expert. Thanks a lot.
> 
> Charles


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list