[antlr-interest] Java grammar IMPLEMENTS_CLAUSE
Kien Te Do
dtkien at usfca.edu
Fri Nov 4 08:51:11 PST 2005
> Hello
> I'm using antlr to build AST from java source. ANTLR builds AST,
> exceptIMPLEMENTS_CLAUSE and EXTENDS_CLAUSE nodes. I'm using ANTLR
> 2.7.5 and java
> grammar file's supplied with distribution in examples dir. I tried
> othergrammars available at site too, but all of them lacks this
> functionality.
With me it works well! Try:
#(CLASS_DEF modifiers IDENT e:extendsClause im:implementsClause
{System.out.println(e.toStringTree() + "\n"
+ im.toStringTree());
}
objBlock )
-Kien
More information about the antlr-interest
mailing list