Back to browse
GitHub Repository

A parser-combinator library for writing PEG-style grammars in Rust with a focus on useful errors, error recovery and good performance.

13 starsRust

Marser, a grammar-first parser combinator library for Rust

by ArneCode·Jun 10, 2026·2 points·1 comment

AI Analysis

MidNiche GemShip It

TUI debugger is novel, but nom and chumsky already own this space.

Strengths
  • TUI for debugging parsers is genuinely unique in the Rust ecosystem
  • Grammar-first approach makes parser code resemble EBNF notation
  • Zero-copy parsing and packrat caching show performance awareness
Weaknesses
  • Parser combinators in Rust are solved (nom, chumsky, pest dominate)
  • First library from author with AI-assisted code raises maturity questions
Target Audience

Rust developers building parsers or compilers

Similar To

nom · chumsky · pest

Post Description

Hello everyone!

I am the author of marser, a parser-combinator library in rust.

I have tried outlining the reasons for writing this library in this blog post: https://blog.arnedebo.com/posts/a-grammar-first-approach-to-...

The main aim of the library is to make parsers readable and understandable by enabling users to write code that resembles formal grammars / ebnf (more on that in the blog post). It also has additional features like error recovery, custom error diagnostics and a TUI for debugging the parsers.

This is my first library, so I would really appreciate some feedback on design decisions / usability etc.

Disclaimer: I have used AI for parts of the documentation, for some of the macro code and things like the TUI viewer but the core parsing code has been written by me.

Similar Projects

DataMid

Grammar of Graphics CLI tool made in Rust

Grammar of graphics in CLI form when Vega-Lite and ggplot2 exist.

Niche Gem
williamcotton
101mo ago