|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
AST printerHi!
If I am not wrong someone developed in the past AST printer. Any directions will be highly appreciated Alex --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: AST printerHi Alex,
Why do you mean by AST printer? You mean the AST browser that you can have a look at from within the Groovy console? Guillaume On Mon, Oct 12, 2009 at 12:39, Alex Tkachman <alex.tkachman@...> wrote: > Hi! > > If I am not wrong someone developed in the past AST printer. Any > directions will be highly appreciated > > Alex > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Guillaume Laforge Groovy Project Manager Head of Groovy Development at SpringSource http://www.springsource.com/g2one --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: AST printerHi!
Truly speaking I don't remember. I remember it was some discussion regarding easier ways to browse ast and I don't remember details at all. Console tool is helpful for sure. Alex On Mon, Oct 12, 2009 at 12:45 PM, Guillaume Laforge <glaforge@...> wrote: > Hi Alex, > > Why do you mean by AST printer? > You mean the AST browser that you can have a look at from within the > Groovy console? > > Guillaume > > On Mon, Oct 12, 2009 at 12:39, Alex Tkachman <alex.tkachman@...> wrote: >> Hi! >> >> If I am not wrong someone developed in the past AST printer. Any >> directions will be highly appreciated >> >> Alex >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > > > -- > Guillaume Laforge > Groovy Project Manager > Head of Groovy Development at SpringSource > http://www.springsource.com/g2one > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: AST printerYou can have a look at a screenshot there, in the middle of the page:
http://docs.codehaus.org/display/GROOVY/%28draft%29+Groovy+1.7+release And also some details on the AST builder that can help with the writing of the AST transformations. The old Eclipse plugin also had something a bit along like the AST broswer, but I don't think it's there anymore in the new version. On Mon, Oct 12, 2009 at 12:54, Alex Tkachman <alex.tkachman@...> wrote: > Hi! > > Truly speaking I don't remember. I remember it was some discussion > regarding easier ways to browse ast and I don't remember details at > all. Console tool is helpful for sure. > > Alex > > On Mon, Oct 12, 2009 at 12:45 PM, Guillaume Laforge > <glaforge@...> wrote: >> Hi Alex, >> >> Why do you mean by AST printer? >> You mean the AST browser that you can have a look at from within the >> Groovy console? >> >> Guillaume >> >> On Mon, Oct 12, 2009 at 12:39, Alex Tkachman <alex.tkachman@...> wrote: >>> Hi! >>> >>> If I am not wrong someone developed in the past AST printer. Any >>> directions will be highly appreciated >>> >>> Alex >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >> >> >> >> -- >> Guillaume Laforge >> Groovy Project Manager >> Head of Groovy Development at SpringSource >> http://www.springsource.com/g2one >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- Guillaume Laforge Groovy Project Manager Head of Groovy Development at SpringSource http://www.springsource.com/g2one --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: AST printerIf you are using 1.7 you might find the AST viewer in the GroovyConsole is all that you need. Otherwise you can try something like: export JAVA_OPTS=-Dantlr.ast=mindmap There are various flavours of pretty printing: xml, groovy, mindmap, extendedMindmap and html Cheers, Paul. Alex Tkachman wrote: > Hi! > > If I am not wrong someone developed in the past AST printer. Any > directions will be highly appreciated > > Alex > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: AST printerGuillaume, Paul,
Thank you for helpful tips Alex On Mon, Oct 12, 2009 at 1:04 PM, Paul King <paulk@...> wrote: > > If you are using 1.7 you might find the AST viewer in the GroovyConsole > is all that you need. Otherwise you can try something like: > export JAVA_OPTS=-Dantlr.ast=mindmap > > There are various flavours of pretty printing: > xml, groovy, mindmap, extendedMindmap and html > > Cheers, Paul. > > Alex Tkachman wrote: >> >> Hi! >> >> If I am not wrong someone developed in the past AST printer. Any >> directions will be highly appreciated >> >> Alex >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: AST printerIf you like the details of the AST Console but would prefer to see the
output in a console friendly format (or even XML or something), then it would be fairly easy to do this. The Swing code is not very coupled to the code that populates the JTree/UI. The system is, after all, dynamically typed. If this is a long term need then let me know. -- Hamlet D'Arcy hamletdrc@... On Mon, Oct 12, 2009 at 6:07 AM, Alex Tkachman <alex.tkachman@...> wrote: > Guillaume, Paul, > > Thank you for helpful tips > > Alex > > On Mon, Oct 12, 2009 at 1:04 PM, Paul King <paulk@...> wrote: >> >> If you are using 1.7 you might find the AST viewer in the GroovyConsole >> is all that you need. Otherwise you can try something like: >> export JAVA_OPTS=-Dantlr.ast=mindmap >> >> There are various flavours of pretty printing: >> xml, groovy, mindmap, extendedMindmap and html >> >> Cheers, Paul. >> >> Alex Tkachman wrote: >>> >>> Hi! >>> >>> If I am not wrong someone developed in the past AST printer. Any >>> directions will be highly appreciated >>> >>> Alex >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --
Hamlet D'Arcy |
|
|
Re: AST printer>> If you like the details of the AST Console but would prefer to see the
>> output in a console friendly format (or even XML or something), then >> it would be fairly easy to do this. I created a JIRA for this: http://jira.codehaus.org/browse/GROOVY-3841 Just today I needed this functionality, so I will do this eventually. -- Hamlet D'Arcy
--
Hamlet D'Arcy |
| Free embeddable forum powered by Nabble | Forum Help |