No label defined (Q5203671)
From MaRDI portal
!
This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use the normal view instead:
scientific article; zbMATH DE number 4197406
| Language | Label | Description | Also known as |
|---|---|---|---|
| default for all languages | No label defined |
||
| English | No label defined |
scientific article; zbMATH DE number 4197406 |
Statements
1990
0 references
object-oriented design
0 references
task-oriented
0 references
language-oriented
0 references
LL(1) grammar
0 references
0.77535480260849
0 references
0.7362959980964661
0 references
This paper sketches an approach for modular design of a compiler in which the modularization is closely tied to the language description in such a way that as parts of a language specification are changed, only the corresponding modules need to be changed. This approach is called task- oriented or language-oriented to distinguish it from the traditional approach, called implementation-oriented in this paper, of dividing a compiler into scanner, syntactic analyzer, semantic analyzer, etc. The paper presents schemas, essentially very high level ``macro'' facilities, for constructing such a compiler from a given LL(1) grammar. The resulting compiler needs an initial data structure to be built, called a start tree, but by using lazy evaluation techniques it is able to avoid building all but a small portion of this tree in any given instance. The resulting compiler is also object-oriented in the sense that nonterminals in the language are treated as classes with a hierarchical class structure. (It might be necessary to perform a straightforward restructuring of the given grammar to ensure this.) This design methodology enables changes in the design of a language to be implemented with only very localized changes in the compiler. The schemas are presented in a language similar to Oberon, but are easily readable even if one is not familiar with that language. Results of experiments performed using this methodology are cited which indicate that the performance of compilers built using this technique is comparable with traditional recursive descent compilers.
0 references