pzlc

command
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Command pzlc is a minimal single-file .pzl compiler used by the integration tests described in constellation/doc/DOC-TESTING.md. It is the same split → parse → codegen pipeline the esbuild plugin runs, exposed as a one-shot CLI so an npm script can emit compiled modules for the vitest suite:

pzlc --mode view|layout|component <in.pzl> <out.js>

"view" and "layout" both emit a <puzzle-view> root (codegen.ModeView, D20); "component" emits an inline single-root render (codegen.ModeComponent). Parse and codegen errors print as positioned "file:line:col: message" and exit 1.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL