aboutsummaryrefslogtreecommitdiff
path: root/bparser.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-02-17 16:44:09 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-02-17 16:44:09 +0200
commitec4afb2e21db1f04794c720c5835a00d154f0c56 (patch)
tree7a0a0580aa3d2919191712deb16cfeb1b41db802 /bparser.py
parent8c6c0d9b82f46e808eeff658e73ee241ea58f2a0 (diff)
downloadmeson-ec4afb2e21db1f04794c720c5835a00d154f0c56.zip
meson-ec4afb2e21db1f04794c720c5835a00d154f0c56.tar.gz
meson-ec4afb2e21db1f04794c720c5835a00d154f0c56.tar.bz2
Removed parentheses from if expression.
Diffstat (limited to 'bparser.py')
-rwxr-xr-xbparser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bparser.py b/bparser.py
index 1f4bdc2..7a38ccf 100755
--- a/bparser.py
+++ b/bparser.py
@@ -149,8 +149,8 @@ def p_statement_method_call(t):
t[0] = nodes.MethodCall(t[1], t[3], t[5], t.lineno(1))
def p_statement_if(t):
- 'statement : IF LPAREN statement RPAREN EOL codeblock elseblock ENDIF'
- t[0] = nodes.IfStatement(t[3], t[6], t[7], t.lineno(1))
+ 'statement : IF statement EOL codeblock elseblock ENDIF'
+ t[0] = nodes.IfStatement(t[2], t[4], t[5], t.lineno(1))
def p_empty_else(t):
'elseblock : '