Rust: Add way to dump the AST

Created on 14 Nov 2013  ·  1Comment  ·  Source: rust-lang/rust

We have the ability to serialize the AST, we should use it! Probably --emit-ast would dump JSON after phase 2.

C-enhancement E-easy

Most helpful comment

For anyone who googles rust dump ast and lands here (and doesn't look at the commit that closed this), it's rustc -Z ast-json foo.rs

>All comments

For anyone who googles rust dump ast and lands here (and doesn't look at the commit that closed this), it's rustc -Z ast-json foo.rs

Was this page helpful?
0 / 5 - 0 ratings