[Ironruby-core] Viewing Abstract Syntax Trees
Tomas.Matousek at microsoft.com
Tue Jul 7 00:38:52 EDT 2009
There is currently no support for displaying ASTs. You can add some code that dumps them in RubyScriptCode::CompileLambda if you need it.
Note that DLR ASTs are created lazily as methods execute. Ruby ASTs are built as files are parsed.
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Andrea o. k. Wright
Sent: Monday, July 06, 2009 7:38 PM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] Viewing Abstract Syntax Trees
How can I view the AST that corresponds with a ruby file?
I have read about -X:ShowASTs and -X:DumpASTs, but they don't seem to be valid command line switches for IronRuby 0.6.
Thank you very much,
Posted via http://www.ruby-forum.com/.
Ironruby-core mailing list
Ironruby-core at rubyforge.org
More information about the Ironruby-core