parser now bubbles errors instead of unit type

llvm added to dependencies
This commit is contained in:
2025-10-28 12:28:50 +01:00
parent a0a6a15be3
commit 934d961be8
15 changed files with 132 additions and 67 deletions

11
src/codegen/llvm_ir.rs Normal file
View File

@@ -0,0 +1,11 @@
use crate::ast::Literal;
pub trait LLVMIRTranslation {
fn llvm_translate(&self) -> Result<String, ()>;
}
impl LLVMIRTranslation for crate::ast::Literal {
fn llvm_translate(&self) -> Result<String, ()> {
todo!()
}
}