mirror of https://github.com/tbklang/tlang.git
25 lines
448 B
D
25 lines
448 B
D
|
module compiler.codegen.mapper.core;
|
||
|
|
||
|
import compiler.typecheck.core;
|
||
|
import compiler.symbols.data;
|
||
|
import std.conv : to;
|
||
|
import gogga;
|
||
|
|
||
|
/**
|
||
|
* SymbolMapper
|
||
|
*
|
||
|
* Maps Entity's to consistent but unique symbol
|
||
|
* names (strings)
|
||
|
*/
|
||
|
public class SymbolMapper
|
||
|
{
|
||
|
// Used to map names to entities
|
||
|
protected TypeChecker tc;
|
||
|
|
||
|
this(TypeChecker tc)
|
||
|
{
|
||
|
this.tc = tc;
|
||
|
}
|
||
|
|
||
|
public abstract string symbolLookup(Entity entityIn);
|
||
|
}
|