airlang 0.26.0

Air is a minimalist and universal programming language.
Documentation
use std::error::Error;
use std::fmt::Debug;
use std::fmt::Display;
use std::fmt::Formatter;

// todo api better error info
pub struct ParseError {
    pub(crate) msg: String,
}

impl Debug for ParseError {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        Display::fmt(self, f)
    }
}

impl Display for ParseError {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        f.write_str("ParseError\n")?;
        Display::fmt(&self.msg, f)
    }
}

impl Error for ParseError {}