Ohm: A user-friendly parsing toolkit for JavaScript and TypeScript
5 comments
·February 8, 2025patrickthebold
In the past, I had always had a distaste for 'stringy' data, always preferring more structure (e.g objects). Once I learned about parsers, I realized you can still have structure in a string.
lukasb
Can anyone compare to Chevrotain?
phfrohring
Great! Worth trying! I've built a parser for the robotic arm language (LCD 350) with it in record time.
RickS
Oh hell yeah. Stoked to see something like this in TS. I enjoy making a toy DSL here and there, but it's a lot of friction to relearn Lex and Yacc every time. The editor looks great too, really like the visualizations.
For anybody already using this, what's your workflow like for getting from this to IDE syntax highlighting?
Can anyone familiar with PEG explain how much it deviates ("inspired by") from "standard" PEG?
I've only used PEG once because of builtin support in Guile scheme, but this library might be a bit more useful, as it's in JS.