This problem is about explicit references. 1. In the previous problem, we enhanced the Reflang language to
Question:
This problem is about explicit references.
1. In the previous problem, we enhanced the Reflang language to allow reference arithmetic. Add a new predicate expression, rarith?, to check if an expression uses reference arithmetic during its evaluation.
The expression rarith? follows the grammar shown here:
The following interaction log illustrates the semantics of this expression:
2. Write an example Reflang program that has reference arithmetic as its subexpression, but that subexpression is not executed during its evaluation. Your program must use at least one lambda expression.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
An Experiential Introduction To Principles Of Programming Languages
ISBN: 9780262045452
1st Edition
Authors: Hridesh Rajan
Question Posted: