Getting Started with VB6Interpret
Build the workspace and start executing VB6 code with the REPL, script runner, or project mode. The interpreter builds on vb6parse, vb6semantic, vb6runtime, and vb6core to provide source execution with VB6-compatible semantics.
Build and Run
Build
cargo build -p vb6interpret
Start REPL
cargo run -p vb6interpret
Run a script
cargo run -p vb6interpret -- run script.bas
Run a project
cargo run -p vb6interpret -- run MyProject.vbp
REPL sample
Dim x As Integer
x = 42
Print x
Print Left$("Hello World", 5)
Execution Modes
| Mode | Command | Purpose |
|---|---|---|
repl |
vb6interpret |
Interactive experimentation and quick checks |
run |
vb6interpret run target.bas |
Execute source files or projects normally |
debug |
vb6interpret debug target.vbp |
Step-through execution with inspection tools |
check |
vb6interpret check target.bas |
Validate syntax and analysis readiness without running |
Debugging
Use vb6interpret debug to step through code, inspect variables, and set breakpoints.
The debugger uses the shared infrastructure from vb6core and vb6semantic for expression evaluation
and variable inspection.
Limitations
- Forms and controls execution is planned but not complete.
- COM object support is not complete.
- Behavioral parity for all VB6 edge cases is still in progress.
⚠️ Project status: VB6Interpret is under active development. Expect capability growth
and occasional behavior changes while runtime semantics are refined.