public CompilationContext(ICompilationJob job) : base(job) { Names = new CNameManager("P_"); HeaderFileName = $"{job.ProjectName}.h"; SourceFileName = $"{job.ProjectName}.c"; registeredInts = new ValueInternmentManager <int>(Names); registeredFloats = new ValueInternmentManager <double>(Names); registeredBools = new ValueInternmentManager <bool>(Names); registeredStrings = new ValueInternmentManager <string>(Names); }
public ValueInternmentManager(CNameManager nameManager) { this.nameManager = nameManager; valueInternmentTable = new Dictionary <Function, IDictionary <T, string> >(); }