JaggerScript / docsProject documentation

Explanation

Results and Design Properties

Understand the design decisions, alternatives, and limits.

JaggerScript demonstrates a complete small-language toolchain in TypeScript: a formal grammar, compiler normalization pass, explicit runtime state, class and instance semantics, scope traversal, function frames, source diagnostics, syntax highlighting, and a browser execution surface.

The technical value is the separation of responsibilities. The parser recognizes syntax, the compiler gives syntax a runtime shape, the interpreter owns state transitions, and the editor projects parser/runtime results back to the user. That structure is sufficient to reconstruct the current language without treating the playground as a special case.

  • The language supports class-based object programs with constructors, fields, functions, loops, branches, return, break, allocation, reassignment, and scoped member access.
  • Heap-backed instances preserve object identity across local frames and nested references.
  • The compiler pass prevents parser-node shape from leaking directly into the interpreter.
  • The Monaco integration makes parse and type-name feedback available at edit time.