Expand description
Core parsing and quoting primitives for parsyng.
This crate provides the token-stream wrapper, parsing traits, AST types, and quote helpers used by the proc-macro front-end.
Re-exports§
pub use parse::Parse;parsingpub use sealed::proc_macro;Non- fallback
Modules§
- ast
parsing - A tree of Rust syntax types, each implementing
Parseto build itself from aParseBufferandToTokensto turn itself back into tokens. - combinator
parsing - Generic building blocks for
Parse/ToTokensimplementations. - error
- Error reporting for
Parseimplementations. - parse
parsing - The
ParseBuffercursor and theParse/Peektraits it drives. - proc_
macro_ ext - Helpers for proc-macro specific token manipulation.
Placeholder extension trait for
Literal, reserved for future proc-macro-specific token helpers.
Macros§
- Token
parsing - Names a keyword or punctuation token type by its surface syntax. See the module docs for details.
- format_
ident - Build an
Identusingformat!-style syntax, spanned atSpan::call_site.
Structs§
- Index
- The index of a tuple field, turning into an unsuffixed integer literal.
Traits§
- ToTokens
- A type that can be appended to a
TokenStream.