On Thu, Mar 31, 2022 at 3:52 PM Edward K. Ream <[email protected]> wrote:
P.S. Here is a slightly condensed version of the iterative main loop:
>
Oops: I had intended to replace self.exec_list with exec_list everywhere.
Like this:
def main_loop(self, node):
func = getattr(self, 'do_' + node.__class__.__name__)
exec_list = [(func, node)]
while exec_list:
func, arg = exec_list.pop(0)
result = func(arg)
if result:
# Prepend the result, a list of tuples.
exec_list[:0] = result
EKR
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3LH2Grz%2BFvOaZw7S_XDLvfi%2BZVZ%3D50kBOEU53UDnwu%3DQ%40mail.gmail.com.