quasi 0.1.8

A quasi-quoting macro system
docs.rs failed to build quasi-0.1.8
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: quasi-0.30.0

Rust quasi-quoting macro.

Example

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

#![feature(plugin, rustc_private)]
#![plugin(quasi_macros)]

extern crate syntax;
extern crate quasi;

use syntax::ext::base::ExtCtxt;

fn make_ext_ctxt(...) -> ExtCtxt {
    ...
}

fn main() {
    let cx = make_ext_ctxt(...);
    let expr = quote_expr!(cx, 1 + 2);

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