mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 15:38:48 +00:00
Update homework 1 and 2
This commit is contained in:
15
src/asmgen/mod.rs
Normal file
15
src/asmgen/mod.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use crate::asm::Asm;
|
||||
use crate::ir;
|
||||
use crate::Translate;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Asmgen {}
|
||||
|
||||
impl Translate<ir::TranslationUnit> for Asmgen {
|
||||
type Target = Asm;
|
||||
type Error = ();
|
||||
|
||||
fn translate(&mut self, _source: &ir::TranslationUnit) -> Result<Self::Target, Self::Error> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user