# Viewing Abstract Syntax Trees

**URL:** <https://www.ruby-forum.com/t/viewing-abstract-syntax-trees/171648>\
**Category:** IronRuby\
**Created:** [July 7, 2009, 4:38am UTC](https://www.ruby-forum.com/t/viewing-abstract-syntax-trees/171648 "2009-07-07T04:38:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_oSkSW](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f6c823/32.png) [@Andrea\_oSkSW](https://www.ruby-forum.com/u/Andrea_oSkSW)\
**Post date:** [July 7, 2009, 4:38am UTC](https://www.ruby-forum.com/t/viewing-abstract-syntax-trees/171648/1 "2009-07-07T04:38:07Z")

</div>

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
