aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-01-25 20:40:00 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-01-25 20:40:00 +0200
commitbd6e542f1c5be82ce24eb9374423747fa7b27a29 (patch)
tree77173a87f953349b97e1071c7016e5ff2edd448a /interpreter.py
parentfaaa0df78b139bd1058ccff40ba31e39f7f2381e (diff)
downloadmeson-bd6e542f1c5be82ce24eb9374423747fa7b27a29.zip
meson-bd6e542f1c5be82ce24eb9374423747fa7b27a29.tar.gz
meson-bd6e542f1c5be82ce24eb9374423747fa7b27a29.tar.bz2
Added boolean data type.
Diffstat (limited to 'interpreter.py')
-rwxr-xr-xinterpreter.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index c3d14b1..50c7a40 100755
--- a/interpreter.py
+++ b/interpreter.py
@@ -273,6 +273,8 @@ class Interpreter():
return self.method_call(cur)
elif isinstance(cur, nodes.StringStatement):
return cur
+ elif isinstance(cur, nodes.BoolStatement):
+ return cur
else:
raise InvalidCode("Unknown statement in line %d." % cur.lineno())
@@ -407,7 +409,8 @@ class Interpreter():
def is_assignable(self, value):
if isinstance(value, InterpreterObject) or \
isinstance(value, environment.PkgConfigDependency) or\
- isinstance(value, nodes.StringStatement):
+ isinstance(value, nodes.StringStatement) or\
+ isinstance(value, nodes.BoolStatement):
return True
return False