You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
468 B
9 lines
468 B
2 years ago
|
|
||
|
Exercise 5.49: As an alternative to using the
|
||
|
explicit-control evaluator’s read-eval-print loop, design a register machine
|
||
|
that performs a read-compile-execute-print loop. That is, the machine should
|
||
|
run a loop that reads an expression, compiles it, assembles and executes the
|
||
|
resulting code, and prints the result. This is easy to run in our simulated
|
||
|
setup, since we can arrange to call the procedures compile and
|
||
|
assemble as “register-machine operations.”
|