diff options
Diffstat (limited to 'mparser.py')
| -rw-r--r-- | mparser.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mparser.py b/mparser.py index 5a28ccc87..c4f1c390f 100644 --- a/mparser.py +++ b/mparser.py @@ -71,7 +71,7 @@ precedence = ( ('nonassoc', 'EQUALS', 'NEQUALS'), ('left', 'OR'), ('left', 'AND'), -('nonassoc', 'COLON') +('nonassoc', 'COLON'), ('left', 'DOT'), ) @@ -196,6 +196,10 @@ def p_statement_and(t): 'statement : statement AND statement' t[0] = nodes.AndStatement(t[1], t[3]) +def p_statement_or(t): + 'statement : statement OR statement' + t[0] = nodes.OrStatement(t[1], t[3]) + def p_empty_else(t): 'elseblock : ' return None |
