public CILStruct CreateStruct(SourceInfo si, string name) { var @struct = new CILStruct(si, name, new List <CILVariableDecl>()); AddStruct(@struct); return(@struct); }
public void AddStruct(CILStruct @struct) { SymTable.DeclareStruct(@struct); _structs.Add(@struct.Name, @struct); }
public void DeclareStruct(CILStruct @struct) { DeclareSym(@struct.Name, @struct); AliasSym("struct " + @struct.Name, @struct.Name); }
public void CDecl(CIntermediateLang cil) { var cName = NameGenerator.UniqName("struc", Name); LllCompiler.SymTable.AddSymbol(new LllStruct(cName, this, false)); _cilStruct = cil.CreateStruct(SourceInfo, cName); }