oters_lang 0.1.3

Language definitions and interpreter for the oters programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Clone, Eq, Debug)]
pub struct Spanned<T> {
    pub span: (usize, usize),
    pub term: Box<T>,
}

pub type SpPExpr = Spanned<super::ast::PExpr>;
pub type SpTypeExpr = Spanned<super::ast::TypeExpr>;
pub type SpPattern = Spanned<super::ast::Pattern>;

impl<T: PartialEq> PartialEq for Spanned<T> {
    fn eq(&self, r: &Self) -> bool {
        self.term == r.term
    }
}