Add FoldCond as a stub. Change cond constant to -1. Add support for EXPR.

(EXPR as a statement, not as a general 'expression')
This commit is contained in:
Sei Lisa 2014-08-03 20:06:50 +02:00
parent 67f3061e19
commit 17e94a0d0f
3 changed files with 31 additions and 10 deletions

View file

@ -310,7 +310,10 @@ class outscript(object):
for typ, name in zip(node['ptypes'], node['pnames']))
return ret + ')\n' + self.OutCode(child[0])
return self.dent() + self.OutExpr(node) + ';\n'
if nt == 'EXPR':
return self.dent() + self.OutExpr(child[0]) + ';\n'
assert False, "Internal error: node type not handled: " + nt
def output(self, treesymtab, options = ('optsigns','optfloats')):
# Build a sorted list of dict entries