Format and stuff

This commit is contained in:
Janggun Lee
2025-01-23 19:11:43 +09:00
parent fcb6ca2538
commit 00c64a5297
22 changed files with 201 additions and 163 deletions

View File

@@ -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!()
}
}