Пример #1
0
        public CILStruct CreateStruct(SourceInfo si, string name)
        {
            var @struct = new CILStruct(si, name, new List <CILVariableDecl>());

            AddStruct(@struct);
            return(@struct);
        }
Пример #2
0
 public void AddStruct(CILStruct @struct)
 {
     SymTable.DeclareStruct(@struct);
     _structs.Add(@struct.Name, @struct);
 }
Пример #3
0
 public void DeclareStruct(CILStruct @struct)
 {
     DeclareSym(@struct.Name, @struct);
     AliasSym("struct " + @struct.Name, @struct.Name);
 }
Пример #4
0
 public void CDecl(CIntermediateLang cil)
 {
     var cName = NameGenerator.UniqName("struc", Name);
     LllCompiler.SymTable.AddSymbol(new LllStruct(cName, this, false));
     _cilStruct = cil.CreateStruct(SourceInfo, cName);
 }