ptx-syntax-proc-macros
ptx-syntax-proc-macros contains the procedural macros used to implement
ptx-syntax. It is an
implementation dependency rather than a standalone parsing API.
The crate provides:
c!– construct a struct and automatically fill itsspanfield.ok!/err!– convenience constructors forResult-producing parser code.cclosure!/okmap!– turn tuples of parser outputs into AST values while threading spans.func!– append aspanargument to an existing closure.#[derive(Spanned)]– implement the parser'sSpannedtrait for an AST struct or enum containing a namedspanfield.
use ;