Re: Attribute Grammars used in compi

compilers@ima.UUCP
7 Jan 86 03:13:00 GMT

          From comp.compilers

Related articles
Re: Attribute Grammars used in compi compilers@ima.UUCP (1986-01-07)
Re: Attribute Grammars used in compi compilers@ima.UUCP (1986-01-09)
Re: Attribute Grammars used in compi compilers@ima.UUCP (1986-01-15)
| List of all articles for this month |
Relay-Version: version B 2.10.2 9/12/84; site mit-hermes.ARPA
Posting-Version: Notesfiles $Revision: 1.6.2.16 $; site ima.UUCP
From: compilers@ima.UUCP
Newsgroups: mod.compilers
Date: 7 Jan 86 03:13:00 GMT
Article-I.D.: ima.136300021
Posted: Mon Jan 6 22:13:00 1986
Date-Received: 7 Jan 86 10:46:25 GMT
Nf-ID: #N:ima:136300021:000:1171
Nf-From: ima!compilers Jan 6 22:13:00 1986



[from Eduardo Krell <think!ekrell@LOCUS.UCLA.EDU>]


In article <2287@burdvax.UUCP> wpl@burdvax.UUCP (William P Loftus) writes:
>Since A is copying attributes i and k from a child and also calculating
>attribute j from the same attributes, is it better to get the values (that
>j is calculated) from the children nodes or to calculate them from attributes
>in the same node?
You might want to read the following paper:


Martin, David and Chirica Laurian, ``An Order-Algebraic Definition
of Knuthian Systems'', Math. Systems Theory No. 13 (1979).


In this paper the authors prove that any AG with both synthesized and
inherited attributes can be transformed into an equivalent AG with only
synthesized attributes. They also show how to do it.


The price you pay for doing this is that some attributes are now in the
functional domain (i.e. some attributes are functions, not just plain
values). The payoffs, however, are tremendous since now you can process
your AG in a strictly top-down, syntax-directed scheme.
--
        Eduardo Krell UCLA Computer Science Department
        ekrell@ucla-locus.arpa ..!{sdcrdcf,ihnp4,trwspp,ucbvax}!ucla-cs!ekrell
--------



Post a followup to this message

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