CMPT 212 Asgn 1 hints
David Simpson (simpson@cs.sfu.ca)
Mon, 26 Jan 1998 10:11:08 -0800 (PST)
Here are some clarifications about CMPT 212 Assignment 1:
1. 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.
2. 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.)
- Dave Simpson
CMPT 212 instructor