Skip to content

saksmt/experimental-hs-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Experiments in Haskell: command line calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published