Skip to content

Punie/elm-parser-extras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Build Status

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

  • Add some tests
  • Add a changelog
  • Add contributing guidelines
  • Support the new version 1.1.0 of elm/parser that exposed the Parser.Advanced module (see #3)
  • Gather feedback and add some more useful combinators to Parser.Extras

Licence

BSD-3-Clause ©️ Hugo Saracino

Packages

No packages published

Languages