How pihu21057w/bkl works
Bklang is a C11 interpreter for .bkl programs. The principal workflow is to invoke rundi with a script, have the interpreter parse and execute it, and produce program output or effects through built-ins. The runtime also exposes value and collection handling, a standard library, web-server and template features, and advanced language utilities. The graph reflects the sampled source and README; some built-in dispatch connections and unsampled capabilities are documented but their exact call paths are not shown.
Main entry points: main.c Lexer and interpreter · advanced.c Advanced dispatch · features.c HTTP server · functions.c Standard library
Components 17
Interpreter runtime
- rundi CLI
main.c - Lexer and interpreter
main.c
Values and library
- Values and collections
functions.c - Standard library
functions.c - JSON parsing
functions.c
Web features
- Feature dispatch
features.c - HTTP server
features.c - Template rendering
features.c - Static file serving
features.c
Advanced built-ins
- Advanced dispatch
advanced.c - Regex engine
advanced.c - Generators
advanced.c - Events and channels
advanced.c - Memoization
advanced.c
Other components
- Script author
- HTTP client
- Program output
Connections 17
- Script author → rundi CLI: runs script
README.md - rundi CLI → Lexer and interpreter: loads and executes
main.c - Lexer and interpreter → Program output: produces output
- Lexer and interpreter → Values and collections: uses values
- Lexer and interpreter → Standard library: calls built-ins
- Standard library → JSON parsing: parses and encodes
functions.c - HTTP client → HTTP server: sends requests
- HTTP server → Template rendering: renders views
features.c - HTTP server → Static file serving: serves files
README.md - Lexer and interpreter → Feature dispatch: dispatches features
- Feature dispatch → HTTP server: starts server
features.c - Feature dispatch → Template rendering: renders templates
features.c - Lexer and interpreter → Advanced dispatch: dispatches advanced calls
- Advanced dispatch → Regex engine: provides regex
advanced.c - Advanced dispatch → Generators: provides generators
advanced.c - Advanced dispatch → Events and channels: provides events
advanced.c - Advanced dispatch → Memoization: provides caching
advanced.c