/elm-calculator

A toy parser combinator library used to build a very simple calculator. Was built to learn Elm and understand parser combinators.

Primary LanguageElm

Synopsis

elm-calculator is a toy project to explore the exciting world of monadic parser combinators.

Installation

# install elm
npm install elm -g

# get and run this code
git clone https://github.com/akobler/elm-calculator.git
cd elm-calculator
elm-package install
elm-reactor
# now point your browser to: https://localhost:8000 and open src/Main.elm

# run unit tests (no coverage, only to demonstrate unit testing)
cd tests && elm-package install && cd ..
elm-test

Disclaimer

This is a toy project. Consider elm-combine for more serious business.

Ressources

The main sources of inspiration, ideas, examples and a lot of fun:

Many thanks!

License

Use, learn and build awesome stuff. (MIT)