aster 0.1.9

A libsyntax ast builder
docs.rs failed to build aster-0.1.9
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: aster-0.40.0

Rust libsyntax ast builder.

Example

Here is a simple example to build the syntax::ast::Expr that represents adding two numbers together:

extern crate aster;
extern crate syntax;

fn main() {
    let builder = AstBuilder::new();

    let expr = builder.expr()
        .add().u32(1).u32(2);

    // prints `1 + 2`.
    println!("{}", syntax::pprint::expr_to_string(&expr));
}