In the new “Toy” language that we briefly discussed, what is the
evaluation of the following snippet of code?
{bind {{/ -}} {/ 2 0}}
2
0
-2
Division by zero error
Syntax error
Runtime error
Question 2 @ 2022-03-22 18:59
Which of the following changes are made in the Toy language, relative
to the Flang language?
There is no longer a need for a Call in the AST definition.
A Frame is used to associate names and values in the
environment.
There is no longer a need for an extend function.
The lookup function now requires a frame as one of its inputs.
A FunV can now hold primitive Racket functions.
Question 3 @ 2022-03-22 19:02
Now that we have side effects including mutable boxes, we are able to
implement objects with state. Which of the following is true about the
object below?