Source available on Bitbucket: https://bitbucket.org/sirgru/command-line-calculator

 

This is a command line calculator program, serving to demonstrate OOP and TDD concepts. Calculator forms token trees and evaluates them recursively. 

 

Allowed operators are: '+', '-', '*' and '/'.

 

Order of operations and parenthesis work as expected.

 

Send 'd' to toggle debug mode, which shows the unwinding of token tree.

 


Log In:




Comments (0)