mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
25 lines
467 B
Rust
25 lines
467 B
Rust
use std::collections::{HashMap, HashSet, VecDeque};
|
|
|
|
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!()
|
|
}
|
|
}
|