2 releases

0.1.6 Feb 18, 2024
0.1.5 Feb 18, 2024

#1473 in Parser implementations

Download history 7/week @ 2024-02-11 241/week @ 2024-02-18 25/week @ 2024-02-25 1/week @ 2024-03-03 3/week @ 2024-03-10 1/week @ 2024-03-17 95/week @ 2024-03-31

99 downloads per month
Used in twee-tools

MPL-2.0 license

24KB
494 lines

twee-parser

twee-parser is a library for parsing/serializing Twine stories in Twine HTML, archives and Twee 3.

Features

  • HTML parsing/serializing
  • Twee 3 parsing/serializing
  • HTML archive parsing/serializing
  • JSON parsing/serializing

License

This library is licensed under the MPL2.0.


lib.rs:

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.

Dependencies

~2.8–4.5MB
~87K SLoC