示例#1
0
 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);
 }
示例#2
0
 public ValueInternmentManager(CNameManager nameManager)
 {
     this.nameManager     = nameManager;
     valueInternmentTable = new Dictionary <Function, IDictionary <T, string> >();
 }