3 Design
3.1 Token Class
The Token type, which is an enum type and used in the Token
class, is defined as follows:
enum Token_type {ID, INT, OP, EQ, OpenBrace, CloseBrace, INVALID};
If string s, passed in to the constructor or set method, is an
identifier then the token type is ID; is a nonnegative integer then
the token type is INT; is one of +, -, *, / then the token type is
OP; is = then the token...