1 Repo
Components that serialize structured syntax trees back into token streams.
Distinct from Tree-to-Text Serializers: Distinct from Tree-to-Text Serializers: targets tokens for macro expansion rather than plain text strings.
Explore 1 awesome GitHub repository matching content management & publishing · Token Stream Serialization. Refine with filters or upvote what's useful.
syn is a Rust syntax tree parser and token stream converter. It serves as a toolkit for procedural macro development, providing a framework to parse Rust source code into structured syntax trees for analysis and transformation. The project enables the manipulation of Rust abstract syntax trees through specialized visitor and folder patterns for traversing and mutating nodes. It provides a bidirectional mapping that allows developers to convert token streams into structured trees and print those trees back into tokens for code generation. The library covers a broad range of syntax analysis ca
Transforms structured syntax tree nodes back into token streams for use in code generation.