speckl/compiler
Engineering (agent-engineering) ade3fe2177 fix: correct enum value rewriting and parser quoted-string handling
Two bugs fixed:

1. TS Generator: Enum values in guard expressions and emit fields
   were prefixed with the wrong enum name (always using the state
   enum). Now builds a value→enumName map from enumMap and passes it
   to rewriteExpr so each value gets its correct enum prefix
   (e.g., ArtifactKind.Provenance instead of CompilerPhase.Provenance).

2. Parser: emit field splitting used simple comma-split which broke
   quoted strings containing commas (e.g., join(outputDir, ".prov.jsonld")).
   Now respects quotes and parentheses when splitting.

Also: join() calls now generate path.join() instead of String.join(),
and generated TS includes 'import path from path'.

Fixes: marcus/engineering#9
2026-05-05 21:50:49 -07:00
..
__tests__ WASM E2E test: Speckl specs compile to runnable WebAssembly 2026-05-03 13:13:55 -07:00
dist fix: correct enum value rewriting and parser quoted-string handling 2026-05-05 21:50:49 -07:00
node_modules fix: add dist-check guard + List<T> type parsing + state machine examples 2026-05-05 03:11:53 -07:00
out/speckl-compile feat(compiler): self-hosting spec + generator multi-enum support 2026-05-03 14:42:03 -07:00
specs feat(compiler): self-hosting spec + generator multi-enum support 2026-05-03 14:42:03 -07:00
src fix: correct enum value rewriting and parser quoted-string handling 2026-05-05 21:50:49 -07:00
test-output fix: add dist-check guard + List<T> type parsing + state machine examples 2026-05-05 03:11:53 -07:00
.gitignore Add .gitignore for compiler dependencies and build artifacts 2026-04-29 15:12:37 -07:00
.last-build fix: add dist-check guard + List<T> type parsing + state machine examples 2026-05-05 03:11:53 -07:00
check-dist.sh fix: add dist-check guard + List<T> type parsing + state machine examples 2026-05-05 03:11:53 -07:00
package-lock.json WASM E2E test: Speckl specs compile to runnable WebAssembly 2026-05-03 13:13:55 -07:00
package.json WASM E2E test: Speckl specs compile to runnable WebAssembly 2026-05-03 13:13:55 -07:00
tsconfig.json Add SpeckDL compiler scaffold 2026-04-29 15:12:08 -07:00