ohmjs / ohm

A library and language for building parsers, interpreters, compilers, etc.
MIT License
5.01k stars 217 forks source link

Building a standalone parser #401

Closed jareware closed 1 year ago

jareware commented 2 years ago

I'm sorry if this is covered somewhere in the docs, I honestly tried hard to find the answer online... but is it possible to build an Ohm parser into a zero-deps JS module like what you get if you do "Download parser" at https://pegjs.org/online?

pdubroy commented 1 year ago

Hi - sorry for not replying sooner. No, this is not something that Ohm directly supports. However, you could do it yourself by using a bundler like Rollup or esbuild.