Skip to main content

Module reader

Module reader 

Source
Expand description

Typed, pull-based WXF reader — sugar over a raw Reader.

Each WXF enum in crate::constants gets a reader that consumes its byte and does the TryFrom (failing if the byte isn’t that enum). There is no peek: a token is read exactly once via WxfReader::read_expr_token and the caller dispatches on it, then reads the matching payload.

Methods deal only in primitives and raw parts — higher-level value types (Symbol, NumericArray, …) are assembled by the consumer (wolfram-expr).

Structs§

WxfReader
Typed WXF reader wrapping a raw byte Reader.