NAPI / NAN / WASM bindings?
I have started Verilog Preprocessor project using llparse here: https://github.com/drom/vpreproc
It looks like a good tool for the task.
Wouldn't it be nice if llparse could generate NAPI bindings, then every parser would be a proper NPM module?
It would be nice indeed. Marking this issue as a feature request. Thank you for suggestion!
I wish to have this functionality as well.
The first use case that I thought of when I saw llparse was a csv parser that could be used as an npm module. Not sure if parsing csv with llparse is possible yet but if it was, having a npm module for that would be very useful.
I have created NAPI bindings to my parser. It should be useful as an example: https://github.com/wavedrom/vcd/blob/master/vcd.c