Explanation
Project context and scope
Understand the design decisions, alternatives, and limits.
- 01Source
- 02PEG parse
- 03Normalize
- 04Frames & heap
- 05Result
A compact language implementation that owns the grammar, typed intermediate representation, heap-backed interpreter, examples, diagnostics, and browser playground.
JaggerScript is a small typed scripting language implemented in TypeScript. The system includes a PEG grammar, a compiler pass that converts parser output into a typed intermediate program representation, an interpreter with stack frames and heap-backed object instances, and a browser playground powered by Monaco. The language supports classes, constructors, functions, primitive values, arithmetic and boolean expressions, conditional blocks, loops, break, return, instantiation, scoped member access, and console output examples. This paper explains the implementation as a language-tooling system: a deliberate separation between parsing, normalization, runtime evaluation, and the interface used to explore the language.