3. A Generated Code Interpreter¶
In this chapter we start afresh on a second model run-time system
in sub-project rt2.
We use the knowledge gained writing the code in sub-project rt1
to bank some architectural concepts
(that will hopefully prove enduring)
but take a different approach to implementation.
- 3.1. Introduction
- 3.2. An Interpreter for CPython Byte Code
- 3.2.1.
PyObjectas an Interface - 3.2.2. Basic types
int,floatandstr - 3.2.3. Objects for
bytesandtuple - 3.2.4. Implementing
dict - 3.2.5. A Python
exceptionas a JavaThrowable - 3.2.6. Runtime Support:
Py - 3.2.7. Implementing
code - 3.2.8. Implementing
frame - 3.2.9. The
frameas an Interpreter - 3.2.10. Program Examples
- 3.2.1.
- 3.3. Type and Arithmetic Operations
- 3.4. Sequences and Indexing
- 3.5. Built-in Inheritance
- 3.6. Comparison and Loops
- 3.7. Refactoring for
evo3 - 3.8. Function Definition and Call
- 3.9. Refactoring for
evo4 - 3.10. Access to Attributes
- 3.11. Attributes Defined in Java
- 3.12. Attributes Defined in Python