llparse icon indicating copy to clipboard operation
llparse copied to clipboard

NAPI / NAN / WASM bindings?

Open drom opened this issue 6 years ago • 3 comments

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?

drom avatar Jul 06 '19 02:07 drom

It would be nice indeed. Marking this issue as a feature request. Thank you for suggestion!

indutny avatar Jul 07 '19 02:07 indutny

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.

sul4bh avatar Oct 11 '19 23:10 sul4bh

I have created NAPI bindings to my parser. It should be useful as an example: https://github.com/wavedrom/vcd/blob/master/vcd.c

drom avatar Oct 22 '19 01:10 drom