Skip to content

Simple Haskell library for parsing expressions and acting on them with pattern replacements

Notifications You must be signed in to change notification settings

maneandrea/simple-parser

Repository files navigation

Simple Parser

This is a very basic Haskell library for parsing expressions of the form head[part1, part2, ...] or also infix expressions like a1 * a2 + a3.

It can also act as a match-replacement library with patterns that can have fixed or variable lenght. A pattern of the form a? matches a single subexpression, a?? a sequence of one or more subexpressions and a??? zero or more. Currently this only works for the notation without infixes operators.

This was mostly an exercise for me to learn Haskell, but comments are always welcome.


To build use

runhaskell Setup configure --ghc-option='-dynamic' --prefix=$(pwd)
runhaskell Setup build

or just simply

cabal configure && cabal build

The (dynamically built) executables are provided in the repository for convenience.

About

Simple Haskell library for parsing expressions and acting on them with pattern replacements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published