Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 353 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 353 Bytes

calc

Experiments in Haskell: command line calculator.

Usage

$ stack build
$ stack exec calc-exe

As library

import Term

computed = eval $ Sum (ValueF 10) (Pi)
import Term
import Text.Parsec

parseCalculation text = fmap toExpr $ parse termsP "my calc" text
execParsed parsed = fmap eval parsed