erg_compiler 0.1.1

Centimetre: the Erg compiler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::hir::HIR;
use crate::error::{CompileWarnings};

#[derive(Debug)]
pub struct HIROptimizer {

}

impl HIROptimizer {
    pub fn fold_constants(&mut self, mut _hir: HIR) -> HIR { todo!() }

    pub fn eliminate_unused_variables(&mut self, mut _hir: HIR) -> (HIR, CompileWarnings) { todo!() }

    pub fn eliminate_dead_code(&mut self, mut _hir: HIR) -> (HIR, CompileWarnings) {
        todo!()
    }
}