Projektrahmen: Cargo-Workspace, README und PLAN

Workspace mit sechs Crates (tb-frontend, tb-vm, tb-runtime, tb-ui,
tb-cli, tb-ide) als Geruest fuer die Re-Implementierung des
DOS-BASIC-Dialekts. Binaries: tbdos (IDE/TUI) und tbdosc
(Standalone-Compiler). PLAN.md dokumentiert Phasen, Explorations-
schritte und die Abwaegung der VM-/Runtime-Optionen (Entscheidung:
eigene Bytecode-VM, TBVM).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-01 16:21:09 +02:00
commit 5821ace0cf
31 changed files with 1161 additions and 0 deletions

13
crates/tb-vm/src/lib.rs Normal file
View File

@@ -0,0 +1,13 @@
//! Virtuelle Maschine für Terminal Basic (TBVM).
//!
//! Eigene Stack-basierte Bytecode-VM (Entscheidung siehe PLAN.md, Abschnitt
//! „VM-/Runtime-Optionen"). Kernanforderungen:
//! - Serialisierbares Bytecode-Format (`.tbc`) als Compiler-Ziel
//! - Unterbrechbar/wiederaufnehmbar für Debugger (Einzelschritt, Breakpoints)
//! und für die ereignisgesteuerte Forms-Hauptschleife
//! - BASIC-Fehlersemantik (`ON ERROR GOTO`, `RESUME`, `ERR`/`ERL`)
//! - `GOSUB`/`RETURN` neben regulären Prozeduraufrufen
pub mod bytecode;
pub mod codegen;
pub mod interp;