Expand description
§Molt Client Library
This module defines the API for Molt clients.
The interp module defines the Molt interpreter itself, and provides the primary
API. Values in the Molt language are stored internally using the Value struct. Other
relevant data types, including MoltResult and ResultCode, are defined in
the types module.
The test_harness module defines the test runner for Molt’s TCL-level testing. It
can be used directly in Cargo integration tests or via a Molt shell, whether standard or
custom.
See The Molt Book for an introduction to Molt.
Re-exports§
pub use crate::interp::Interp;pub use crate::test_harness::test_harness;pub use crate::types::*;
Modules§
- dict
- Dictionary Utilities
- interp
- The Molt Interpreter
- test_
harness - Molt Test Harness
- types
- Public Type Declarations
- value
- The Value Type
Macros§
- molt_
err - Returns an
ErrorMoltResult. The error message is formatted as withformat!(). - molt_ok
- Returns an
OkMoltResult. - molt_
throw - Returns an
ErrorMoltResultwith a specific error code. The error message is formatted as withformat!().
Functions§
- check_
args - This function is used in command functions to check whether the command’s argument
list is of a proper size for the given command. If it is,
check_argsreturns the empty result; if not, it returns a Molt error messagewrong # args: should be "syntax...", where syntax is the command’s syntax. It is typically called at the beginning of a command function.