third_party_rust_syn/examples
2019-04-29 14:16:40 -07:00
..
dump-syntax Show example of rustc-style error message in comment 2019-03-09 22:25:17 -08:00
heapsize Use 2018-style absolute paths in examples 2019-04-29 14:16:40 -07:00
lazy-static Use 2018-style absolute paths in examples 2019-04-29 14:16:40 -07:00
trace-var Place each standalone example in a workspace 2019-03-01 22:58:30 -08:00
README.md Use a familiar way to specify compiler versions 2018-10-28 17:57:08 -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 custom derive. 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.