tclrs 0.1.0

Tcl as a fusevm frontend: a parser and compiler to fusevm::Chunk, with no bespoke VM or JIT
Documentation
//! tclrs — Tcl as a fusevm frontend.
//!
//! Pipeline: `parser` turns a script into [`parser::Script`] → the compiler
//! (phase 2) lowers each command to a `fusevm::Chunk` → fusevm executes it and
//! calls back into the host for Tcl-specific operations. Execution and codegen
//! live in fusevm; there is no bespoke VM or JIT here.
//!
//! Tcl's value model needs no object heap on top of fusevm's: strings, integers
//! and floats map onto `Value` directly, and a value keeps its numeric
//! representation until something demands its string form. That deferral is the
//! point — the reference interpreter re-derives string representations inside
//! hot loops.

pub mod compiler;
pub mod expr;
pub mod parser;
pub mod runtime;

pub use parser::{parse, Command, ParseError, Part, Script, Word};
pub use runtime::{eval, Outcome};