Implement block-level-expressions

This commit is contained in:
Sofia 2023-08-03 20:10:12 +03:00
parent 413cd87a02
commit 420fd7b74b

View File

@ -149,8 +149,11 @@ impl BlockLevelStatement {
Ok(())
}
BlockLevelStatement::Return(_) => panic!("Should never happen"),
BlockLevelStatement::Import(_) => Ok(()),
BlockLevelStatement::Expression(_) => Ok(()),
BlockLevelStatement::Import(_) => Ok(()), // TODO: To implement
BlockLevelStatement::Expression(e) => {
let _value = e.codegen(scope)?;
Ok(())
}
}
}
}