Exp ::= Int | Exp + Exp | Exp - Exp | Exp * Exp | Exp / ExpI don't care about parsing in this class, so don't waste your time writing a parser. Here what I want you to do:
new AddExp(new IntExp(3), new AddExp(new IntExp(5), new IntExp(6)))In a complete interpreter, the conversion from the textual representation of expressions to Java objects is done by the parser.
sabry@cs.uoregon.edu