Library to parse JavaScript in opam?

There is a parser in js_of_ocaml, I don’t remember how reliable it is, but it worked for my use. Here is the piece of code to parse a file.

There is also a parser in facebook/pffff, but the code seems outdated and hard to extract.

3 Likes