scientific article; zbMATH DE number 4197406
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.
- Increasing modularity and language-independency in automatically generated compilers
- A description of dynamic behavior for compilers based on object oriented modeling
- Modular design of domain-specific languages using splittings of catamorphisms
- Modular programming languages. Joint modular languages conference, JMLC 2003, Klagenfurt, Austria, August 25--27, 2003. Proceedings.
- On the look-ahead problem in lexical analysis
- The JastAdd system - modular extensible compiler construction
- Implementation of a modelica compiler using JastAdd attribute grammars
- scientific article; zbMATH DE number 4155854 (Why is no real title available?)
- RIGAL -- a programming language for compiler writing
- Grammar partitioning and modular deterministic parsing
This page was built for publication:
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q5203671)