示例#1
0
        public override MIPSRegister VisitNewStructNode(NewStructNode n)
        {
            var reg = GetMIPSRegister();

            emit.EmitMalloc(reg, (short)n.Type.Length);
            return(reg);
        }
示例#2
0
 public override LLVMRegister VisitNewStructNode(NewStructNode n)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public override object VisitNewStructNode(NewStructNode n)
 {
     n.Type = MakeTypeSymbolForString(n.Type.Name);
     return(null);
 }
示例#4
0
 public object VisitNewStructNode(NewStructNode n)
 {
     WriteLine(n.kind + " - " + n.Type);
     return(null);
 }
示例#5
0
            public override LData VisitNewStructNode(NewStructNode n)
            {
                var struc = new LStruct(n.Type.Fields, n.Type);

                return(struc);
            }
示例#6
0
 public virtual T VisitNewStructNode(NewStructNode n)
 {
     return(default(T));
 }