This is a small project I made to learn about parser cominators, TypeScript, and testing in TypeScript.
The library works fine, but writing recursive parsers does not. This is downside considering that parser combinators are a class of parsers known as recursive descent parsers.
Still I learn a lot about TypeScript's type system, and testing in TypeScript.
This is only a toy project, see parzec for a proper implementation.
This project was mostly inspired by Scott Wlaschin's blog post Understanding Parser Combinators.
Alternatively if this interested you, read this paper.