Interpreter finish

This commit is contained in:
Moritz Gmeiner 2023-01-28 21:11:01 +01:00
commit 647a095a05
5 changed files with 29 additions and 21 deletions

View file

@ -82,7 +82,7 @@ impl Stmt {
impl Display for Stmt {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Stmt::Print { expr } => write!(f, "print {expr};"),
Stmt::Print { expr } => write!(f, "(print {expr});"),
Stmt::IfStmt {
condition,
then_branch,