5 releases

0.2.1 Jan 28, 2023
0.2.0 Jan 28, 2023
0.1.2 Jan 24, 2023
0.1.1 Jan 20, 2023
0.1.0 Jan 19, 2023

#1500 in Parser implementations

Download history 8/week @ 2024-02-26 69/week @ 2024-04-01

69 downloads per month

MIT license

34KB
941 lines

twee-v3

twee-v3 is a parser for the twee 3 interactive fiction format

More information about the twee 3 specification can be found here: twee-3-specification.md

This crate exists because I want to parse really minimalist stories written using Twine.

It currently doesn't (and maybe never will) suport scripts.


lib.rs:

Parse the twee 3 interactive fiction format to simple structures.

.twee files can be generated with Twine. See twee-3-specification.md.

let twee = "your twine content";

if let Ok(story) = twee_v3::Story::try_from(twee) {
    println!("{:?}", story.title());
}

Dependencies

~1.1–1.7MB
~34K SLoC