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:
Sei Lisa 2015-03-13 06:38:35 +01:00
parent 535dc8434c
commit 890e960b57
4 changed files with 135 additions and 61 deletions

View file

@ -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):