stet-core 0.4.1

Core type system, storage, tokenizer, and context for stet PostScript interpreter
Documentation

stet-core

crates.io docs.rs

Core type system, storage, tokenizer, and interpreter context for the stet PostScript interpreter.

This is a low-level crate. Most users should use the stet facade crate instead.

Contents

  • contextContext, the central interpreter state (stacks, stores, graphics state)
  • objectPsObject and PsValue, the PostScript value representation
  • tokenizer — PostScript source tokenizer
  • deviceOutputDevice trait and NullDevice
  • errorPsError error type
  • graphics_stateGraphicsState, current transformation matrix, color, line style
  • StoresStringStore, ArrayStore, DictStore with arena allocation and entity indirection
  • entity_table — Copy-on-write entity indirection for save/restore
  • file_store — File handle management with virtual filesystem support
  • name — Name interning table (NameId)
  • eps — EPS header parsing and bounding box extraction
  • font_loader / glyph_cache — Font loading and glyph caching infrastructure

Also re-exports all modules from stet-fonts and stet-graphics for backward compatibility.

Usage

use stet_core::context::Context;
use stet_core::object::{PsObject, PsValue};
use stet_core::error::PsError;
use stet_core::device::OutputDevice;

License

Apache-2.0 OR MIT