4 ms·
This is pretty cool and useful! I had been doing bootleg parser combinators in JavaScript up until now. This works, although being someone who doesn't write Has
by jchw 5y ago
This is pretty cool and useful! I had been doing bootleg parser combinators in JavaScript up until now. This works, although being someone who doesn't write Haskell I assume that the magic that makes parser combinators efficient is not easy to implement in most languages. (I've been using nom with Rust on the side too and it seems to do the same naive stuff that I do.)
If you ever want to parse binary data using JavaScript, I will always recommend the excellent Kaitai Struct project.
https://kaitai.io/ https://kaitai.io/