stet-engine
Execution engine for the stet PostScript interpreter.
This is a low-level crate. Most users should use the stet
facade crate instead.
Contents
eval— The core eval loop that drives the interpreterparse_and_exec(ctx, source)— Parse and execute PostScript from a byte sliceparse_and_exec_file(ctx, source, path)— Same, with canonical file path for relative resolutionexec_sync(ctx, proc_obj)— Synchronous PS procedure execution (used by operators likeif,for, etc.)
The eval loop processes the execution stack one object at a time:
executable names are looked up in the dictionary stack, operators are
dispatched, and procedures ({...}) are stepped through element by element.
Usage
use ;
// After Context is initialized with operators and init scripts:
parse_and_exec.unwrap;
License
Apache-2.0 OR MIT