Beispiel #1
0
 def get_value(node):
     rep = IT.get_rep(node)
     args = (self,) + rep
     return CT.CFunArgs(*args)
Beispiel #2
0
 def f(index,key): return CT.CTypBuiltinVaargs(self,index,tags,args)
 return self.typ_table.add(IT.get_key(tags,args),f)
Beispiel #3
0
 def f(index,key): return CT.CTypArray(self,index,tags,args)
 return self.typ_table.add(IT.get_key(tags,args),f)
Beispiel #4
0
 def f(index,key): return CT.CFunArgs(self,index,tags,args)
 return self.funargs_table.add(IT.get_key(tags,args),f)
Beispiel #5
0
    'cnapp': lambda x:CE.CExpCnApp(*x)
    }

lhost_constructors = {
    'var': lambda x:CH.CLHostVar(*x),
    'mem': lambda x:CH.CLHostMem(*x)
    }

offset_constructors = {
    'n': lambda x:CO.CNoOffset(*x),
    'f': lambda x:CO.CFieldOffset(*x),
    'i': lambda x:CO.CIndexOffset(*x)
    }

typ_constructors = {
    'tvoid': lambda x:CT.CTypVoid(*x),
    'tint': lambda x:CT.CTypInt(*x),
    'tfloat': lambda x:CT.CTypFloat(*x),
    'tnamed': lambda x:CT.CTypNamed(*x),
    'tcomp': lambda x:CT.CTypComp(*x),
    'tenum': lambda x:CT.CTypEnum(*x),
    'tbuiltin-va-list': lambda x:CT.CTypBuiltinVaargs(*x),
    'tbuiltinvaargs': lambda x:CT.CTypBuiltinVaargs(*x),
    'tptr': lambda x:CT.CTypPtr(*x),
    'tarray': lambda x:CT.CTypArray(*x),
    'tfun': lambda x:CT.CTypFun(*x)
    }

typsig_constructors = {
    'tsarray': lambda x:CS.CTypsigArray(*x),
    'tsptr': lambda x:CS.CTypsigPtr(*x),
 def f(index: int, key: Tuple[str, str]) -> CT.CFunArg:
     return CT.CFunArg(self, index, tags, args)