Source available on Bitbucket.
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.
This is a command line calculator program, serving to demonstrate OOP and TDD concepts. Calculator forms token trees and evaluates them recursively.
Source available on Bitbucket.
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.