Related articles |
---|
The "philosophy" of why labeled trees aid in the translation process costello@mitre.org (Roger L Costello) (2022-05-21) |
From: | Roger L Costello <costello@mitre.org> |
Newsgroups: | comp.compilers |
Date: | Sat, 21 May 2022 15:12:08 +0000 |
Organization: | Compilers Central |
Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="48565"; mail-complaints-to="abuse@iecc.com" |
Keywords: | analysis, question |
Posted-Date: | 21 May 2022 11:57:06 EDT |
Accept-Language: | en-US |
Content-Language: | en-US |
Hi Folks,
A book [1] that I am reading says this:
-------------------------------
It is often convenient in specifying and implementing translations to treat a
translation as the composition of two simpler mappings. The first of these
relations, known as the syntactic mapping, associates with each input (program
in the source language) some structure which is the domain for the second
relation, the semantic mapping. It is not immediately apparent that there
should be any structure which will aid in the translation process, but almost
without exception, a labeled tree turns out to be a very useful structure to
place on the input. Without delving into the philosophy of why this should be
so, much of this book will be devoted to algorithms for the efficient
construction of the proper trees for input programs.
-------------------------------
The last sentence particularly caught my attention. There is a "philosophy" of
why labeled trees aid in the translation process? Fascinating! Would you
elaborate on that philosophy please? Are there articles on this?
/Roger
[1] "The Theory of Parsing, Translation, and Compiling, Volume 1 Parsing" by
Aho and Ullman, page 55.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.