CMPT 212
Object-Oriented Applications Design in C++
Spring 1998
Assignment 1
Corrections and Clarifications
I assume that the input will be no more than 100 characters.
(You can use an array of 100 characters to store the input
character string.)
I recommend using cin.getline() to read in the character
string.
The parse function defined in parse.h is the entrance
into the parsing module. Inside that module, you will have
other functions that will do the actual parsing. These
other functions will be functions such as parseExpr,
parseTerm, and parseFactor. I intended the parse
function to simply be the function seen by the other modules,
but that it will call parseExpr to do the actual work.
(See Section 3.2 of the assignment description for a brief
algorithm description of some of these functions.)