Skip to main content

Crate tishlang_eval

Crate tishlang_eval 

Source
Expand description

Tish tree-walk interpreter.

Modules§

value_convert
Conversion between tishlang_eval::Value and tishlang_core::Value for opaque method calls.

Structs§

Evaluator

Enums§

Value

Traits§

TishNativeModule
Trait for pluggable native modules (e.g. Polars). Implement to register globals with the interpreter. Return a map of (global_name, Value).

Functions§

format_value_for_console
Run a Tish file with import/export support. Resolves relative imports from the file’s directory. Format an interpreter value for console output (Node/Bun-style colors when colors is true).
run
run_file
Run a Tish file with import/export support. Resolves relative imports from the file’s directory.

Type Aliases§

PropMap
Property map for interpreter object string keys (uses eval::Value, not tishlang_core::Value). IndexMap preserves insertion order so Object.keys / JSON.stringify match JS/Node (and the VM/rust backends, which use tishlang_core’s insertion-ordered PropMap).