mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
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:
parent
67f3061e19
commit
17e94a0d0f
3 changed files with 31 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue