nomap 0.2.1

A parser for the `.map` file format used by Quake 1 & 2 as well as Half-Life 1, implemented using the nom parsing framework.
use {
    nom::error::ErrorKind,
    nomap::parse::core::Parse
};

// a perfectly helpful error type
#[derive(Debug, Clone, PartialEq)]
struct CustomError {
    reason: &'static str
}

impl <I> nom::error::ParseError<I> for CustomError {
    fn from_error_kind(_input: I, _kind: ErrorKind) -> Self {
        CustomError {
            reason: "something went wrong"
        }
    }

    fn append(_input: I, _kind: ErrorKind, other: Self) -> Self {
        other
    }
}

fn main() {
    let result: nomap::parse::core::ParseResult<_, CustomError>
        = nomap::Map::<nomap::formats::Standard>::parse("not a map");
    println!("{:?}", result);
}