grammar-to-marser is a browser-based tool designed to convert Pest or PEG grammars into ready-to-run Rust parsers using the Marser parsing library. It provides an interactive environment where users can select either Pest or PEG grammar formats, paste or load their own grammar, and immediately view the generated Rust code as a live preview. This caters to developers who need to transform their grammar definitions into functional Rust parser implementations quickly and without manual translation.
zip file. toml, and a README with guidance on further steps such as AST shaping, error recovery, diagnostics, and tracing. The tool supports a variety of grammar constructs, including grouping, sequences, choices, predicates, repetition, rule modifiers, string and character literals, ranges, node tags, and several built-in tokens. It also handles right and mutual recursion (up to 12 rules per group) and provides explicit error messages for unsupported constructs.
Tracing capabilities are integrated, with the option to add trace markers to every rule in the generated parser. When built and run with the parser-trace feature, the parser records each rule attempt and result to a JSON file, which can then be examined in detail using a terminal-based trace viewer. This helps users step through parsing decisions and understand precisely how their grammar is applied to input data.
grammar-to-marser operates entirely within the web browser and does not mention any specific pricing or licensing information. It is positioned as a specialized tool for Rust developers working with grammar-based parsers, particularly those using Pest or PEG formats and seeking to leverage the Marser library for parser generation.
grammar-to-marser sits in PulseGate's CLI tools & terminal category. It focuses on automating the conversion of PEG/Pest grammars into ready-to-use Rust parsers for developers. grammar-to-marser is an open-source project aimed at rust developers and parser authors. grammar-to-marser costs nothing to use. grammar-to-marser is available on the web and the command line.
Behind grammar-to-marser is Arne Debo, and the product first shipped in 2026. The project is developed in the open on GitHub with 28 stars and 153 commits in the last 90 days. Among its 5 catalogued features are grammar conversion, live preview, and rust code generation.
Latest indexed changes and source events
Show HN: Grammar-to-marser, input a PEG/Pest grammar and get a full rust parser verified by the PulseGate indexer
Other apps tracked under the same category.