speckl/compiler/dist
Scott Scoble d16df7581a fix: resolve all TypeScript codegen bugs for zero tsc --noEmit errors
Parser fixes:
- Fixed multiline state/init block parsing: trailing commas no longer
  treated as continuation markers, merging all state vars into one
- Added splitFields() function for comma-aware emit field splitting
  that respects parenthesized groups and quoted strings
- Fixed interface block parsing: enum-style interfaces (name-only
  values like 'Idle, Parsing, Parsed, ...') now correctly parsed as
  methods instead of being skipped (methods.length was 0)

TypeScript generator fixes:
- String[] array type syntax now correctly maps to string[] in output
- collectIdents filters out names containing brackets
- Duplicate event interfaces deduplicated (implicit emit events
  filtered when explicit events already declare them)
- join(X, Y) translates to X + Y (string concatenation) instead of
  X.join(Y) which is wrong for string args
- now() generates new Date().toISOString() instead of Date.now()
  to match String/string type annotations
- decisionLog type uses proper union: (A | B | C)[] instead of A[]
- String literals protected from this.-prefixing during identifier
  replacement (fixes 'leader' inside quotes becoming 'this.leader')
- Removed debug console.log from enum generation

Both TigerBeetleLedger.speck and speckl-compile.speckdl now generate
TypeScript that passes tsc --noEmit with zero errors.

Closes #9
2026-05-13 14:34:51 -07:00
..
__tests__ Wire up compiler generators + fix parser for SpeckDL edge cases 2026-05-02 15:14:31 -07:00
generators Add SpeckDL compiler scaffold 2026-04-29 15:12:08 -07:00
index.d.ts Add SpeckDL compiler scaffold 2026-04-29 15:12:08 -07:00
index.d.ts.map Add SpeckDL compiler scaffold 2026-04-29 15:12:08 -07:00
index.js feat(rust): Rust codegen backend (speckl#24) 2026-05-09 23:24:40 -07:00
index.js.map feat(rust): Rust codegen backend (speckl#24) 2026-05-09 23:24:40 -07:00
parser.d.ts Add ifblock parsing, fix blank-line separation, add ternary expr rewrite 2026-05-11 20:25:05 -07:00
parser.d.ts.map Add ifblock parsing, fix blank-line separation, add ternary expr rewrite 2026-05-11 20:25:05 -07:00
parser.js fix: resolve all TypeScript codegen bugs for zero tsc --noEmit errors 2026-05-13 14:34:51 -07:00
parser.js.map fix: resolve all TypeScript codegen bugs for zero tsc --noEmit errors 2026-05-13 14:34:51 -07:00