How tiline471-code/xzero-v1 works
XZERO is a Kryon language toolchain: users provide .kry source to FORGE, which tokenizes it, parses an AST, and generates .kyb bytecode; KVM can then execute bytecode files. The bytecode definitions cover functions, control flow, collections, and native calls, while the sampled runtime shows variable and collection operations and a sys_exec native. The repository also contains Kryon examples. Some runtime details and the exact handoff from generated output to KVM were not sampled, so that link is marked unverified.
Main entry points: main.c FORGE CLI · kvm.c Bytecode interpreter · anvil.c ANVIL codegen · bytecode.h Bytecode contract
Components 13
FORGE compiler
- FORGE CLI
FORGE/src/main.c - RASTER lexer
FORGE/src/raster.c - FRAME parser
FORGE/src/frame.c - ANVIL codegen
FORGE/src/anvil.c
Bytecode format
- Bytecode contract
COMMON/bytecode.h - Bytecode I/O
COMMON/bytecode.c - KYB file
KVM runtime
- KVM CLI
KVM/main.c - Bytecode interpreter
KVM/kvm.c - Value stack
KVM/stack.c
Kryon language
- Kryon examples
KRYON/examples
Other components
- Developer
- System command
Connections 12
- Developer → FORGE CLI: invokes
FORGE/src/main.c - FORGE CLI → RASTER lexer: tokenizes
FORGE/src/main.c - FORGE CLI → FRAME parser: parses tokens
FORGE/src/main.c - FORGE CLI → ANVIL codegen: generates code
FORGE/src/main.c - ANVIL codegen → Bytecode contract: uses definitions
- KVM CLI → Bytecode interpreter: runs file
KVM/main.c - Bytecode interpreter → Bytecode contract: interprets opcodes
KVM/kvm.c - Bytecode interpreter → Value stack: uses stack
KVM/kvm.c - Bytecode interpreter → System command: executes command
KVM/kvm.c - ANVIL codegen → KYB file: writes output
- KYB file → KVM CLI: input file
- Bytecode I/O → Bytecode contract: serializes structures
COMMON/bytecode.c