Expand description
ZPL spec compiler — reads ZPL command specification YAML/JSONC files and compiles them into parser tables, documentation bundles, and coverage reports. This is an internal build-time tool, not a runtime dependency.
Modules§
- pipeline
- Spec-compiler build pipeline: load → validate → generate.
- source
- Typed source representation for per-command JSONC spec files.
Constants§
- SCHEMA_
VERSION - The current spec schema version that this compiler expects.
Functions§
- build_
opcode_ trie - Build a prefix trie over all command opcodes, returned as a JSON value.
- parse_
jsonc - Parse a JSONC string into a
serde_json::Value, stripping comments first. - strip_
jsonc - Strip
//and/* */comments from JSONC input. - write_
json_ pretty - Serialize a JSON value to a pretty-printed file, creating parent directories as needed.