Toolchain Reference
myc Unified CLI
Unified myc Toolchain & Package Layout
A single command-line binary (myc) drives type checking, native compilation, manifest-driven graph testing,
formatting, language-server diagnostics, Computational Office workspaces, and package publishing.
1. Core Commands
| Command | Responsibility |
|---|---|
myc check [target] | Parse, bind, type-check, verify unit algebra, and report deterministic MYC#### diagnostics. |
myc test [manifest.toml] | Execute native test nodes, scenario sweeps, and pinned compile-fail diagnostic checks. |
myc build [target] | Compile modules and packages into typed binary interface/IR libraries (.mycl) and executables. |
myc run <file.myc> [--node N] | Evaluate target graph nodes under explicit policy settings and emit structured results. |
myc fmt · myc lsp | Canonical source formatting and Language Server Protocol (LSP) editor integration. |
myc office | Launch the local-first Myceta Computational Office workspace server and myceta:// handler. |
myc publish | Sign and package verified modules into distributable .mycp archives. |
2. Standard Package Layout
my-structural-pack/
myceta.toml # package metadata, dependencies & policy profile
src/ # pure library & graph modules (*.myc)
validation/ # native graph test fixtures (*.myc)
tests/ # TOML test manifests (parse-pass, compile-fail, test, scenario)
3. Invariant myc File-Extension Family
Every Myceta file shares the 3-letter myc prefix so shell globs separate human source from binary artifacts deterministically:
*.myc matches exclusively UTF-8 source files, while *.myc? matches exclusively 8-byte magic-headed binary artifacts
(MYCETA-SPEC-MIME-01):
.myc— UTF-8 Myceta source module (text/vnd.myceta)..mycp— Signed package distribution archive (application/vnd.myceta.pack)..mycl— Compiled module interface and typed IR library (application/vnd.myceta.library)..myca— Verification and admission certificate artifact (application/vnd.myceta.admission)..mycb— Portable virtual-machine bytecode image (application/vnd.myceta.bytecode)..myce— Signed cross-domain value and claim envelope (application/vnd.myceta.envelope).