aboutsummaryrefslogtreecommitdiff
path: root/mparser.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-06-30 01:53:37 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-06-30 01:53:37 +0300
commita52336b4294b72019587257d0848d42c0e2400fc (patch)
tree759f1f54b15242c207c0784fdc6cc255c53c4a42 /mparser.py
parent5e2278d6d4e2337c05b2f4e583dc8620b90e9add (diff)
downloadmeson-a52336b4294b72019587257d0848d42c0e2400fc.zip
meson-a52336b4294b72019587257d0848d42c0e2400fc.tar.gz
meson-a52336b4294b72019587257d0848d42c0e2400fc.tar.bz2
Can invoke methods on general statements and not just variable names.
Diffstat (limited to 'mparser.py')
-rw-r--r--mparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mparser.py b/mparser.py
index 9a1705c..9bc0f2d 100644
--- a/mparser.py
+++ b/mparser.py
@@ -168,7 +168,7 @@ def p_statement_func_call(t):
t[0] = nodes.FunctionCall(t[1], t[3], t[1].lineno())
def p_statement_method_call(t):
- 'statement : expression DOT expression LPAREN args RPAREN'
+ 'statement : statement DOT expression LPAREN args RPAREN'
t[0] = nodes.MethodCall(t[1], t[3], t[5], t[1].lineno())
def p_statement_if(t):