Skip to content

a simple calculator program to teach me gleam, parsers and a more functional way of building

License

Notifications You must be signed in to change notification settings

propbreakerfpv/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calculator

this is a educational project to teach me gleam, parser stuff and a more functional way of doing things.

what can it do

  • addition, subtraction, multiplication, division
  • parenthesis
  • input via: repl, cli args

usage

to enter the repl

gleam run

to use cli args. it will combine all the arguments into one long expression so you don't need to wory about " inless you are using perenthesis or multiplication because they mean something to the shell

gleam run [your math expression]

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell

About

a simple calculator program to teach me gleam, parsers and a more functional way of building

Resources

License

Stars

Watchers

Forks

Languages