Module syntex_syntax::ext::proc_macro_shim [] [src]

This is a shim file to ease the transition to the final procedural macro interface for Macros 2.0. It currently exposes the libsyntax operations that the quasiquoter's output needs to compile correctly, along with the following operators:

  • build_block_emitter, which produces a block output macro result from the provided TokenStream.

Modules

prelude

Functions

build_block_emitter

Take a ExtCtxt, Span, and TokenStream, and produce a Macro Result that parses the TokenStream as a block and returns it as an Expr.