from Hacker News

Parsinator.js – a JavaScript parser combinator library with state

by billytetrud on 8/13/23, 10:30 PM with 1 comments

  • by billytetrud on 8/13/23, 10:30 PM

    Yet another parser combinator library with a couple unique features:

    * State, which helps for contextful languages of any reasonable amount of complexity (like ones that have LR conflicts or whitespace delimiting).

    * Supports parameterized parsers and recursive parsers.

    * Powerful debug recording and displaying. This can be enormously helpful figuring out why your parser isn't working as you expect.