Skip to main content

Crate jimtcl

Crate jimtcl 

Source
Expand description

Rust API for embedding Jim TCL.

To use the Jim interpreter, create an Interp and evaluate Tcl code, add commands, etc.

use jimtcl::Interp;
let interp = Interp::new()?;
interp.eval("puts {Hello, world}")?;

This crate is focused on providing an ergonomic API to the core Jim Tcl interpreter and its included extensions. The guartcl crate provides an extended interpreter with additional commands.

Re-exports§

pub use error::JimError;
pub use error::JimResult;
pub use object::JimObject;
pub use jimtcl_sys as sys;

Modules§

cli
Command-line shells.
command
Implementing Jim commands.
custom
Support for custom Tcl objects.
error
Jim Tcl errors.
object
Tcl object wrapper.

Macros§

check_or_error
tcl_error

Structs§

Interp
Safe wrapper for a Jim Tcl interpreter.