Crate twee_parser

source ·
Expand description

§twee_parser

The Story and Passage structs describe a Twine story.
They can be constructed by the user, or parsed using the parse_* functions.
A Story can then be modified and serialized again using the serialize_* functions.

Re-exports§

Structs§

  • Represents an XML element.
  • Representation of a passage in a Story.
  • An in-memory representation of a Twine story.

Enums§

  • Possible parsing errors.
  • Errors that can occur parsing XML
  • Possible warnings during parsing.
    Per specification, the parser is quite generous and generates many things as warnings instead of errors.

Functions§