A simple calculator.

Categories: study-related, cool

It started as a little "let's write a little calculator, I've never written one" exercise one day in 2008, and grew a little more to include trig functions and variables. It was a nice exercise in writing a decent parser for a simple language. I tried to have as few LOC as possible, and in the end I had about ~150, which is ok I guess.


calc.tar.bz2 (219.28 Kbytes)