How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.
swift-syntax is a library for parsing, manipulating, and generating Swift source code. It provides a source-accurate abstract syntax tree representation of Swift code, acting as a parser, transformer, and code generator.
The main features of apple/swift-syntax are: Source Code Analysis Tools, Swift Source Code Transformers, Swift Code Generators, Macro Expansion Frameworks, Source Code Abstract Syntax Trees, Source Code Transformation Engines, Source Code Generators, Swift Source Analysis.
Projects with overlapping indexed features include: swiftlang/swift-syntax — SwiftSyntax is a set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code. It… nikic/php-parser — PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic… dtolnay/syn — syn is a Rust syntax tree parser and token stream converter. It serves as a toolkit for procedural macro development,… google/google-java-format — google-java-format is a Java code formatter and style enforcement tool. It reformats Java source code to adhere to a… square/javapoet — JavaPoet is a source code generator and metaprogramming utility for the Java language. It functions as an abstract… openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic…
SwiftSyntax is a set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code. It parses source text into lossless syntax trees that keep every token, piece of trivia, and source position, so the original text can be rebuilt exactly. Those trees are the basis for the rest of the package: structural analysis, name lookup, diagnostics, and code rewriting. The package also covers Swift macro development. It provides protocols and an expansion engine for writing macros that inspect annotated code and generate new code at compile time. Macros can be bundled into s
PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic manipulation. It functions as a parser, a code generator, and a static analysis framework. The project enables the programmatic construction of abstract syntax tree nodes through a fluent interface and provides the ability to transform these trees back into formatted source code. It includes a serializer that exports abstract syntax trees to JSON format and reconstructs them from strings. The toolset covers several capability areas, including namespace resolution, constant exp
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
google-java-format is a Java code formatter and style enforcement tool. It reformats Java source code to adhere to a standardized style guide, ensuring consistent layout and indentation across entire projects or individual files. The project functions as a build pipeline linting tool for continuous integration workflows and as an IDE formatting plugin to replace native editor formatting. It can be embedded as a formatting library within code generation software to ensure machine-written output remains human-readable. The tool provides capabilities for reorganizing source code indentation and