Skip to main content

Crate parsyng_core

Crate parsyng_core 

Source
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;parsing
pub use sealed::proc_macro;Non-fallback

Modules§

astparsing
A tree of Rust syntax types, each implementing Parse to build itself from a ParseBuffer and ToTokens to turn itself back into tokens.
combinatorparsing
Generic building blocks for Parse/ToTokens implementations.
error
Error reporting for Parse implementations.
parseparsing
The ParseBuffer cursor and the Parse/Peek traits 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§

Tokenparsing
Names a keyword or punctuation token type by its surface syntax. See the module docs for details.
format_ident
Build an Ident using format!-style syntax, spanned at Span::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.