aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
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