Assigned Reading:
Handouts (available on-line):
Topics Covered:
The calculator program is divided into 2 parts. The parser works with higher level concepts (expressions, terms and factors). The parser essentially follows the derivation rules for a legal arithmetic expression.
The tokenizer does the string and character manipulations for the parser. As usual, the functions provided by the tokenizer and the types used by the tokenizer is given in a header file.