Evaluate some simple statements

This commit is contained in:
Joscha 2021-12-04 22:37:01 +01:00
parent 778576a63c
commit 3a219ecac2
6 changed files with 184 additions and 12 deletions

View file

@ -219,7 +219,7 @@ impl fmt::Display for Statement {
Statement::Until(Some(date)) => writeln!(f, "UNTIL {}", date),
Statement::Until(None) => writeln!(f, "UNTIL *"),
Statement::Except(date) => writeln!(f, "EXCEPT {}", date),
Statement::Move(from, to) => writeln!(f, "MOVE {} TO {}", from, to),
Statement::Move { span, from, to } => writeln!(f, "MOVE {} TO {}", from, to),
}
}
}