awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
pegjs avatar

pegjs/pegjs

0
View on GitHub↗
4,908 Stars·421 Forks·JavaScript·MIT·8 Aufrufepegjs.org↗

Pegjs

PegJS ist ein Parsing-Expression-Grammar-Tool und ein JavaScript-Parser-Generator. Es fungiert als Grammatik-Compiler, der formale Grammatikspezifikationen in ausführbaren JavaScript-Code zur Analyse strukturierter Texte und zur Verarbeitung komplexer Eingabezeichenfolgen umwandelt.

Das System generiert deterministische Parser, die die Mehrdeutigkeit kontextfreier Grammatiken vermeiden. Es nutzt ein Packrat-Parsing-Modell mit Memoization, um lineare Zeitkomplexität sicherzustellen, und verwendet rekursives Abstieg-Parsing, um Eingaben in einer Top-Down-hierarchischen Weise zu verarbeiten.

Das Toolset unterstützt die Implementierung domänenspezifischer Sprachen und die Entwicklung benutzerdefinierter Sprachen. Es enthält Fähigkeiten für rekursive Grammatikregeldefinitionen, Inline-semantische Aktionen zur Transformation von gematchtem Text in strukturierte Daten und semantische Prädikate für bedingtes Matching.

Die Generierungs-Engine enthält Konfigurationsoptionen, um die Ausführungsgeschwindigkeit des resultierenden Parsers gegen die finale Ausgabecodegröße abzuwägen.

Features

  • Formal Grammar Parser Generators - Functions as a tool that generates executable JavaScript parsers from formal grammar specifications.
  • Recursive Descent Parsers - Processes input strings using top-down hierarchical nesting of function calls to match grammar rules.
  • Custom Parsing Logic - The capability to run JavaScript code during the parsing process to transform matched data or trigger validation errors.
  • Input String Parsing - Processes text input using a generated parser to return structured results or detailed failure exceptions.
  • Programming Language Development - Provides the necessary tooling to create new programming or data languages by defining their formal grammars.
  • Domain Specific Languages - Enables the implementation of specialized languages for specific tasks by translating text into machine-readable formats.
  • Recursive Grammar Matching - Supports the definition of recursive matching rules using literals and character sets to describe structural layouts.
  • Semantic Actions - Embeds arbitrary JavaScript expressions within grammar rules to transform matched text into structured data objects.
  • Packrat Parsing - Utilizes a packrat parsing model with memoization to ensure linear time complexity for the generated parsers.
  • PEG Grammar Parsers - Provides a deterministic parser based on parsing expression grammars, avoiding the ambiguity of context-free grammars.
  • Parser Generators - Generates functional JavaScript code from parsing expression grammar definitions to analyze structured text.
  • JavaScript Component Generators - Translates parsing expression grammar definitions into functional JavaScript code for text analysis.
  • Custom Text Format Parsing - Processes complex input strings into structured data formats using formal parsing expression grammars.
  • Parser Generation Optimizations - A configuration option to balance execution speed against minimum code size for the generated parser output.
  • Dynamic Predicate Evaluation - Evaluates boolean expressions during the parse process to determine if a specific grammar rule should be applied.
  • Semantic Predicates - Evaluates JavaScript expressions during parsing to conditionally succeed or fail a match without consuming input.
  • Parsing Backtracking - Implements backtracking to allow the parser to explore alternative matching paths when a grammar rule fails.
  • Parsing Utilities - Parser generator for creating fast parsers.

Star-Verlauf

Star-Verlauf für pegjs/pegjsStar-Verlauf für pegjs/pegjs

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Pegjs

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Pegjs.
  • pest-parser/pestAvatar von pest-parser

    pest-parser/pest

    5,355Auf GitHub ansehen↗

    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

    Rust
    Auf GitHub ansehen↗5,355
  • antlr/antlr4Avatar von antlr

    antlr/antlr4

    18,928Auf GitHub ansehen↗

    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

    Java
    Auf GitHub ansehen↗18,928
  • kach/nearleyAvatar von kach

    kach/nearley

    3,740Auf GitHub ansehen↗

    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

    JavaScript
    Auf GitHub ansehen↗3,740
  • zaach/jisonAvatar von zaach

    zaach/jison

    4,385Auf GitHub ansehen↗

    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

    JavaScript
    Auf GitHub ansehen↗4,385
Alle 30 Alternativen zu Pegjs anzeigen→

Häufig gestellte Fragen

Was macht pegjs/pegjs?

PegJS ist ein Parsing-Expression-Grammar-Tool und ein JavaScript-Parser-Generator. Es fungiert als Grammatik-Compiler, der formale Grammatikspezifikationen in ausführbaren JavaScript-Code zur Analyse strukturierter Texte und zur Verarbeitung komplexer Eingabezeichenfolgen umwandelt.

Was sind die Hauptfunktionen von pegjs/pegjs?

Die Hauptfunktionen von pegjs/pegjs sind: Formal Grammar Parser Generators, Recursive Descent Parsers, Custom Parsing Logic, Input String Parsing, Programming Language Development, Domain Specific Languages, Recursive Grammar Matching, Semantic Actions.

Welche Open-Source-Alternativen gibt es zu pegjs/pegjs?

Open-Source-Alternativen zu pegjs/pegjs sind unter anderem: 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…