Re: recursive iterators

"Randall Hyde" <rhyde@cs.ucr.edu>
19 Mar 2002 16:16:50 -0500

          From comp.compilers

Related articles
recursive iterators alexc@world.std.com (2002-03-09)
Re: recursive iterators rhyde@cs.ucr.edu (Randall Hyde) (2002-03-19)
Re: recursive iterators bear@sonic.net (Ray Dillinger) (2002-03-21)
Re: recursive iterators sarah@telergy.com (2002-03-31)
Re: recursive iterators rhyde@cs.ucr.edu (Randall Hyde) (2002-04-06)
| List of all articles for this month |
From: "Randall Hyde" <rhyde@cs.ucr.edu>
Newsgroups: comp.compilers
Date: 19 Mar 2002 16:16:50 -0500
Organization: Prodigy Internet http://www.prodigy.com
References: 02-03-032
Keywords: assembler
Posted-Date: 19 Mar 2002 16:16:50 EST

Well, it's assembly language, not C++, but HLA (the High Level
Assembler) fully supports recursive iterators in a CLU-like fashion.
Pretty amazing that you can write code like the following in assembly
language


        foreach NodeInTree( SomeBinaryTree ) do


                <<process node pointer returned in EAX >>


        endfor;


for a working example, check out the HLA code at
this URL


http://webster.cs.ucr.edu/Page_hla/hla_examples/findfrst.txt


You can find out more about HLA on webster at
http://webster.cs.ucr.edu
Randy Hyde


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.