Skip to main content

Crate zpl_toolchain_spec_compiler

Crate zpl_toolchain_spec_compiler 

Source
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.