could someone tell me how to read this please? I gave up on the corresponding
Java section.
from streams.py part of the python runtime
def addToSortedRewriteList(self, *args):
... a whole bunch of lines
# first insert position for operation
for pos, searchOp in enumerate(rewrites):
... a whole bunch of lines
else:
# new op is past any existing op, append to end
rewrites.append(op)
I don't know if "else" corresponds to "for"? I used a ruler on my monitor to
check. It looks like they line up.
If so, what does an else mean at the end of a for? Is that when for has no
elements to loop for?
If you happen to be the one who wrote this I'd appreciate if you enlightened me
with the whole logic of this method and what it tries to do.
I just can't make anything out of the comments and code (no offence to you. I
know you tried to preserve the original Java code).
greatly appreciated,
jeff
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev