forked from M-Labs/artiq
1
0
Fork 0

language: export TBytes and TByteArray.

This commit is contained in:
whitequark 2017-06-24 17:03:35 +00:00
parent 12357d884e
commit d0f72632e1
1 changed files with 7 additions and 2 deletions

View File

@ -5,8 +5,11 @@ annotations.
from artiq.compiler import types, builtins from artiq.compiler import types, builtins
__all__ = ["TNone", "TBool", "TInt32", "TInt64", "TFloat", __all__ = ["TNone", "TTuple",
"TStr", "TTuple", "TList", "TRange32", "TRange64", "TVar"] "TBool", "TInt32", "TInt64", "TFloat",
"TStr", "TBytes", "TByteArray",
"TList", "TRange32", "TRange64",
"TVar"]
TNone = builtins.TNone() TNone = builtins.TNone()
TBool = builtins.TBool() TBool = builtins.TBool()
@ -14,6 +17,8 @@ TInt32 = builtins.TInt(types.TValue(32))
TInt64 = builtins.TInt(types.TValue(64)) TInt64 = builtins.TInt(types.TValue(64))
TFloat = builtins.TFloat() TFloat = builtins.TFloat()
TStr = builtins.TStr() TStr = builtins.TStr()
TBytes = builtins.TBytes()
TByteArray = builtins.TByteArray()
TTuple = types.TTuple TTuple = types.TTuple
TList = builtins.TList TList = builtins.TList
TRange32 = builtins.TRange(builtins.TInt(types.TValue(32))) TRange32 = builtins.TRange(builtins.TInt(types.TValue(32)))