Using the generative aspect of attribute grammars in a knowledge based way

  • Peter Forbrig
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 545)


The principles of the program generation environment FLR, which has been implemented at our department, are described. The system supports the reuse of already developed specifications of various kinds and was motivated by the idea to use the source text of already running programs again. This knowledge of parts of programs or documents, which were specified already, is stored as attributed grammar rules in a database. New documents can be composed in an interactive way using this database. It is demonstrated to use FLR to generate programs and Attribute Grammars.


Lexical Item Source Text Semantic Action Grammar Rule Control String 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. [Chr 88]
    Christiansen, H.: The syntax and semantics of extensible languages, Datalogske Skrifter, Roskilde, No. 14, 1988.Google Scholar
  2. [Der 88]
    Deransart, P.; Maluszynsk, J.: Relating Logic Programs and Attribute Grammars, Journal of Logic Programming, 2(2), 1985.Google Scholar
  3. [Fed 90]
    Fedele, C.; Lecarme, L.: Computer — aided building of compiler: an example, in: Proc. of Compiler Compiler, Schwerin, 1990.Google Scholar
  4. [For 89]
    Forbrig, P.; Lämmel, U.: Knowledge Based Program Generation Using Attributed Grammars, in: Proc. bit'89, Berlin, 1989.Google Scholar
  5. [For 91]
    Forbrig, P.: Ein Konzept zur Wiederverwendung von Dokumenten der Strukturierten Analyse, in: Proc. Requirement Engineering'91, Marburg, 1991.Google Scholar
  6. [Hry 87]
    Hrycej, T.: A knowledge-based problem-specific program generator, SIGPLAN Notices, 11(2)1987, p. 53.61.Google Scholar
  7. [Knu 71]
    Knuth, D.: Semantics of context-free languages, Mathematical systems Theorie, 2(1)1968, p. 127–145.CrossRefGoogle Scholar
  8. [Lev 90]
    Levision, M.; Lessand, G.: Application of Attribute Grammars to Natural Language Sentence Generation, Lecture Notes in Computer Science, Vol. 461, p. 298–312.Google Scholar
  9. [Rie 87]
    Riedewald, G.; Forbrig, P.: Software Specification and Attribute Grammars, Acta Cybernetica, 8(1)1987, p. 89–114.Google Scholar
  10. [Rie 91]
    Riedewald, G.: Prototyping by using an Attribute Grammar as a Logic Program, in this volume.Google Scholar
  11. [War 80]
    Warren, D.: Logic Programming and Compiler Writing, Software Practice and Experience, vol. 10, 1980.Google Scholar
  12. [Wat 83]
    Watt, D. A.; Madson, O. L.: Extended Attribute Grammars, The Computer Journal, 16(2)1983.Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1991

Authors and Affiliations

  • Peter Forbrig
    • 1
  1. 1.Fachbereich InformatikUniversität RostockRostock

Personalised recommendations