third_party_rust_syn/examples
2019-08-11 14:54:28 -07:00
..
dump-syntax Update to proc-macro2 rc3 2019-08-10 22:24:23 -07:00
heapsize Replace the term custom derive 2019-08-11 14:54:28 -07:00
lazy-static Update to proc-macro2 rc3 2019-08-10 22:24:23 -07:00
trace-var Update to proc-macro2 rc3 2019-08-10 22:24:23 -07:00
README.md Replace the term custom derive 2019-08-11 14:54:28 -07:00

dump-syntax

Little utility to parse a Rust source file into a syn::File and print out a debug representation of the syntax tree.

heapsize

A complete working implementation of a derive macro. Works on any Rust compiler 1.15+.

lazy-static

An example of parsing a custom syntax within a functionlike!(...) procedural macro. Demonstrates how to trigger custom warnings and error messages on individual tokens of the input.

trace-var

An attribute procedural macro that uses a syntax tree traversal to transform certain syntax tree nodes in a function body.