Skip to main content

Two-Level Grammar Translations

  • Conference paper
GI — 9. Jahrestagung

Part of the book series: Informatik-Fachberichte ((INFORMATIK,volume 19))

  • 61 Accesses

Abstract

Similar to the Attributed Translations of Lewis, Rosenkrantz, and Sterns, pairs of Two-level Grammars (G,G’) may be specified which allow a translation of a word x ∈ L (G) into a word y ∈ L(G’) using the well-known method of Syntax Directed Translations. Here we concentrate on introducing the idea and illustrating its use in a sample translation of ASPLE, a programming language example by Cleaveland and Uzgalis. In addition, we advocate a method of designing such a translation top-down by means of context-free skeleton translations.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Cleaveland, J.C., Uzgalis, R.: Grammars for Programming Languages, North-Holland, 1977

    MATH  Google Scholar 

  2. Dembiński, P., Maluszyński, J.: Attribute grammars and two-level grammars; a unifying approach, MFCS 1978, Zakopane, LNCS 64, 143–154 (1978).

    Google Scholar 

  3. —: Two-rlevel grammars: CF-Grammars withequation schemes, ICALP 79, Graz, LNCS Springer (to appear).

    Google Scholar 

  4. Deussen, P.: A Decidability Criterion for van Wijngaarden Grammars, Acta Informatica 5, 353–375 (1975)

    Article  MathSciNet  MATH  Google Scholar 

  5. Deussen, P., Mehlhorn, K.: Van Wijngaarden Grammars and Space Complexity Class EXSPACE, Acta Informatica 8, 193–199 (1977)

    Article  MathSciNet  MATH  Google Scholar 

  6. Deussen, P., Wegner, L.: A Bibliographie of van Wijngaarden Grammars, Bulletin of the European Ass. for Theoretical Computer Science (EATCS), No. 6, 1978

    Google Scholar 

  7. Jungkind, G.: Geklammerte zweischichtige Grammatiken, Master’s Thesis, Institut für Angewandte Informatik und Formale Beschreibungsverfahren, Universität Karlsruhe, Oktober 1978

    Google Scholar 

  8. Krämer, B.: ECDL — eine Compiler Implementierungssprache auf der Basis zweischichtiger Grammatiken, Fachgespräch Compiler — Compiler, GI-78 Berlin, 1978 (Hrsg: W. Henhapl).

    Google Scholar 

  9. Lewis, P.M. and Stearns, R.E.: Syntax — directed translations, Journal of the ACM 15 (1968), 271–281.

    Article  Google Scholar 

  10. Marcotty, M., Ledgard, H.F., Bochmann, G.V.: A Sampler of Formal Definitions, Computing Surveys, 8/2 (1976)

    Google Scholar 

  11. Wegner, L.: Analysis of Two-Level Grammars, Ph.D. thesis, Stuttgart: Hochschul-Verlag 1977

    Google Scholar 

  12. —: Bracketed Two-level Grammars — A Decidable and Practical Approach to Language Definitions, ICALP 79, Graz, LNCS Springer (to appcar)

    Google Scholar 

  13. Wjjngaarden, A. van, et al. (eds.): Revised Report on the Algorithmic Language ALGOL 68, Berlin-Heidelberg-New York: Springer 1976

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1979 Springer-Verlag Berlin · Heidelberg

About this paper

Cite this paper

Wegner, L. (1979). Two-Level Grammar Translations. In: Böhling, K.H., Spies, P.P. (eds) GI — 9. Jahrestagung. Informatik-Fachberichte, vol 19. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-67444-0_16

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-67444-0_16

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-09664-1

  • Online ISBN: 978-3-642-67444-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics