How imabd645/ez-language works
EZ is a dynamically typed, bytecode-compiled language with an optional static checker. A user runs a script or enters the REPL; the interpreter processes source into executable bytecode and runs it in a stack VM, with built-ins providing runtime capabilities. The graph also preserves documented async, GUI, FFI, package-management, and garbage-collection subsystems. Several connections are documented or referenced by the source index but their call sites were not excerpted, so those edges are dashed rather than asserted as verified calls.
Main entry points: CLI.cpp CLI and REPL · BytecodeVMExecute.cpp Stack VM · Builtins.cpp Core and data built-ins · Concurrency.cpp Async and concurrency
Components 21
Language Front End
- Lexer
src/lexer/Lexer.cpp - Parser
src/parser/ParserExpr.cpp - AST arena
src/ast/ASTArena.h - Optional type checker
src/typechecker/TypeCheckerExpr.cpp - Bytecode compiler
src/compiler/BytecodeCompilerExpr.cpp
Runtime Execution
- Bytecode format
src/bytecode/Bytecode.cpp - Bytecode serializer
src/bytecode/serializer/BytecodeSerializer.cpp - Stack VM
src/vm/BytecodeVMExecute.cpp - Values and objects
src/runtime/Value.h - Cycle collector
src/gc/CycleCollector.cpp - Event loop
src/eventloop/EventLoop.cpp
Runtime Capabilities
- Core and data built-ins
src/builtins/Builtins.cpp - File and console I/O
src/builtins/io/File.cpp - Networking
src/builtins/net/Net.cpp - Async and concurrency
src/builtins/core/Concurrency.cpp - Native FFI
src/builtins/FFI/FFI.cpp - GUI framework
src/gui/GUI_Core.cpp
Interpreter Interface
- CLI and REPL
src/cli/CLI.cpp - Package management
src/cli/PackageManager.h
Other components
- Script author
- Package registry
Connections 23
- Script author → CLI and REPL: runs script
- CLI and REPL → Lexer: starts processing
src/cli/CLI.cpp - Lexer → Parser: provides tokens
- Parser → AST arena: allocates syntax tree
- CLI and REPL → Optional type checker: optionally checks
src/cli/CLI.cpp - CLI and REPL → Bytecode compiler: compiles source
src/cli/CLI.cpp - Bytecode compiler → Bytecode format: emits instructions
- CLI and REPL → Stack VM: executes program
src/cli/CLI.cpp - Stack VM → Bytecode format: executes instructions
- CLI and REPL → Bytecode serializer: uses serialization
src/cli/CLI.cpp - Stack VM → Values and objects: operates on values
src/vm/BytecodeVMExecute.cpp - Stack VM → Cycle collector: uses collection
- Stack VM → Event loop: integrates event loop
- Stack VM → Core and data built-ins: registers built-ins
- Core and data built-ins → File and console I/O: includes I/O
- Core and data built-ins → Networking: includes networking
- Core and data built-ins → Async and concurrency: includes concurrency
src/builtins/core/Concurrency.cpp - Core and data built-ins → Native FFI: includes native FFI
- Core and data built-ins → GUI framework: exposes GUI
- Async and concurrency → Event loop: uses event loop
src/builtins/core/Concurrency.cpp - Async and concurrency → Cycle collector: coordinates collection
src/builtins/core/Concurrency.cpp - Package management → Package registry: requests packages
src/cli/PackageManager.h - CLI and REPL → Package management: offers package commands
src/cli/CLI.cpp