aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-05-26 22:56:12 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-05-26 22:56:12 +0300
commit17ba9bccd0e32fb85df924dc7d2b87b6ec0691c0 (patch)
tree167b32fbc318cb977b302518cb1790e8a40c0961 /interpreter.py
parent371e747ca455851ae4597e0071abc90f040ae448 (diff)
downloadmeson-17ba9bccd0e32fb85df924dc7d2b87b6ec0691c0.zip
meson-17ba9bccd0e32fb85df924dc7d2b87b6ec0691c0.tar.gz
meson-17ba9bccd0e32fb85df924dc7d2b87b6ec0691c0.tar.bz2
Parse function and method calls properly.
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/interpreter.py b/interpreter.py
index 03ee59d..517335f 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -1379,6 +1379,7 @@ class Interpreter():
for i in node.ifs:
result = self.evaluate_statement(i.condition)
if not(isinstance(result, bool)):
+ print(result)
raise InvalidCode('If clause does not evaluate to true or false.')
if result:
self.evaluate_codeblock(i.block)