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: [email protected] 
[mailto:[email protected]] On Behalf Of Andrea o. k. Wright
Sent: Monday, July 06, 2009 7:38 PM
To: [email protected]
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
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to