myrho/elm-parser-extras - version: 1.0.1

for more information visit the package's GitHub page

Package contains the following modules:

Parser Extra

This library provide useful combinators for working with the elm/parser library such as parsing expression between parentheses, braces, brackets or any other symbols.

This is a fork of Punie/elm-parser-extras. Please see the changelog for API changes.

The rest of this readme stems from the original author.

Why?

I wanted to try out the shiny new upcoming (now released) version 0.19 of Elm.

My little side-project for doing so was a dead-simple interpreter for a little Simply Typed Lambda Calculus.

Over time, I found myself needing a bunch of little helpers and combinators for writing the parser. I figured "Why not put them in a Parser.Extras package of their own?" (which they were already, albeit in the src directory of my small project).

I also wanted to simplify the construction of expression parsers with different types of operators (infix, prefix, postfix) with different associativity rules and precedence. For this, I reached for the Haskell library Text.Parsec.Expr for inspiration and added the Parser.Expression module to my little library.

Roadmap

Licence

BSD-3-Clause :copyright: Hugo Saracino