Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 877 Bytes

README.MD

File metadata and controls

31 lines (20 loc) · 877 Bytes

Poorly made calculator

This little program is a calculator that can do basic math. I made it to learn a bit about parsing, tokenizing and the reverse Polish notation. It doesn't catch all of the possible mistakes one might make and won't handle arbitrary input without issues. It doesn't support functions either, but I may work on that later. There's way too much effort put into the external utilities like tests and stuff - this project doesn't deserve that.

Start guide

Clone the repo, then...

python -m pip install -r requirements.txt
python run.py <expression>

Potential TODO (if I feel like it)

  • Add support for functions
  • Add support for variables?
  • Make a GUI (maybe a web app with Flask?)
  • Refactor the code to be more readable

Probably not, though.

License

Licensed under the MIT license.

Contributing

Why?