[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-jsr
Subject:    How to see the new AST
From:       Jeremy Rayner <jeremy.rayner () gmail ! com>
Date:       2005-01-21 12:02:51
Message-ID: 90a60e76050121040224ee0b62 () mail ! gmail ! com
[Download RAW message or body]

Hi,
  You can see the AST that the ANTLR grammar produces by using the
'showtree' option on the parser:

groovy/jsr$ ant clean compile
groovy/jsr$ java -jar ideas/parsers/antlr/standalone/groovyc-0.0.2.jar
-showtree ../groovy-core/src/test/groovy/PlusEqualsTest.groovy

i.e. it will turn
http://cvs.groovy.codehaus.org/viewrep/groovy/groovy/groovy-core/src/test/groovy/PlusEqualsTest.groovy?r=1.2
 into
http://groovy.javanicus.com/ast.gif

Hope this helps
cheers,
jez.
-- 
http://javanicus.com/blog2


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic