示例#1
0
 def f(index, key):
     return ST.STNamedConstant(self, index, t.tags, t.args)
 def f_numconstant(index: int, key: object) -> ST.STNumConstant:
     return ST.STNumConstant(self, index, tags, args)
 def f_argaddressedvalue(index: int,
                         key: object) -> ST.STArgAddressedValue:
     return ST.STArgAddressedValue(self, index, tags, args)
 def f_nooffset(index: int, key: object) -> ST.STArgNoOffset:
     return ST.STArgNoOffset(self, index, tags, [])
 def f_returnvalue(index: int, key: object) -> ST.STReturnValue:
     return ST.STReturnValue(self, index, tags, args)
 def f_nullterminatorpos(index: int,
                         key: object) -> ST.STArgNullTerminatorPos:
     return ST.STArgNullTerminatorPos(self, index, t.tags, args)
 def f_formattedoutputsize(index: int,
                           key: object) -> ST.STFormattedOutputSize:
     return ST.STFormattedOutputSize(self, index, t.tags, args)
示例#8
0
 def f(index, key):
     return ST.STArgNoOffset(self, index, tags, [])
示例#9
0
 def f(index, key):
     return ST.STArgIndexOffset(self, index, tags, args)
示例#10
0
 def f(index, key):
     return ST.STFormattedOutputSize(self, index, t.tags, args)
示例#11
0
 def f(index, key):
     return ST.STRuntimeValue(self, index, t.tags, t.args)
示例#12
0
 def f(index, key):
     return ST.STArgSizeOfType(self, index, t.tags, args)
示例#13
0
 def f(index, key):
     return ST.STArgNullTerminatorPos(self, index, t.tags, args)
示例#14
0
 def f(index, key):
     return ST.STByteSize(self, index, t.tags, args)
 def f_indexsize(index: int, key: object) -> ST.STIndexSize:
     return ST.STIndexSize(self, index, t.tags, args)
示例#16
0
 def f(index, key):
     return ST.STArgValue(self, index, tags, args)
 def f_bytesize(index: int, key: object) -> ST.STByteSize:
     return ST.STByteSize(self, index, t.tags, args)
示例#18
0
 def f(index, key):
     return ST.STNumConstant(self, index, tags, args)
 def f_sizeoftype(index: int, key: object) -> ST.STArgSizeOfType:
     return ST.STArgSizeOfType(self, index, t.tags, args)
示例#20
0
 def f(index, key):
     return ST.STFieldOffset(self, index, tags, args)
 def f_runtimevalue(index: int, key: object) -> ST.STRuntimeValue:
     return ST.STRuntimeValue(self, index, t.tags, t.args)
示例#22
0
 def f(index, key):
     return ST.STArgAddressedValue(self, index, tags, args)
 def f_argindexoffset(index: int,
                      key: object) -> ST.STArgIndexOffset:
     return ST.STArgIndexOffset(self, index, tags, args)
示例#24
0
 def f(index, key):
     return ST.STArithmeticExpr(self, index, tags, args)
 def f_argvalue(index: int, key: object) -> ST.STArgValue:
     return ST.STArgValue(self, index, tags, args)
    "MAXUINT32": "4294967295",
    "MININT64": "-9223372036854775808",
    "MAXINT64": "9223372036854775807",
    "MAXUINT64": "18446744073709551615",
}

api_parameter_constructors: Dict[
    str, Callable[[Tuple["InterfaceDictionary", int, List[str], List[int]]],
                  ApiParameter], ] = {
                      "pf": lambda x: AP.APFormal(*x),
                      "pg": lambda x: AP.APGlobal(*x),
                  }

s_offset_constructors: Dict[str, Callable[
    [Tuple["InterfaceDictionary", int, List[str], List[int]]], SOffset], ] = {
        "no": lambda x: ST.STArgNoOffset(*x),
        "fo": lambda x: ST.STArgFieldOffset(*x),
        "io": lambda x: ST.STArgIndexOffset(*x),
    }

s_term_constructors: Dict[str, Callable[
    [Tuple["InterfaceDictionary", int, List[str], List[int]]], STerm], ] = {
        "av": lambda x: ST.STArgValue(*x),
        "rv": lambda x: ST.STReturnValue(*x),
        "nc": lambda x: ST.STNamedConstant(*x),
        "ic": lambda x: ST.STNumConstant(*x),
        "is": lambda x: ST.STIndexSize(*x),
        "bs": lambda x: ST.STByteSize(*x),
        "fo": lambda x: ST.STFieldOffset(*x),
        "aa": lambda x: ST.STArgAddressedValue(*x),
        "at": lambda x: ST.STArgNullTerminatorPos(*x),
 def f_fieldoffset(index: int, key: object) -> ST.STFieldOffset:
     return ST.STFieldOffset(self, index, tags, args)
 def f_namedconstant(index: int, key: object) -> ST.STNamedConstant:
     return ST.STNamedConstant(self, index, t.tags, t.args)
 def f_arithmeticexpr(index: int,
                      key: object) -> ST.STArithmeticExpr:
     return ST.STArithmeticExpr(self, index, tags, args)
示例#30
0
 def f(index, key):
     return ST.STArgNoOffset(self, index, t.tags, t.args)