How shelllite/shlcpp works
ShellLite is a pseudocode-oriented programming language. Its main workflow runs from CLI input through lexing and parsing into AST-based compilation, then bytecode execution in the VM; the CLI also exposes formatting and bytecode workflows. The tree shows concurrency, native modules, UI, web/database, and platform capabilities. Some subsystem links are omitted because their runtime wiring is not shown in the excerpts or SOURCE INDEX.
Main entry points: vm.cpp Virtual machine · main.cpp CLI and REPL · native_registry.hpp Native registry · module_core.cpp Core built-ins
Components 21
Language Front End
Compilation Runtime
- Bytecode compiler
shell_lite/compiler.cpp - Bytecode chunk
shell_lite/chunk.hpp - Virtual machine
shell_lite/vm.cpp - Values and objects
shell_lite/value.hpp - Garbage collector
shell_lite/gc.hpp - Error reporting
shell_lite/error/error_reporter.cpp
Built-in Features
- Native registry
shell_lite/native_registry.hpp - Core built-ins
shell_lite/modules/module_core.cpp - Standard modules
shell_lite/modules - Web and database
shell_lite/modules - UI subsystem
shell_lite/ui/ui_subsystem.cpp - Platform layer
shell_lite/pal/platform.hpp - Concurrency pool
shell_lite/concurrency/thread_pool.cpp - Event loop
shell_lite/event_loop.cpp
CLI Tooling
- CLI and REPL
shell_lite/main.cpp - Source formatter
shell_lite/formatter.cpp
Other components
- Language user
- Program output
Connections 24
- Language user → CLI and REPL: submits code
README.md - CLI and REPL → Lexer: lexes input
shell_lite/main.cpp - CLI and REPL → Parser: parses input
shell_lite/main.cpp - Parser → Lexer: uses tokens
- Parser → AST nodes: builds nodes
- CLI and REPL → Bytecode compiler: compiles program
shell_lite/main.cpp - Bytecode compiler → AST nodes: compiles nodes
- Bytecode compiler → Bytecode chunk: emits bytecode
- CLI and REPL → Virtual machine: executes function
shell_lite/main.cpp - Virtual machine → Bytecode chunk: reads bytecode
- Virtual machine → Values and objects: operates on values
- Virtual machine → Garbage collector: uses allocation
shell_lite/vm.cpp - Virtual machine → Error reporting: reports errors
shell_lite/vm.cpp - Virtual machine → Native registry: uses registry
shell_lite/vm.cpp - Core built-ins → Native registry: registers built-ins
shell_lite/modules/module_core.cpp - Standard modules → Native registry: registers functions
shell_lite/modules/module_io.cpp - Web and database → Native registry: registers functions
shell_lite/modules/module_web.cpp - Core built-ins → Event loop: polls events
shell_lite/modules/module_core.cpp - Web and database → Event loop: uses event loop
shell_lite/modules/module_web.cpp - Virtual machine → Concurrency pool: uses thread pool
shell_lite/vm.cpp - Core built-ins → Platform layer: uses platform API
shell_lite/modules/module_core.cpp - CLI and REPL → Source formatter: formats source
shell_lite/main.cpp - Source formatter → AST nodes: formats syntax tree
- Virtual machine → Program output: produces results