mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Implement Lazy List reading. Update docs according to last changes (in FS too).
Adds a new tree node type, SUBIDX, which hopefully should never appear in actual output. If it does, it's prefixed with the string (MISSING TYPE) as a cue to the programmer.
This commit is contained in:
parent
535dc8434c
commit
890e960b57
4 changed files with 135 additions and 61 deletions
|
@ -298,6 +298,9 @@ class outscript(object):
|
|||
if nt == 'EXPRLIST':
|
||||
return self.OutExprList(child)
|
||||
|
||||
if nt == 'SUBIDX':
|
||||
return '(MISSING TYPE)' + self.OutExpr(child[0]) + '[' + self.OutExprList(child[1:]) + ']'
|
||||
|
||||
assert False, 'Internal error: expression type "' + nt + '" not handled' # pragma: no cover
|
||||
|
||||
def OutCode(self, node):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue