Ohm: A user-friendly parsing toolkit for JavaScript and TypeScript

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. pest

    The Elegant Parser (by pest-parser)

    I have been on the lookout for something that code help me with Jinja and it seems like a plausible candidate. Extra bonus points if I could actually embed the Python in the same grammar but at this point even having the code blocks segregated from the literal parts is a good start

    https://pest.rs/?g=N4Ig5gTghgtjURALhAMwJYBsCmACAvLsLgMoDyAkr...

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. peggy

    Peggy: Parser generator for JavaScript

    I am jealous of kids these days learning the theory of parsing. There are so many great resources out there! Ohm in particular looks great, attention to detail, care for the theory. Makes me wish I had a project to try it out.

    I am a big fan of PEG parsers. They do come with their set issues and difficulties but I always found them great to work with. My to go tool (also a PEG parser similar to Ohm) used to be pegjs now https://peggyjs.org/

    When I needed speed, or a more classical take, I would use jison. But I think today I would have to find a good reason not to build a hand made parser.

  4. grammars-v4

    Grammars written for ANTLR v4; expectation that the grammars are free of actions.

    I found some benchmarks in the ANTLR project: https://github.com/antlr/grammars-v4/blob/master/java/java/B...

      Project          Parsing/Lexing Ratio

  5. lotsawa

    The Marpa parsing alrgorithm in Javascript

    Yeah, agreed.

    I just wish someone would write a "how Marpa parsing works for dummies" article. I've been curious about how it actually works ever since I was colleagues with Aria Stewart, who ported it to JS once upon a time and mentioned it's existence to me (we worked remotely and in opposite time-zones, so I never had a chance to sit down with her for a good old in-person explanation).

    [0] https://savage.net.au/Marpa.html

    [1] https://jeffreykegler.github.io/personal/timeline_v3

    [2] https://github.com/aredridel/lotsawa

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • pest VS lezer - a user suggested alternative

    2 projects | 7 Mar 2025
  • Building a Stripe-like Search Language from Scratch

    1 project | dev.to | 19 Dec 2024
  • Rust clean-slate POSIX CLI utilities 0.2.1 release: Awk, M4, ftw and more

    3 projects | news.ycombinator.com | 21 Sep 2024
  • Taking LLMs to (code) town: parsing robots.txt featuring RFC 9309

    1 project | dev.to | 2 Sep 2024
  • nom > regex

    10 projects | /r/rust | 6 Dec 2023

Did you know that JavaScript is
the 3rd most popular programming language
based on number of references?