2 releases

0.1.6 Feb 18, 2024
0.1.5 Feb 18, 2024

#1374 in Parser implementations

Download history 4/week @ 2024-02-09 224/week @ 2024-02-16 39/week @ 2024-02-23 7/week @ 2024-03-01 2/week @ 2024-03-08 2/week @ 2024-03-15 26/week @ 2024-03-29 227/week @ 2024-04-12

227 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
~88K SLoC