Lexing, parsing and AST construction
SOFTWARE ENGINEERING / COMPILERS / STATIC ANALYSIS
Mini Compiler & Static Analyzer
Building a compiler forces software design to become explicit: syntax, structure, types, errors and invariants all have to agree.
ENGINEERING SIGNAL
What this project is designed to prove.
Static type checking
Precise diagnostics tied to source locations
WORKING BROWSER LAB / SYNTHETIC MODEL
Inspect the software behavior.
Tokenize a tiny language, build a typed syntax tree and reject invalid programs before execution. The browser model is deterministic and intentionally synthetic so the behavior can be inspected without pretending it is a production deployment.
ARCHITECTURE
Design the failure modes before they become incidents.
Tokenizer
The current implementation keeps the mechanism explicit so correctness, failure behavior and future integrations can be tested independently.
Recursive-descent parser
The current implementation keeps the mechanism explicit so correctness, failure behavior and future integrations can be tested independently.
Typed AST and semantic-analysis pass
The current implementation keeps the mechanism explicit so correctness, failure behavior and future integrations can be tested independently.
EVIDENCE BOUNDARY
Implemented behavior, stated limits.
The interactive model on this page is implemented and runs in the browser. It demonstrates the software-engineering mechanism using synthetic fixtures. It does not claim production deployment, employer use, external benchmarks, or reliability guarantees beyond what the model actually shows.
Next: Add scopes, functions, control flow, bytecode generation, source maps, and a test corpus of invalid programs.