Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tatype.py
diff options
context:
space:
mode:
authorMarion <marion.zepf@gmail.com>2013-08-29 13:30:34 (GMT)
committer Marion <marion.zepf@gmail.com>2013-08-29 13:30:34 (GMT)
commita0e0b5a769f95e995e04c58f270cfa953b34f901 (patch)
tree99824ffbb8bcea0016f55e124456d14c862c2224 /TurtleArt/tatype.py
parent376521086f2263cbd7270b99b36a06f023942824 (diff)
introduce PrimitiveDisjunctions and TypeDisjunctions
Diffstat (limited to 'TurtleArt/tatype.py')
-rw-r--r--TurtleArt/tatype.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/TurtleArt/tatype.py b/TurtleArt/tatype.py
index 2c78c92..e6ffbb9 100644
--- a/TurtleArt/tatype.py
+++ b/TurtleArt/tatype.py
@@ -46,6 +46,12 @@ class Type(object):
def __str__(self):
return str(self.name)
+
+class TypeDisjunction(tuple,Type):
+ """ Disjunction of two or more Types (from the type hierarchy) """
+ pass
+
+
TYPE_OBJECT = Type('object', 0)
TYPE_CHAR = Type('char', 1)
TYPE_COLOR = Type('color', 2)