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.
Tomas
-----Original Message-----
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,
AOK
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
Ironruby-core at rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core