20 repository-uri
Parsers specifically designed to convert JavaScript source code into structured data for analysis.
Distinct from Source Code Transformation Engines: Distinct from general transformation engines: focuses specifically on the initial parsing phase for the JavaScript language.
Explore 20 awesome GitHub repositories matching programming languages & runtimes · JavaScript Source Parsers. Refine with filters or upvote what's useful.
oxc is a high-performance JavaScript toolchain developed in Rust for parsing, transforming, and analyzing JavaScript and TypeScript source code. It provides a set of core utilities including a parser that converts code into an abstract syntax tree, a linter for identifying problematic patterns, a formatter for standardizing visual style, and a minifier for reducing production file sizes. The project focuses on high-performance execution through a system design that utilizes single-pass parsing, zero-copy string slicing, and parallel worker processing to handle large codebases. It further opti
Implements a fast compiler frontend that converts JavaScript and TypeScript code into an abstract syntax tree.
UglifyJS2 is a suite of tools designed for parsing, beautifying, mangling, and minifying JavaScript code. It functions by converting source code into an abstract syntax tree to enable programmatic analysis and transformation, and it includes a dedicated generator for creating associated source maps. The project optimizes web production builds by compressing script logic and removing unreachable code. It utilizes name mangling to shorten variable and property names and implements a beautifier to reconstruct compressed scripts into a human-readable layout. The toolset covers broad capability a
Converts raw JavaScript source code into a structured data format for analysis and logic redistribution.
UglifyJS is a tool for JavaScript code minification, AST manipulation, and source beautification. Its primary purpose is to reduce the file size of JavaScript source code by removing whitespace and shortening variable names to optimize frontend build assets. The project differentiates itself through its ability to programmatically analyze and transform code using abstract syntax trees. It performs constant folding analysis and conditional compilation to eliminate unreachable or redundant code, and it employs a multi-pass compression pipeline to maximize total file size reduction. The tool pr
Includes specialized JavaScript source parsers to convert raw code into structured data.
Acorn is a JavaScript parser that converts source text into a structured abstract syntax tree. It follows the ESTree specification to produce a standardized JSON tree format, enabling consistent analysis of code structure and language versions. The project features a plugin-based grammar extension system that allows the base parser to be extended with custom rules for experimental or non-standard language features. It also includes syntax error recovery, which inserts placeholder nodes into the tree when encountering invalid code to allow parsing to continue. The toolset covers static analys
Provides a high-performance parser that converts JavaScript source code into structured ESTree-compliant data.
Terser is a JavaScript minifier and compressor designed to reduce file size through whitespace removal, symbol mangling, and logic optimization for ES6+. It functions as a toolkit for minification, a code mangler for shortening variable and property names, and a dead code eliminator that evaluates constant expressions to remove unreachable logic. The project operates as an AST toolkit that parses JavaScript source into SpiderMonkey AST format for structural analysis. It generates source maps to link compressed production code back to the original source, ensuring that minified bundles remain
Ships a specialized JavaScript source parser that converts code into a structured tree for optimization.
Otto is a Go implementation of a JavaScript interpreter and embedded scripting engine. It provides a runtime environment for executing JavaScript code within native applications and includes a parser that converts source code into an abstract syntax tree for analysis and processing. The project enables the creation of custom scripting interfaces by binding native Go functions into the JavaScript global scope. It also includes a utility to translate JavaScript regular expression patterns into compatible formats for other programming languages. The engine supports safe script sandboxing throug
Includes a parser that converts JavaScript source code into structured ASTs for program analysis.
Esprima is a JavaScript parser that converts source code into a structured abstract syntax tree. It implements a specification-driven grammar to ensure compliance with ECMAScript standards, enabling the programmatic analysis and transformation of JavaScript programs. The project provides capabilities for lexical tokenization to break source code into individual symbols and static syntax validation to verify that scripts are well-formed without executing the code. Its functional surface covers JavaScript static analysis, lexical analysis, and the generation of abstract syntax trees.
Provides lexical tokenization to break JavaScript source code into individual symbols.
js-code-to-svg-flowchart is a JavaScript source code visualizer and static code analysis tool that converts programming blocks and iterators into scalable vector graphics flowcharts. It functions as a code-to-diagram converter that maps the structural logic and sequence of operations from source files into visual representations. The system includes a command line interface for generating SVG flowcharts directly from local source code. It features a transformation engine that maps code nodes to schematic shapes and supports a sequence of images at varying abstraction levels to explain logic s
Transforms JavaScript source code into SVG flowcharts to visualize program logic and execution flow.
Boa is a high-performance JavaScript engine and parser designed to execute JavaScript code and analyze source code structure. It functions as a runtime environment for executing scripts to automate tasks or process data, providing both a command-line JavaScript interpreter and a tool for converting source code into abstract syntax trees. The engine is capable of compiling to WebAssembly, allowing the runtime to be deployed and executed within web browser environments. It includes an interactive read-eval-print loop for real-time logic testing and snippet execution via a terminal. The system
Provides a dedicated JavaScript parser that converts source code into detailed abstract syntax trees.
Metro este un bundler JavaScript conceput pentru medii React Native. Funcționează ca un sistem pentru rezolvarea dependențelor, transformarea codului sursă și împachetarea JavaScript-ului și a activelor în bundle-uri pentru execuție. Proiectul include un server de bundler pentru dezvoltare care găzduiește activele prin HTTP și oferă hot module replacement. Dispune de un resolver de module care gestionează extensiile de fișiere specifice platformei și un transformator de cod sursă care convertește codul în structuri arborescente pentru optimizare și minificare. Setul de instrumente acoperă generarea programatică de bundle-uri, crearea de source map-uri și caching-ul sistemului de fișiere pentru a evita transformările redundante. De asemenea, oferă capabilități pentru gestionarea activelor, injectarea de polyfill-uri și configurarea securizată a serverului folosind certificate TLS pentru endpoint-uri criptate. Instrumentele de monitorizare sunt incluse pentru a urmări starea bundler-ului și a înregistra metadatele de performanță pentru evenimentele de pornire și actualizare.
Provides a transformation pipeline that converts source code into tree structures for optimization and minification.
go-ast-book este o colecție de resurse educaționale și tehnice axate pe analiza arborelui sintactic abstract (AST), dezvoltarea de compilatoare și verificarea statică a codului. Oferă ghiduri și manuale pentru parsarea, parcurgerea și analizarea codului sursă Go pentru a extrage semnificația semantică. Proiectul servește ca referință pentru construirea frontend-urilor de compilatoare, acoperind traducerea codului de nivel înalt în reprezentări intermediare și forme de atribuire statică unică (SSA). De asemenea, oferă instrucțiuni pentru utilizarea acestor tehnici în dezvoltarea de tooling pentru limbaje și efectuarea analizei statice de cod. Resursele acoperă o gamă largă de capabilități de analiză statică, inclusiv tokenizarea lexicală, parsarea structurală a expresiilor și declarațiilor, și urmărirea coordonatelor pentru fișierele sursă. Detaliază, de asemenea, procesele de analiză semantică precum rezoluția identificatorilor, verificarea corectitudinii tipurilor și analiza fluxului de control pentru concurență și execuție amânată.
Breaks down source code into identifiers and operators to prepare text for structural analysis.
Această bibliotecă este un tokenizer de cod sursă PHP și un instrument de analiză statică ce convertește codul PHP brut în token-uri discrete și reprezentări XML structurate. Funcționează ca un serializator care transformă fluxurile de token-uri într-un format lizibil de către mașină pentru analiză programatică și manipularea arborelui sursă. Proiectul utilizează serializarea XML bazată pe flux și scrierea buffer-ului bazată pe fragmente pentru a menține un consum redus de memorie la procesarea fișierelor mari. Permite configurarea personalizată a namespace-urilor XML pentru a asigura compatibilitatea schemei și a evita coliziunile de nume în timpul procesului de transformare. Toolkit-ul acoperă analiza lexicală și conversia codului sursă în XML structurat pentru a susține fluxurile de lucru de analiză statică a codului. Procesează fluxurile de token-uri într-o singură trecere pentru a organiza listele sursă plate într-o structură XML ierarhică.
Converts PHP source code into discrete tokens to enable programmatic analysis and processing.
CodeGen este un model de limbaj mare antrenat și un model de sinteză de program conceput pentru a genera cod sursă funcțional. Utilizează o arhitectură de rețea neuronală pentru a sintetiza cod executabil din descrieri în limbaj natural sau fragmente de cod parțiale. Modelul permite sinteza automată de programe și codarea asistată de AI prin prezicerea și completarea secțiunilor lipsă de cod dintr-un program. Acesta transformă descrierile în limbaj natural în logică de programare funcțională pentru a automatiza crearea de boilerplate și logică.
Converts source code into numerical representations using a specialized vocabulary optimized for programming language syntax.
browserify-handbook este un ghid de documentare cuprinzător pentru Browserify, un bundler de module CommonJS și instrument de build pentru JavaScript. Acesta explică modul de compilare a modulelor de tip Node.js în fișiere JavaScript unice pentru execuție în browserele web. Ghidul acoperă generarea de bundle-uri cu definiție universală a modulelor (UMD) care funcționează în medii Node, AMD și browser. De asemenea, detaliază utilizarea polyfill-urilor compatibile cu browserul pentru modulele built-in din Node.js, asigurând compatibilitatea cross-platform. Manualul descrie capabilități pentru transformarea codului sursă, automatizarea build-ului frontend și depanarea aplicațiilor web. Acoperă, de asemenea, optimizarea dimensiunii bundle-ului, împărțirea bundle-urilor la punctele de intrare și generarea de source maps.
Transforms JavaScript source code through compilation pipelines to support custom syntax or languages.
Sweet-core este un compilator JavaScript source-to-source și un sistem de macro-uri în stil Lisp. Acesta funcționează ca un transformator de sintaxă care extinde JavaScript permițând definirea de sintaxă și operatori personalizați în timpul procesului de compilare. Sistemul oferă un framework pentru construirea de limbaje specifice unui domeniu (DSL) prin expansiune de macro-uri igienică și recursivă, precum și prin crearea de noi constructe de limbaj. Se distinge prin suportul pentru definirea de operatori personalizați cu asociativitate și precedență configurabile pentru a controla evaluarea expresiilor. Compilatorul include un sistem de module specializat pentru gestionarea dependențelor la compilare și integrarea helper-elor la runtime. Arhitectura sa internă acoperă transformarea arborelui sintactic abstract (AST), generarea de gramatici și generarea de obiecte sintactice pentru a asigura igiena lexicală. Este furnizată o interfață de linie de comandă pentru a transforma fișierele sursă în fișiere sau directoare JavaScript standard.
Acts as a JavaScript source transformer that creates new language constructs and operators via macros.
Acest proiect este o suită de instrumente de transformare a arborelui sintactic abstract (AST) concepută pentru a automatiza migrarea codului sursă către versiuni mai noi de React. Oferă un set de scripturi care modifică programatic structurile de cod pentru a înlocui API-urile și pattern-urile de componente depreciate cu echivalente moderne. Toolkit-ul este specializat în conversia componentelor de clasă în componente funcționale folosind arrow functions și destructuring de props. Include, de asemenea, utilitare pentru modernizarea sintaxei JSX, actualizarea metodelor de ciclu de viață depreciate la versiuni stabile și migrarea referințelor legacy bazate pe string-uri către callback refs. Capabilitățile suplimentare acoperă optimizarea pattern-urilor de import, eliminarea importurilor redundante și actualizarea referințelor de pachete și a căilor modulelor. Proiectul folosește migrarea sursei bazată pe reguli și analiza sintactică prin pattern-matching pentru a asigura aplicarea consistentă a transformărilor în codebase-uri mari.
Provides tools for programmatically transforming JavaScript source code through AST manipulation pipelines.
This project is an AST-based code optimizer and compressor for modern ECMAScript, JSX, and TypeScript source code. It functions as a JavaScript minifier that uses the Babel toolchain to reduce file size by removing unnecessary characters and whitespace while preserving program logic. The tool is distinguished by its ability to process experimental language proposals and transform modern syntax into browser-compatible versions. It provides specialized handling for React JSX transpilation and strips type annotations from TypeScript files to produce compressed production assets. The system cove
Converts JavaScript and TypeScript source files into structured abstract syntax trees for analysis and transformation.
Koala is a graphical user interface for managing the compilation, transpilation, and background monitoring of web asset preprocessors. It serves as a build tool that converts Less, Sass, and CoffeeScript files into browser-compatible CSS and JavaScript. The application features a visual interface for controlling the transformation process, removing the need for command line interaction. It integrates a background file monitor that automatically recompiles source files in real time as changes are detected on the local filesystem. The tool provides utilities for managing global and project-spe
Transforming CoffeeScript into executable JavaScript while detecting syntax errors and managing output configurations.
Optimize-js is a JavaScript parsing optimizer designed to reduce the time browsers spend pre-parsing scripts to improve initial execution speed. It transforms source code to minimize the overhead associated with browser parsing. The project implements a technique that wraps function calls in parentheses to bypass initial pre-parsing and reduce double-parsing overhead. To maintain the utility of the transformed code, it includes a source map generator that links the optimized output back to the original source. The toolset also includes performance benchmarking capabilities to measure the exa
Transforms JavaScript source code through AST manipulation to reduce browser pre-parsing overhead.
This project is an interactive JavaScript course and beginner programming guide designed to teach fundamental scripting logic and language syntax. It functions as a web-based coding tutorial that transforms markdown-based lessons into a static site curriculum for learning web development basics. The resource features a browser-based code sandbox that allows for the execution of JavaScript snippets within a secure environment for immediate feedback. Lessons are organized into a linear sequence of modules to provide a structured onboarding process for those new to software development. The sys
Uses lexical analysis to tokenize JavaScript source code for the purpose of applying syntax highlighting.