ohmjs/ohm
View on GitHub ↗ ★ 5,555 JavaScript
A library and language for building parsers, interpreters, compilers, etc.
42 mentions on Hacker News by 34 people: 8 stories, 34 comments · first 2015-07-16 · latest 2026-03-30
20082026
-
…to context sensitive language which is a deal breaker for me (like C++ raw string as an example). https://github.com/ohmjs/ohm/issues/158
comment by Trung0246 · 2026-03-30 · in Ohm's Peg-to-WASM Compiler -
You can also check rhe examples folder: https://github.com/ohmjs/ohm/tree/main/examples
comment by wslh · 2026-03-30 · in Ohm's Peg-to-WASM Compiler -
Could you provide a bit more context here? I’m looking at the math example ( https://github.com/ohmjs/ohm/blob/main/examples/math/index.h... ) and would like to learn a bit more.
comment by tomtom1337 · 2025-11-15 · in Ohm Editor -
▲ 2
Ohm: A JavaScript library and PEG-based language for building parsersstory by fanf2 · 2025-07-26 · 0 comments
-
…- the grammar would need to match on SSA or similar. The examples have a lisp-like interpreter at https://github.com/ohmjs/ohm/blob/main/examples/simple-lisp/... which definitely uses a grammar for parsing and might use a generic AST…
comment by JonChesterfield · 2023-10-31 · in Ohm: A library and language for building parsers, interpreters, compilers, etc -
▲ 108
Ohm: A library and language for building parsers, interpreters, compilers, etcstory by yeesian · 2023-10-31 · 21 comments
-
…languages. [1] https://lively-web.org/core/servers/HaskellServer.js [2] https://ace.c9.io/ [3] https://github.com/harc/ohm
comment by robertkrahn01 · 2021-06-07 · in Replit used legal threats to kill my open-source project -
Always fun to find the first commit: https://github.com/harc/ohm/commit/4611bf63c5ecb90d782112d68... 2014 Neat tool. I write parsers by hand though. More fun, and you can be a lot sleazier.
comment by recursivedoubts · 2021-03-27 · in Ohm – A library and language for building parsers, interpreters, compilers, etc. -
▲ 348
Ohm – A library and language for building parsers, interpreters, compilers, etc.story by testing_1_2_3_4 · 2021-03-27 · 100 comments
-
I'm surprised Ohm isn't mentioned, it is spectacular. Anybody interested in parsers is gonna love it: https://github.com/harc/ohm
comment by marknadal · 2019-12-12 · in Write a parser with JavaScript -
▲ 1
Ohm – A library and language for building parsers, interpreters, compilers, etc.story by gjvc · 2019-05-21 · 1 comment
-
…derivative works that I've found over time: Ohm, the successor to the parser (Ometa) used by Nile: https://github.com/harc/ohm Maru, Nile's compiler/interpreter/whatever: https://www.reddit.com/r/programming/comments/157xdz/maru_is... Nile…
comment by chenglou · 2019-05-06 · in Alan Kay on “What Made APL Programming So Revolutionary?” -
Or OMeta http://tinlizzie.org/ometa/ or Ohm https://github.com/harc/ohm or the like
comment by jacobolus · 2019-02-07 · in About V, the language Volt is written in -
Absolutely! Furthermore, https://github.com/harc/ohm is the successor to OMeta.
comment by davidkellis · 2018-11-07 · in Owl: Parser generator for visibly pushdown languages -
I'm in the same boat. I've found https://github.com/harc/ohm to be a pretty pleasant grammar and parser to use. Ohm also has a nice interactive editor: https://ohmlang.github.io/editor/
comment by davidkellis · 2018-11-07 · in Owl: Parser generator for visibly pushdown languages -
…do, how you'll interpret it, what problems it would express, &c. [0] https://ohmlang.github.io/ [1] https://github.com/harc/ohm/blob/master/examples/math/index.... Also consider reading about OMeta, if Ohm isn't your thing.
comment by arh68 · 2018-09-13 · in Ask HN: What's a starting point for learning how to write programming languages? -
This came up just yesterday, but I wonder if Ohm ( https://github.com/harc/ohm ) would help with the implementation...
comment by nielsbot · 2018-04-27 · in Heron Language 3D Geometry Demo -
I recommend Ohm instead (made by the same people who made OMeta), which I see as OMeta's successor: github.com/harc/ohm
comment by _mhr_ · 2018-04-26 · in Ink – inkle's narrative scripting language -
…left recursion, which is just that -- different. You can find a more thorough discussion here: https://github.com/harc/ohm/issues/55
comment by pdubroy · 2017-10-17 · in Ohm: Parsing Made Easy -
…between syntax and semantics. We think this has several benefits, which we describe a bit here: https://github.com/harc/ohm/blob/master/doc/philosophy.md Another difference is that Ohm grammars can contain left recursion -- both direct and…
comment by pdubroy · 2017-10-17 · in Ohm: Parsing Made Easy -
…). I'm pretty sure you could implement that in Ohm, by extending our ES5 grammar ( https://github.com/harc/ohm/blob/master/examples/ecmascript/... ). However, Ohm doesn't really have an "executing environment". It's up to Ohm users to…
comment by pdubroy · 2017-10-17 · in Ohm: Parsing Made Easy -
…The framework has since evolved into ohm, but I think ometa-js is more fun for playing around with. https://github.com/harc/ohm
comment by e12e · 2017-09-04 · in Ask HN: Resources for building a programming language? -
…angle? [1] http://www.tinlizzie.org/ometa/ https://github.com/alexwarth/ometa-js See also ohm: https://github.com/harc/ohm
comment by e12e · 2017-08-15 · in Writing parsers like it is 2017 -
…for several years? Perhaps Ometa's younger's brother (Ohm) should have been referenced instead: https://github.com/harc/ohm Unfortunately while it seems to have some very nice features, particularly the separation of grammar and semantics.…
comment by bd82 · 2017-08-15 · in Writing parsers like it is 2017 -
▲ 4
Ohm: A library and language for building parsers, interpreters, compilers, etc.story by mpweiher · 2017-04-22 · 0 comments
-
Btw: The next iteration of that project live here: https://github.com/harc/ohm
comment by corysama · 2016-12-08 · in Talks that changed the way I think about programming -
Work is still being done in that direction see: https://github.com/harc/ohm
comment by pierre_d528 · 2016-11-25 · in META II: A Syntax-Oriented Compiler Writing Language (1964) [pdf] -
▲ 3
Ohm.js: Library and language for building parsers, interpreters, compilers, etc.story by adamnemecek · 2016-09-28 · 0 comments
-
▲ 2
Ohm.js: Library and language for building parsers, interpreters, compilers, etc.story by adamnemecek · 2016-09-26 · 0 comments
-
Awesome! The syntax reference is a must: https://github.com/cdglabs/ohm/blob/master/doc/syntax-refere...
comment by cellularmitosis · 2016-09-02 · in Language Hacking in a Live Programming Environment -
…but I would love to prototype the grammar in the Ohm editor and then compile it down to Bison. [0]: https://github.com/cdglabs/ohm
comment by haldean · 2016-09-01 · in Language Hacking in a Live Programming Environment -
Re: the Ometa language, a sequel that is hosted on Javascript is Ohm: https://github.com/cdglabs/ohm
comment by kristianp · 2016-07-01 · in Programming language development: the past 5 years (2011) -
I recommend checking out https://en.m.wikipedia.org/wiki/OMeta and https://github.com/cdglabs/ohm
comment by corysama · 2016-06-29 · in How to implement a programming language in JavaScript -
…previous research lab CDG (I believe it is largely being folded into HARC) is working on with ohm: https://github.com/cdglabs/ohm
comment by jgon · 2016-06-05 · in Hacker News Highlights, the Alan Kay Edition -
I believe that's: https://github.com/cdglabs/ohm ? I see I've starred it at some point, but can't remember really looking at it. But if it's a refined/improved OMeta, it would indeed be interesting. Thanks for the reminder.
comment by e12e · 2016-05-12 · in Final “STEPS Toward the Reinvention of Programming” Paper [pdf] -
Related: https://github.com/cdglabs/ohm and Alessadro Warth et als work on OMeta. See parsing/unparsing in http://tinlizzie.org/ometa/
comment by earleybird · 2016-03-13 · in Show HN: A multi-syntax programming language with bidirectional grammars -
…this you should check out OMeta and Ohm from the same group. https://github.com/alexwarth/ometa-js https://github.com/cdglabs/ohm
comment by joshmarinacci · 2015-09-10 · in Maru – A self-hosted symbolic expression evaluator (2012) -
▲ 4
Ohm, a library and language for parsing and pattern matchingstory by Glench · 2015-07-16 · 0 comments