Lines Matching refs:syntax
9 Syn is a parsing library for parsing a stream of Rust tokens into a syntax tree
15 - **Data structures** — Syn provides a complete syntax tree that can represent
16 any valid Rust source code. The syntax tree is rooted at [`syn::File`] which
27 signature `fn(ParseStream) -> Result<T>`. Every syntax tree node defined by
29 syntaxes, or you may dream up your own brand new syntax without involving any
30 of our syntax tree types.
93 // Parse the input tokens into a syntax tree
163 ## Parsing a custom syntax
235 - **`full`** — Data structures for representing the syntax tree of all valid
238 syntax tree node of a chosen type.
239 - **`printing`** *(enabled by default)* — Ability to print a syntax tree node as
241 - **`visit`** — Trait for traversing a syntax tree.
242 - **`visit-mut`** — Trait for traversing and mutating in place a syntax tree.
243 - **`fold`** — Trait for transforming an owned syntax tree.
244 - **`clone-impls`** *(enabled by default)* — Clone impls for all syntax tree
246 - **`extra-traits`** — Debug, Eq, PartialEq, Hash impls for all syntax tree