Re: Natural "for" Loop, using Plural / Singular transformations ??

Dimitri Maziuk <dmaziuk@bmrb.wisc.edu>
30 May 2006 18:38:28 -0400

          From comp.compilers

Related articles
Natural "for" Loop, using Plural / Singular transformations ?? olivier.chatelain@gmail.com (2006-05-26)
Re: Natural "for" Loop, using Plural / Singular transformations ?? owong@castortech.com (Oliver Wong) (2006-05-30)
Re: Natural "for" Loop, using Plural / Singular transformations ?? dmaziuk@bmrb.wisc.edu (Dimitri Maziuk) (2006-05-30)
Re: Natural "for" Loop, using Plural / Singular transformations ?? mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2006-05-30)
Re: Natural "for" Loop, using Plural / Singular transformations ?? tom@infoether.com (Tom Copeland) (2006-05-30)
Re: Natural "for" Loop, using Plural / Singular transformations ?? 148f3wg02@sneakemail.com (Karsten Nyblad) (2006-06-03)
Re: Natural "for" Loop, using Plural / Singular transformations ?? dot@dotat.at (Tony Finch) (2006-06-05)
Re: Natural "for" Loop, using Plural / Singular transformations ?? p_ludemann@yahoo.com (Peter Ludemann) (2006-06-11)
Re: Natural "for" Loop, using Plural / Singular transformations ?? jthorn@aei.mpg.de (Jonathan Thornburg) (2006-06-12)
[4 later articles]
| List of all articles for this month |

From: Dimitri Maziuk <dmaziuk@bmrb.wisc.edu>
Newsgroups: comp.compilers
Date: 30 May 2006 18:38:28 -0400
Organization: only myself
References: 06-05-083
Keywords: syntax
Posted-Date: 30 May 2006 18:38:28 EDT

olivier.chatelain@gmail.com sez:
> Dear Compiler Cracks,
>
> What about using Plural => Singular transformations to generate loop
> variables from name of lists?
>
>= depenendcies -generates-> dependency =
>
> FORALL dependencies DO
> PRINT dependency.name
> END


sub autumn
    forall leaves do
        leave.fall
    end
endsub


Dima
--
All whitespace is equivalent except in certain situations
                                                                                                    -- ANSI C standard committee



Post a followup to this message

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