1 dépôt
Mechanisms for modifying and replacing nodes within a syntax tree to transform code.
Distinct from Syntax Traversal: Distinct from traversal, which is read-only; mutations focus on the folder pattern for generating new code structures.
Explore 1 awesome GitHub repository matching software engineering & architecture · Tree Mutations. 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
Implements specialized visitor and folder patterns for traversing and mutating Rust abstract syntax trees.