Skip to content

ashbork/calc_from_scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages