nodejs / llparse

Generating parsers in LLVM IR
http://llparse.org
Other
586 stars 32 forks source link

NAPI / NAN / WASM bindings? #25

Open drom opened 5 years ago

drom commented 5 years ago

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?

indutny commented 5 years ago

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

sul4bh commented 4 years ago

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.

drom commented 4 years ago

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