Exemplo n.º 1
0
        public override MIPSRegister VisitNewStructNode(NewStructNode n)
        {
            var reg = GetMIPSRegister();

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

                return(struc);
            }
Exemplo n.º 6
0
 public virtual T VisitNewStructNode(NewStructNode n)
 {
     return(default(T));
 }