This problem is about explicit references. In current realization of the Reflang language, arithmetic operations are not

Question:

This problem is about explicit references. In current realization of the Reflang language, arithmetic operations are not permitted on a reference value.
1. Modify the semantics of a dereference expression such that it can dereference locations specified as explicit natural numbers. See the interaction log here for an example:image

2. Modify the semantics of an assignment expression such that it can assign locations specified as explicit natural numbers. See the interaction log here for an example:image

3. Modify the semantics of addition and subtraction expressions such that addition and subtraction are permitted on reference values.
In this resulting language, adding one or more numeric values to a reference value creates a reference value. See the interaction log here for an example:image

In this language, subtracting one or more numeric values from a reference value results in a reference value. See the interaction log here for an example:image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: