Implement block-level-expressions

This commit is contained in:
Sofia 2023-08-03 20:10:12 +03:00
parent 413cd87a02
commit 420fd7b74b
1 changed files with 5 additions and 2 deletions

View File

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