[antlr-interest] Java AST Grammar

Adam Cooney ad_cooney at hotmail.com
Tue Feb 12 10:40:06 PST 2008


Well, I'm attempting to compare two Java source files by creating 2 ASTs and comparing the two to generated ASTs, so I can find changes in the code and errors. 


Date: Tue, 12 Feb 2008 10:33:17 -0800From: darien.hager at etelos-inc.comTo: ad_cooney at hotmail.comSubject: Re: [antlr-interest] Java AST GrammarI don't think there is any particular "correct" way to make a Java AST---the kind of tree made really depends on what you're trying to do.I'd suggest you look up AST rewrite rules. The example JSON grammar has some examples (look for the -> line)http://www.antlr.org/wiki/display/ANTLR3/JSON+Interpreter-- Darien HagerDeveloperEtelos, Inc.darien at etelos.com http://www.etelos.com"Revolutionizing the way applications are developed, distributed and consumed."This e-mail message, including attachments, may contain confidential information for the sole use of the intended recipient(s). If you are not the intended recipient, then this is notice that any use, disclosure, dissemination, distribution or copying is strictly prohibited. If you have received this message in error please contact the sender by reply mail and destroy all copies of the original message. 
_________________________________________________________________
Share what Santa brought you
https://www.mycooluncool.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080212/281acf26/attachment.html 


More information about the antlr-interest mailing list