[antlr-interest] ANTLR 3.0ea3 released

Terence Parr parrt at cs.usfca.edu
Thu Jun 23 11:47:46 PDT 2005


Howdy,

If you would like to check out the auto tree construction and the  
rewite rule stuff, you can try out 3.0ea3:

http://www.antlr.org/download/antlr-3.0ea3.tar.gz

Unfortunately I haven't built any examples in

http://www.antlr.org/download/examples-v3.tar.gz

yet.  Please see:

org/antlr/test/TestAutoAST.java
org/antlr/test/TestRewriteAST.java

for a bunch of unit tests that illustrate what is going on.

Set option output=AST and away you go!

For now, I'm using CommonTree as my trees that have a payload  
(normally a Token object).  The type of a tree in the parser is  
Object as I don't care what the type is.  I use an adaptor object  
CommonTreeAdaptor to implement construction functionality and act as  
a bridge to whatever tree you want to use.  It doubles as a factory  
naturally.  I rather like the adaptor concept for a number of reasons.

Note that the ANTLRWorks jar has not been updated...you'll have to  
unjar it and then set up your classpath properly to use older  
ANTLRWorks and newer ANTLR.  I'm not sure what ANTLRWorks will do  
with the -> notation so I'd wait until Jean is back from vacation and  
can update ANTLRWorks before trying it out.

I'm off and running on the tree parser stuff, but wanted to cut this  
early access release so people could play with the tree stuff.

Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com



More information about the antlr-interest mailing list