On Thursday, March 31, 2022 at 7:57:39 PM UTC-5 [email protected] wrote:

> Or, to put things another way, when you reach the end of a subtree, you 
> don't automatically know how many levels (or indents, if you think of 
> levels as indents) to return to.  The leaf of a subtree won't have a next 
> link, so you need some state to know where to go next.
>

I wouldn't put it that way.  When revisiting a visitor, the visitor must be 
restarted where it left off.  Links simply can't do that. But 
generators/co-routines *can* restart visitors where they left off. In 
effect, so do recursive descent algorithms.

Edward

-- 
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/3f3ad56b-bd79-48e7-8d0f-be66815ed305n%40googlegroups.com.

Reply via email to