JaggerScript / docsProject documentation

Explanation

Project context and scope

Understand the design decisions, alternatives, and limits.

  1. 01Source
  2. 02PEG parse
  3. 03Normalize
  4. 04Frames & heap
  5. 05Result
JaggerScript at a glance. Follow the responsibilities across the system; use the reference pages for precise contracts.

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.