Execute AST or Bytecode Directly

Back to Interpretation

The interpreter walks the AST or steps through bytecode instructions, executing each one immediately. Tree-walking interpreters are simpler but slower; bytecode interpreters (like CPython’s) are faster due to a more compact and sequential representation.

language-implementation interpretation execution