Lines Matching full:syntax
11 //! Syn is a parsing library for parsing a stream of Rust tokens into a syntax
17 //! - **Data structures** — Syn provides a complete syntax tree that can
18 //! represent any valid Rust source code. The syntax tree is rooted at
29 //! signature `fn(ParseStream) -> Result<T>`. Every syntax tree node defined
31 //! custom syntaxes, or you may dream up your own brand new syntax without
32 //! involving any of our syntax tree types.
85 //! // Parse the input tokens into a syntax tree
159 //! # Parsing a custom syntax
236 //! - **`full`** — Data structures for representing the syntax tree of all valid
239 //! a syntax tree node of a chosen type.
240 //! - **`printing`** *(enabled by default)* — Ability to print a syntax tree
242 //! - **`visit`** — Trait for traversing a syntax tree.
243 //! - **`visit-mut`** — Trait for traversing and mutating in place a syntax
245 //! - **`fold`** — Trait for transforming an owned syntax tree.
246 //! - **`clone-impls`** *(enabled by default)* — Clone impls for all syntax tree
248 //! - **`extra-traits`** — Debug, Eq, PartialEq, Hash impls for all syntax tree
557 /// Syntax tree traversal to transform the nodes of an owned syntax tree.
642 /// Syntax tree traversal to walk a shared borrow of a syntax tree.
687 /// syntax tree, including nested functions.
721 /// The `'ast` lifetime on the input references means that the syntax tree
723 /// hold on to references into the syntax tree.
761 /// Syntax tree traversal to mutate an exclusive borrow of a syntax tree in
889 /// Parse tokens of source code into the chosen syntax tree node.
910 /// Parse a proc-macro2 token stream into the chosen syntax tree node.
913 /// when the input comes from a node of the Syn syntax tree, for example the
928 /// Parse a string of Rust code into the chosen syntax tree node.
935 /// Every span in the resulting syntax tree will be set to resolve at the macro