In this recitation assignment, you are given the definition of a Class, calledValue, which represents values of different PLSL language types of operands, as (INTEGER, REAL, STRING) and Boolean, through using C++ types as (int, float, string, and bool) for four data members. The objective of defining theValueclass is to facilitate constructing an interpreter for the PLSL language which evaluates expressions and executes PLSL statements.
In this assignment, 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 PLSL interpreter in PA3. You are required to implement the overloaded operators for Addition, Multiplication and Equality. The semantic rules governing the evaluation of expressions in the PLSL language are summarized below:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here