← 🖥️ Education

💻 Code Execution Pipeline

Show AST tree links
Tokens in flight:
AST nodes:
Instructions retired: 0
FPS:
Drag — rotate · Scroll — zoom

💻 Code Execution Pipeline

Source code doesn't run directly — it flows through a lexer, a parser, a compiler or interpreter, and finally the CPU. This scene lays that pipeline out in 3D so you can watch tokens, syntax trees and instructions move stage by stage.

🔬 What It Demonstrates

How raw text becomes tokens, how tokens are assembled into an Abstract Syntax Tree, and how that tree becomes either machine code or bytecode before instructions retire on CPU cores.

🎮 How to Use

Adjust execution speed and program size, switch between a compiled and interpreted execution model, choose how many CPU cores are available, and toggle the AST's tree links.

💡 Did You Know?

Many real-world runtimes (Java's JVM, Python's CPython, V8 for JavaScript) blend both models: they compile to bytecode first, then use a Just-In-Time compiler to turn frequently run bytecode into native machine code.