Pest is a Rust parsing library and automatic parser generator that transforms formal grammar definitions into functional parsers. It specializes in Parsing Expression Grammar to recognize and structure complex text patterns, providing a system for context-free grammar parsing. The library implements zero-copy tokenization and static grammar compilation to reduce runtime overhead. It supports no-std runtime compatibility, allowing the parser to be compiled for embedded or bare-metal environments where a standard library is unavailable. The project covers a range of parsing capabilities, inclu
ANTLR is a grammar-based code generator and multi-language parser generator used to design and implement custom languages. It functions as a toolkit for transforming formal language definitions into executable source code for processing structured text or binary files, while providing a framework for automatically constructing and traversing hierarchical parse trees. The project is distinguished by its ability to generate lexers and parsers in various target programming languages from a single shared grammar definition. It supports grammars containing direct left recursion and utilizes adapti
Nearley is a JavaScript parser toolkit and context-free grammar compiler. It functions as an Earley parser generator that transforms BNF-like grammar definitions into executable code capable of analyzing text and generating abstract syntax trees. The project is distinguished by its ability to handle any context-free grammar, including those with left recursion and ambiguity, by maintaining multiple valid derivations for a single input. It further supports incremental parsing, allowing input strings to be processed in chunks to provide partial results and real-time feedback. Beyond core parsi
Jison is a JavaScript parser generator that implements the LALR parsing algorithm. It creates tools to analyze custom programming languages by converting structured input into tokens and trees. The project functions as a Bison-compatible generator, accepting grammars in a format compatible with the Bison parser generator to produce JavaScript parsers. It covers the requirements for compiler frontend development, including the implementation of domain-specific languages and syntax analysis tooling. Its capabilities extend to custom language parsing and the generation of parsers via a command
PegJS este un instrument de gramatică de expresii de parsare și un generator de parser JavaScript. Funcționează ca un compilator de gramatică care transformă specificațiile formale de gramatică în cod JavaScript executabil pentru analizarea textului structurat și procesarea șirurilor de intrare complexe.
Principalele funcționalități ale pegjs/pegjs sunt: Formal Grammar Parser Generators, Recursive Descent Parsers, Custom Parsing Logic, Input String Parsing, Programming Language Development, Domain Specific Languages, Recursive Grammar Matching, Semantic Actions.
Alternativele open-source pentru pegjs/pegjs includ: pest-parser/pest — Pest is a Rust parsing library and automatic parser generator that transforms formal grammar definitions into… antlr/antlr4 — ANTLR is a grammar-based code generator and multi-language parser generator used to design and implement custom… kach/nearley — Nearley is a JavaScript parser toolkit and context-free grammar compiler. It functions as an Earley parser generator… zaach/jison — Jison is a JavaScript parser generator that implements the LALR parsing algorithm. It creates tools to analyze custom… alecthomas/participle — Participle is a Go parser generator and toolkit for building language frontends. It provides a declarative grammar… hyperjumptech/grule-rule-engine — Grule is a business rule engine for Go that decouples complex decision-making logic from core application code. It…