glue 0.8.7

Glue is a parser combinator framework for parsing text based formats, it is easy to use and relatively fast too.
Documentation
1
2
3
4
5
6
7
8
9
10
11
fn property<S, U: Parsable>() -> impl Parser<S, U, Ini> {
    move |state: S, input: U| {
        separated(
            name(),                                    // ━ 1
            separator(),                               // ━ 2
            find(1.., find_any((value(), comment()))), // ━ 3
        )
        .parse(state, input)
        .map_result(|(name, values)| Ini::Property(name.into(), values))
    }
}