A Problem Course in Compilation: From Python to x86 Assembly

Each node in the AST is a Python object. The objects are instances of Python classes; there is one class for each langauge construct. In the above interaction we invoked compiler.parse, but in your compiler I recommend using an alternative function that takes it’s input from a file: compiler.parseFile. Figure 2 shows the Python classes for the ................
................