How hatsunemikutoro-hash/axyslang works
Axys is a small instruction- and memory-based language interpreter. A user supplies an .axs file; the command-line program creates an interpreter, which loads and parses the source into a program before the VM executes its instructions against a 256-cell memory. The graph preserves the documented language workflow and the separate lexer, parser, program, and VM layers. The interpreter implementation is indexed as read but not excerpted, so its internal orchestration links are shown as unverified.
Main entry points: parser.c Parser · interpreter.c Interpreter · vm.c VM executor · main.c CLI entry
Components 11
Source frontend
- Source loader
src/openfile.c - Lexer
src/tokenizer.c - Parser
src/parser.c - Instruction AST
include/ast.h - Parsed program
src/program.c
Execution runtime
- Interpreter
src/interpreter.c - VM executor
src/vm.c - Machine state
include/vm.h
CLI and diagnostics
- CLI entry
src/main.c - Debug tools
src/debug.c
Other components
- Language user
Connections 11
- Language user → CLI entry: runs file
README.md - CLI entry → Interpreter: creates and runs
src/main.c - CLI entry → Debug tools: parses options
src/main.c - Interpreter → Source loader: loads source
- Interpreter → Parser: starts parsing
- Interpreter → VM executor: runs program
- Parser → Lexer: gets tokens
src/parser.c - Parser → Instruction AST: builds nodes
src/parser.c - Parser → Parsed program: adds instructions
src/parser.c - VM executor → Machine state: updates state
src/vm.c - VM executor → Debug tools: prints diagnostics
src/vm.c