coverExploring C++: The Programmer's Introduction to C++

Project 4, Exploration 68: Calculator


The calculator project is the most complicated one, being the last. I recommend following the six steps I outline in Exploration 68. The files below show the evolution of my solution as I follow the six steps. The parser undergoes the greatest change, although its central spirit remains the same throughout all steps.

In this project, I use Boost.Test for the unit-testing framework. The project was just too complicated for the trivial test.hpp file that other projects use. If you do not have access to Boost for any reason, do not compile the tester program, only the calc program.

See also the main projects page.