Glue things together with rust.

Glue is a parser combinator framework for parsing text based formats.

Glue aims to be easy to use, relatively fast, has human readable error messages, and comes with all the tools you'll need to parse things out of the box.

Quick start

All of the important bits that you'll need to define a parser can be found in the prelude module:

use glue::prelude::*;

Then you can get parsing:

match take(1.., is(alphabetic)).parse("foobar") {
    Ok((result, _)) => {
        println!("Found: {}", result);
    },
    Err(_) => {
        println!("Nothing found!");
    }
}

Documentation

  1. Cheat Sheet

  2. Parsing INI files

    1. Defining

    2. Parsing

    3. Processing