Update homework 1 and 2

This commit is contained in:
Jeehoon Kang
2020-03-26 03:38:20 +09:00
parent 241a66fcc1
commit 8938a7ad8f
40 changed files with 5171 additions and 1504 deletions

15
src/asmgen/mod.rs Normal file
View 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!()
}
}