skip to main content
article
Free Access

On the Correctness of Semantic-Syntax-Directed Translations

Published:01 April 1980Publication History
Skip Abstract Section

Abstract

The correctness of semantic-syntax-directed translators (SSDTs) is examined. SSDTs are a generalization of syntax-directed translators in which semantic information is employed to partially direct the translator. Sufficient conditions for an SSDT to be “semantic-preserving,” or “correct,” are presented. A further result shows that unless certain conditions are met, it is undecidable, in general, whether an SSDT is semantic-preserving.

References

  1. 1 AHO, A V, AND ULLMAN, J D.Properties of syntax-directed translations J Comptr Syst Sct 3, 3 (1969), 319-334Google ScholarGoogle Scholar
  2. 2 BENSON, D Semantic-preserving translations Math Syst. Theory 8, 2 (1974), 105-126Google ScholarGoogle Scholar
  3. 3 BUTTELMANN, H W Semanuc-dlrected translation Amer ~ of Computational Lmgmstics 2, Microfiche 7 (Nov 1974)Google ScholarGoogle Scholar
  4. 4 CHOMSKY, N.SyntacUc Structures Mouton, The Hague, Netherlands, 1957Google ScholarGoogle Scholar
  5. 5 DIJKSTR^, E W A D~sclphne of Programming Prentice-Hall, Englewood Cliffs, N J, 1976Google ScholarGoogle Scholar
  6. 6 FLOYD, R W Assigning meanings to programs Proc Symp Applied Math 19, Providence, R I, 1967, pp 19-32Google ScholarGoogle Scholar
  7. 7 HoAR~., C A R Consistent and complementary formal theories of the semantics of programming languages Acta lnformatzca 3 (1974), 135-163Google ScholarGoogle Scholar
  8. 8 HOPCROFT, J E, AND ULLMAN, j.D Formal Languages and Thew Relatton to Automata. Addision-Wesley, Reading, Mass, 1969 Google ScholarGoogle Scholar
  9. 9 JAZAYERI, M, OGDEN, W F, AND ROUNDS, W C The mtrmslcally exponential complexity of the circularity problem for attnbute grammars Comm ACM 18, 12 (Dec 1975), 697-706 Google ScholarGoogle Scholar
  10. 10 KING, J.C Proving programs to be correct IEEE Trans Comptr C-20, 11 (Nov 1971), 1331-1336Google ScholarGoogle Scholar
  11. 11 KNUTH, D.E. Semantics of context-free languages. Math. Syst. Theory 2, 2 (1968).Google ScholarGoogle Scholar
  12. 12 KNUTH, D E Examples of formal semantics Lecture Notes m Math 188 (197 I)Google ScholarGoogle Scholar
  13. 13 KRISHNASWAMY, R AND BUTTELMANN, H W Formal methodology of translation Inform and Control 39, 3 (Dec 1978), Pt, I, 247-271, Pt. II, 272-293Google ScholarGoogle Scholar
  14. 14 LUCAS, P, LAUER, P, AND STIGLEITNER, H Method and notton for the formal definition of programming languages Tech Rep TR25 087, IBM Vienna Laboratory, Vienna, Austria, 1968Google ScholarGoogle Scholar
  15. 15 PYSTER, A B, AND BUTTELMANN, H W Semantic-syntax-directed translation inform and Control 36, 3 (Mar 1978), 320--361.Google ScholarGoogle Scholar
  16. 16 SCOTT, D, AND STRACHEY, C Towards a mathematical semantics for computer languages Tech Rep PRG-6, Programming Research Group, Oxford U, Oxford, England, 1971Google ScholarGoogle Scholar
  17. 17 WEGBREIT, B. The synthesis of loop predicates. Comm A CM 17, 2 (Feb 1974), 102-112 Google ScholarGoogle Scholar

Index Terms

  1. On the Correctness of Semantic-Syntax-Directed Translations

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in

        Full Access

        • Published in

          cover image Journal of the ACM
          Journal of the ACM  Volume 27, Issue 2
          April 1980
          196 pages
          ISSN:0004-5411
          EISSN:1557-735X
          DOI:10.1145/322186
          Issue’s Table of Contents

          Copyright © 1980 ACM

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 1 April 1980
          Published in jacm Volume 27, Issue 2

          Permissions

          Request permissions about this article.

          Request Permissions

          Check for updates

          Qualifiers

          • article

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader