nyavascript 0.1.0

Lisp implementation. Called NyavaScript because I'm a monster
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt;

#[derive(Debug, PartialEq)]
pub enum SemanticError {
    DotSyntaxNotAtListEnd
}

impl fmt::Display for SemanticError {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "SemanticError: ")?;

        match self {
            Self::DotSyntaxNotAtListEnd => write!(f, "DotSyntaxNotAtListEnd: Dot syntax token must be last or second to last item in list."),
        }
    }
}