Execution Lifecycle
How Kexra programs are parsed, compiled, and executed.
Why this exists
Understanding execution helps developers write efficient, correct code.
How it works
Programs go through lexing, parsing, and interpretation phases in sequence.
Examples
- Source code → Tokens (lexing)
- Tokens → AST (parsing)
- AST → Execution (interpretation)
Common mistakes
- Assuming compilation happens
- Not understanding interpretation overhead