tree: ab911db4cdda1c0fc945a641798959c9bfc0ab99 [path history] [tgz]
  1. dump-syntax/
  2. heapsize/
  3. lazy-static/
  4. trace-var/
  5. README.md
examples/README.md

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.