In this recitation assignment, you are given the definition of a Class, calledValue, which represents values of operands in the language to implement its interpreter in Programming Assignment 3. These include values for the three defined types in the language: INT, FLOAT, and BOOL, as well as the string literal. The objective of defining theValueclass is to facilitate constructing an interpreter for the language which evaluates expressions and executes statements using C++.
In RA 8, you are required to implement some of the overloaded operators of theValueclass in order to enable testing this class separately as a unit before using it in the construction of the interpreter in PA3. You are required to implement the overloaded operators for Subtraction, Multiplication, Less-Than, and AND operations. The semantic rules governing the evaluation of expressions in the language are summarized below:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here