inhabitedtype / angstrom

Parser combinators built for speed and memory efficiency
Other
637 stars 74 forks source link

Make [Angstrom.fix] friendly with js_of_ocaml (Alternative to #186) #187

Closed hhugo closed 4 years ago

hhugo commented 4 years ago

This is an alternative implementation to #186 that doesn't change the interface at the cost of translating between the internal and external state. I am not sure how to measure the impact of the additional allocation. It seems to me that it would only matter for cases with lots of Partial state (e.g. feeding one char at a time).

seliopou commented 4 years ago

@dinosaure is this what you were looking for?

seliopou commented 4 years ago

I'll cut a release today.