flunc-grammar
v0.0.3
Published
A grammar combinator library for creating parsers and printers
Downloads
1
Readme
Flunc Grammar
Status: Experimental
This project is an example of some grammar combinators constructed using the Isos and Prisms available in the flunc-optics library. A grammar in this sense is something that combines the notion of both a parser and a printer in a single data type.
npm install flunc-grammar
The code used here is a translation of the Haskell Fresnel library created by Fraser Tweedale:
- https://github.com/frasertweedale/hs-fresnel
- https://speakerdeck.com/frasertweedale/parsing-and-pretty-printing-with-prisms