Skip to main content

Crate stet_core

Crate stet_core 

Source
Expand description

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

This crate provides the PostScript VM building blocks: PsObject / PsValue, the interpreter Context (operand / execution / dictionary stacks, graphics state, VM stores), the arena- backed StringStore / ArrayStore / DictStore with copy-on-write save/restore semantics, the NameTable name-interning system, the PS tokenizer, the OutputDevice trait, file handles, and the error hierarchy.

Most users should use the stet facade crate rather than depending on stet-core directly. Pull this crate in only when you need to build alternative PS-interpreter tooling or implement a custom OutputDevice.

See the Architecture Guide for how this crate fits into the broader workspace.

Modules§

agl
Adobe Glyph List (AGL) — glyph name → Unicode mapping.
array_store
Storage for PostScript array contents.
binary_token
Binary token and binary object sequence parser (PLRM §3.14).
cff_parser
CFF (Compact Font Format) binary parser.
charstring
Type 1 charstring interpreter.
color
Color types and CIE color space parameters.
context
Execution context: stacks, storage, operator table, and state.
device
Output device trait — abstraction boundary for rendering backends.
dict
PostScript dictionary storage.
display_list
Display list — records drawing operations for deferred replay to a device.
dual_array_store
Dual-arena array storage: routes to global or local ArrayStore based on the tag bit in EntityId.
dual_dict_store
Dual-arena dictionary storage: routes to global or local DictStore based on the tag bit in EntityId.
dual_string_store
Dual-arena string storage: routes to global or local StringStore based on the tag bit in EntityId.
encoding
PostScript standard encoding tables.
entity_table
Entity table: indirection layer for arena stores.
eps
EPS file support: DOS binary header stripping and BoundingBox parsing.
error
PostScript error types.
file_store
File handle storage for PostScript file I/O.
font_loader
Font loading pipeline.
geometry
Geometry types: affine transform matrices, path segments, and paths.
glyph_cache
Glyph path cache: caches charstring interpretation results per font.
graphics_state
Graphics state: transforms, paths, colors, and rendering parameters.
icc
ICC color profile support via moxcms.
mesh_shading
Binary mesh and patch parsers for shading Types 4-7.
name
Name interning table.
object
PostScript object representation.
save_stack
Save/restore stack for PostScript VM persistence.
stack
PostScript operand and execution stacks.
string_store
Contiguous byte buffer for PostScript string storage.
system_font_loader
System font loading: TTF/OTF → PostScript font dictionaries.
system_fonts
System font discovery and caching.
tokenizer
PostScript tokenizer.
truetype
TrueType (Type 42) glyph parser and path converter.
type1_parser
Type 1 font file (.t1) parser.
type2_charstring
Type 2 charstring interpreter for CFF fonts.
vm_audit
Audit global VM for PLRM 3.7.2 violations.