mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-02 08:08:20 +00:00
Add "lazy lists" assignment support (mylist[index] = value).
Add support for LAMBDA (empty) tree nodes while on it, that allow us to define private stuff at the top without caring about Loc.
This commit is contained in:
parent
7e521780d6
commit
b73805e0ce
4 changed files with 75 additions and 19 deletions
|
@ -366,6 +366,9 @@ class outscript(object):
|
|||
if nt == 'EXPR':
|
||||
return self.dent() + self.OutExpr(child[0]) + ';\n'
|
||||
|
||||
if nt == 'LAMBDA':
|
||||
return ''
|
||||
|
||||
assert False, "Internal error: node type not handled: " + nt # pragma: no cover
|
||||
|
||||
def output(self, treesymtab, options = ('optsigns','optfloats')):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue