mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Format and stuff
This commit is contained in:
@@ -1,15 +1,24 @@
|
||||
use crate::asm;
|
||||
use crate::ir;
|
||||
use crate::Translate;
|
||||
use std::collections::{HashMap, HashSet, VecDeque};
|
||||
|
||||
#[derive(Default, Clone, Copy, Debug)]
|
||||
use lang_c::ast;
|
||||
|
||||
use crate::ir::HasDtype;
|
||||
use crate::{asm, ir, Translate};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Asmgen {}
|
||||
|
||||
impl Default for Asmgen {
|
||||
fn default() -> Self {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
impl Translate<ir::TranslationUnit> for Asmgen {
|
||||
type Target = asm::Asm;
|
||||
type Error = ();
|
||||
|
||||
fn translate(&mut self, _source: &ir::TranslationUnit) -> Result<Self::Target, Self::Error> {
|
||||
todo!("Homework: Assembly Generation")
|
||||
fn translate(&mut self, source: &ir::TranslationUnit) -> Result<Self::Target, Self::Error> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user