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

"Oliver Wong" <owong@castortech.com>
30 May 2006 18:37:45 -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)
[5 later articles]
| List of all articles for this month |

From: "Oliver Wong" <owong@castortech.com>
Newsgroups: comp.compilers
Date: 30 May 2006 18:37:45 -0400
Organization: GlobeTrotter
References: 06-05-083
Keywords: syntax
Posted-Date: 30 May 2006 18:37:45 EDT

<olivier.chatelain@gmail.com> wrote in message
>
> EXAMPLE:
>
> FOR dependency IN dependencies DO
> PRINT dependency.name
> END
>
> = depenendcies -generates-> dependency =
>
> FORALL dependencies DO
> PRINT dependency.name
> END
>
> The compiler would generate the "singular" loop variable "dependency"
> from the List "dependencies" (Plural).
>
> This would reduce the code size, improve those long, unreadable headers
> and simply plain-editor refactoring.
>
> Any comments?
> Olivier
>
> [OK, what's the plural of deer or sheep?
[...]
> -John]


        Or what's the plural/singular version of names that I just make up?


FORALL RXX9402EjjDD DO
    PRINT /*What's the singular of "RXX9402EjjDD"?*/.name
END


        - Oliver


Post a followup to this message

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