mirror of https://github.com/tbklang/tlang.git
22 lines
437 B
D
22 lines
437 B
D
|
module compiler.codegen.emit.core;
|
||
|
|
||
|
import compiler.symbols.data;
|
||
|
import compiler.typecheck.core;
|
||
|
|
||
|
/**
|
||
|
* TODO: Perhaps have an interface that can emit(Context/Parent, Statement)
|
||
|
*/
|
||
|
|
||
|
/* TODO: Module linking (general overhaul required) */
|
||
|
|
||
|
public abstract class CodeEmitter
|
||
|
{
|
||
|
private TypeChecker typeChecker;
|
||
|
|
||
|
this(TypeChecker typeChecker)
|
||
|
{
|
||
|
this.typeChecker = typeChecker;
|
||
|
}
|
||
|
|
||
|
public abstract void emit();
|
||
|
}
|