2015-08-10 22:48:35 +08:00
|
|
|
"""
|
|
|
|
Values representing ARTIQ types, to be used in function type
|
|
|
|
annotations.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from artiq.compiler import types, builtins
|
|
|
|
|
2017-06-25 01:03:35 +08:00
|
|
|
__all__ = ["TNone", "TTuple",
|
|
|
|
"TBool", "TInt32", "TInt64", "TFloat",
|
|
|
|
"TStr", "TBytes", "TByteArray",
|
2020-07-28 06:34:37 +08:00
|
|
|
"TList", "TArray", "TRange32", "TRange64",
|
2017-06-25 01:03:35 +08:00
|
|
|
"TVar"]
|
2015-08-10 22:48:35 +08:00
|
|
|
|
|
|
|
TNone = builtins.TNone()
|
|
|
|
TBool = builtins.TBool()
|
|
|
|
TInt32 = builtins.TInt(types.TValue(32))
|
|
|
|
TInt64 = builtins.TInt(types.TValue(64))
|
|
|
|
TFloat = builtins.TFloat()
|
|
|
|
TStr = builtins.TStr()
|
2017-06-25 01:03:35 +08:00
|
|
|
TBytes = builtins.TBytes()
|
|
|
|
TByteArray = builtins.TByteArray()
|
2016-10-06 18:55:33 +08:00
|
|
|
TTuple = types.TTuple
|
2015-08-10 22:48:35 +08:00
|
|
|
TList = builtins.TList
|
2020-07-28 06:34:37 +08:00
|
|
|
TArray = builtins.TArray
|
2015-08-10 22:48:35 +08:00
|
|
|
TRange32 = builtins.TRange(builtins.TInt(types.TValue(32)))
|
|
|
|
TRange64 = builtins.TRange(builtins.TInt(types.TValue(64)))
|
2015-11-26 10:23:59 +08:00
|
|
|
TVar = types.TVar
|