Commit 1aeba1d5 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Add rule for empty AUTO programs

parent 6eb43621
......@@ -31,7 +31,9 @@ class PlutoVariables:
rh.append(expr.format(*matches, pluto=v[0]))
if op == 'AND':
if len(rh) == 0:
return("%s=0" % (lh))
elif op == 'AND':
return("%s=%s" % (lh, '*'.join(rh)))
elif op == 'OR':
return("%s=%s" % (lh, '+'.join(rh)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment