Skip to main content

Crate hayro_postscript

Crate hayro_postscript 

Source
Expand description

A lightweight PostScript scanner.

This crate provides a scanner for tokenizing PostScript programs into typed objects. It currently only implements a very small subset of the PostScript language, with the main goal of being enough to parse CMAP files, but the scope might be expanded upon in the future.

The supported types include integers and real numbers, name objects, strings and arrays. Unsupported is anything else, including dictionaries, procedures, etc. An error will be returned in case any of these is encountered.

§Safety

This crate forbids unsafe code via a crate-level attribute.

Structs§

Array
A PostScript array object.
Name
A PostScript name object.
Scanner
A PostScript scanner that parses Objects from a byte stream.
String
A PostScript string object.

Enums§

Error
An error encountered while scanning a PostScript token stream.
Number
A PostScript number object (integer or real).
Object
A PostScript object.

Type Aliases§

Result
A specialized Result type for PostScript scanner operations.