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:
11
crates/tb-runtime/Cargo.toml
Normal file
11
crates/tb-runtime/Cargo.toml
Normal file
@@ -0,0 +1,11 @@
|
||||
[package]
|
||||
name = "tb-runtime"
|
||||
description = "Terminal Basic: Laufzeitbibliothek (Strings, Mathematik, Datei-E/A, Datum/Zeit)"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
authors.workspace = true
|
||||
|
||||
[dependencies]
|
||||
thiserror.workspace = true
|
||||
log.workspace = true
|
||||
3
crates/tb-runtime/src/datetime.rs
Normal file
3
crates/tb-runtime/src/datetime.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
//! Datums- und Zeitfunktionen der Laufzeitbibliothek.
|
||||
|
||||
// Platzhalter — wird in Phase 3 ausgearbeitet (siehe PLAN.md)
|
||||
4
crates/tb-runtime/src/errors.rs
Normal file
4
crates/tb-runtime/src/errors.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
//! Laufzeitfehler: Codes und Meldungstexte kompatibel zum Vorbild
|
||||
//! (z. B. 6 = Overflow, 9 = Subscript out of range, 53 = File not found).
|
||||
|
||||
// Platzhalter — wird in Phase 3 ausgearbeitet (siehe PLAN.md)
|
||||
3
crates/tb-runtime/src/fileio.rs
Normal file
3
crates/tb-runtime/src/fileio.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
//! Datei-E/A der Laufzeitbibliothek (sequenziell, Random Access, binär).
|
||||
|
||||
// Platzhalter — wird in Phase 3 ausgearbeitet (siehe PLAN.md)
|
||||
11
crates/tb-runtime/src/lib.rs
Normal file
11
crates/tb-runtime/src/lib.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
//! Laufzeitbibliothek von Terminal Basic.
|
||||
//!
|
||||
//! Implementiert die eingebauten Funktionen und Anweisungen des Dialekts,
|
||||
//! gruppiert nach Themen. Ziel ist verhaltensgleiche Nachbildung inklusive
|
||||
//! Rundungs-, Formatierungs- und Fehlerverhalten (siehe PLAN.md, Phase 3).
|
||||
|
||||
pub mod strings; // LEFT$, MID$, INSTR, STR$, VAL, Formatierung mit PRINT USING …
|
||||
pub mod math; // Arithmetik, Rundung (Banker's Rounding), RND/RANDOMIZE …
|
||||
pub mod fileio; // OPEN/CLOSE/PRINT#/INPUT#/GET/PUT, sequenziell/random/binär
|
||||
pub mod datetime; // DATE$, TIME$, TIMER
|
||||
pub mod errors; // Laufzeitfehler-Codes und -Meldungen des Vorbilds
|
||||
3
crates/tb-runtime/src/math.rs
Normal file
3
crates/tb-runtime/src/math.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
//! Mathematische Funktionen der Laufzeitbibliothek.
|
||||
|
||||
// Platzhalter — wird in Phase 3 ausgearbeitet (siehe PLAN.md)
|
||||
3
crates/tb-runtime/src/strings.rs
Normal file
3
crates/tb-runtime/src/strings.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
//! String-Funktionen der Laufzeitbibliothek.
|
||||
|
||||
// Platzhalter — wird in Phase 3 ausgearbeitet (siehe PLAN.md)
|
||||
Reference in New Issue
Block a user