use backend::models as m;
use super::parser;

error_chain! {
    foreign_links {
        Io(::std::io::Error);
        ParseInt(::std::num::ParseIntError);
        ParseFloat(::std::num::ParseFloatError);
        FromUtf8Error(::std::string::FromUtf8Error);
    }

    errors {
        InvalidEscape {
        }

        Syntax(pos: m::Pos, expected: Vec<parser::Rule>) {
            description("syntax error")
        }
    }
}
