3 dépôts
Tools for modifying or transforming existing syntax trees into new representations.
Distinct from Syntax Traversal: Distinct from Syntax Traversal: focuses on modifying nodes rather than just navigating them.
Explore 3 awesome GitHub repositories matching software engineering & architecture · Syntax Tree Mutation. Refine with filters or upvote what's useful.
Unified est un moteur de traitement d'arbres de syntaxe et un écosystème de contenu conçu pour analyser, transformer et sérialiser du contenu textuel. Il fonctionne comme un pipeline de contenu basé sur des plugins qui convertit le texte brut en arbres de syntaxe abstraits structurés utilisant des objets JavaScript simples pour une inspection et une modification programmatiques. Le projet se distingue par une architecture modulaire qui permet une traduction inter-écosystème, permettant aux arbres de syntaxe d'être convertis entre différentes spécifications telles que HTML et Markdown. Il utilise un système de clonage de processeur immuable et des conteneurs d'état partagés, garantissant que les pipelines de traitement peuvent être étendus et personnalisés sans altérer les configurations originales. Le système fournit des capacités complètes pour la gestion des arbres de syntaxe, y compris la traversée en profondeur, la sélection de nœuds basée sur CSS et les transformations récursives. Sa surface de traitement s'étend à l'analyse du langage naturel, à l'analyse de GitHub Flavored Markdown et au mappage des arbres de syntaxe vers des éléments DOM virtuels pour la visualisation dans le navigateur. La logique de traitement peut être intégrée dans des applications web via des bundlers de modules ou des CDN.
Transforms content structure by removing specific nodes or replacing them with children.
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
Traverses syntax trees to modify nodes in place or transform them into new owned trees.
The project provides a standardized abstract syntax tree specification and utility library for parsing, transforming, and serializing markdown documents. It serves as a comprehensive document processing architecture that translates between raw text markup and structured node representations in both directions. The capability surface covers syntax parsing for extended markdown features, custom syntax extensions, metadata blocks, and embedded expressions, alongside document serialization that converts syntax trees back into standard and extended markup formats. It includes node modeling and val
Merges adjacent text nodes and block quotes to reduce redundancy and simplify syntax tree structures.