From a0e0b5a769f95e995e04c58f270cfa953b34f901 Mon Sep 17 00:00:00 2001 From: Marion Date: Thu, 29 Aug 2013 13:30:34 +0000 Subject: introduce PrimitiveDisjunctions and TypeDisjunctions --- (limited to 'TurtleArt/tatype.py') 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) -- cgit v0.9.1