Add support for evaluating BOOL and introduce basic logical operators as functions

This commit is contained in:
Bartłomiej Pluta
2019-07-10 14:08:28 +02:00
parent 9408c63e06
commit 578141c7b8
6 changed files with 23 additions and 5 deletions

View File

@@ -54,6 +54,10 @@ class Type(Enum):
"dot": Type.string('.' if value.dot else '')
})
@staticmethod
def bool(value):
return Value(Type.BOOL, value, {})
@staticmethod
def sound(value):
return Value(Type.SOUND, value, {