third_party_rust_syn/examples
徐未来 20f0300a69 syn 1.0.107升级至2.0.48
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-04-01 20:47:12 +08:00
..
dump-syntax syn 1.0.107升级至2.0.48 2024-04-01 20:47:12 +08:00
heapsize syn 1.0.107升级至2.0.48 2024-04-01 20:47:12 +08:00
lazy-static syn 1.0.107升级至2.0.48 2024-04-01 20:47:12 +08:00
trace-var syn 1.0.107升级至2.0.48 2024-04-01 20:47:12 +08:00
README.md Update rustc requirements in preparation for release 2019-08-11 15:01:50 -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

An example implementation of a derive macro that generates trait impls.

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.