Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 609 Bytes

File metadata and controls

34 lines (25 loc) · 609 Bytes

calc

Calc is a package that provides the tools to evaluate simple numerical expressions

Notes

currently calc support addition and subtraction only

Build the application

Use make command.

foo@bar:~$ make build

How to run the application

Run command from .bin directory

foo@bar:~$ ./bin/calc -i "5+2"
foo@bar:~$ ./bin/calc -i "20 + -20 + 30 - -30"
foo@bar:~$ ./bin/calc -i "-20 + -20 + 30 - -30"

Get Help

Run apps using help flag for detail instructions

foo@bar:~$ ./bin/calc help

License

MIT