Expand description
Types for parsing clausewitz plaintext input
Main text deserialization APIs:
- TextDeserializer::from_utf8_slice: Deserialize game and save files from a slice of data.
- TextDeserializer::from_utf8_reader: (experimental) much more memory efficient deserializer that is geared towards deserializing large models like those found in save files.
If the serde deserialization API is too high level, one can build abstractions ontop of:
- TextTape::from_slice: Realizes a pseudo AST onto a linear tape. Cleans up and normalizes data.
- TokenReader: (experimental) an incremental text lexer designed for handling large saves in a memory efficient manner.
Some additional APIs are available to make working with a TextTape more ergonomic for DOM-like use cases.
Modules§
- text deserialization
Structs§
- A text reader for sequences of values
- Iterator over fields of an object grouped by key
- Iterator over fields of an object in the order that they appear
- Iterator over values grouped by duplicate keys
- A reader for objects
- Represents the field value that contains an operator
- An text lexing error over a
Read
implementation - A text reader that wraps an underlying scalar value
- Houses the tape of tokens that is extracted from plaintext data
- Creates a parser that a writes to a text tape
- Write data in PDS format.
- Construct a customized text writer
- Creates a text token reader
- A text reader for a text value
- An iterator over the values of an array
Enums§
- Represents a group of values for duplicate keys
- An operator token
- All possible text reader variants
- The specific text reader error type.
- Represents a valid text value
- Text token, the raw form of TextToken