Take a look if you're interested in using Ohm to compile to #Wasm.
(This is the same library we use in the new Ohm v18 beta that compiles grammars to Wasm.)
OhmJS
We've released a new version of @wasmground/emit — the small, simple #Wasm 1.0 "assembler library" for JS/TS, which we build up piece by piece in our book.
The headline feature: proper TypeScript types!
Give it a spin and let us know what you think: www.npmjs.com/package/@was...