2 releases
0.1.6 | Feb 18, 2024 |
---|---|
0.1.5 | Feb 18, 2024 |
#1616 in Parser implementations
21 downloads per month
Used in twee-tools
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
~3–5MB
~90K SLoC