Use indentation tracking and unexpected_any for ident problems

This commit is contained in:
Richard Feldman 2019-05-21 22:18:27 -04:00
parent b3f3f08c96
commit 530a50be14
4 changed files with 122 additions and 94 deletions

View file

@ -1,5 +1,5 @@
#[derive(Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq)]
pub enum Expr {
// Literals
Int(i64),
@ -16,7 +16,6 @@ pub enum Expr {
Operator(Box<Expr>, Operator, Box<Expr>),
If(Box<Expr>, Box<Expr>, Box<Expr>),
SyntaxProblem(String),
}
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]