skip to main content
10.1145/73141.74830acmconferencesArticle/Chapter ViewAbstractPublication PagespldiConference Proceedingsconference-collections
Article
Free Access

Higher order attribute grammars

Authors Info & Claims
Published:21 June 1989Publication History

ABSTRACT

A new kind of attribute grammars, called higher order attribute grammars, is defined. In higher order attribute grammars the structure tree can be expanded as a result of attribute computation. A structure tree may be stored in an attribute. The term higher order is used because of the analogy with higher order functions, where a function can be the result or parameter of another function. A relatively simple method, using OAGs, is described to derive an evaluation order on the defining attribute occurrences which comprises all possible direct and indirect attribute dependencies. As in OAGs, visit-sequences are computed from which an efficient algorithm for attribute evaluation can be derived.

References

  1. Jazayeri 1975.M. Jazayeri, W.F. Ogden, W.C. Rounds. The intrinsically exponential complexity of the circularity problem for attributed grammars. In CACM 18, pages 679-706, 1975. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Kastens, Hutt, Zimmerman 81.U. Kastens, B. Hutt, and E. Zimmerman. GAG: A Practical Compiler Generator. Springer, 1982.Google ScholarGoogle Scholar
  3. Ganzinger, Giegerich 84.H. Ganzinger and R. Giegerich. Attribute Coupled Grammars Sigplan Notices Vol. 19, No. 6, pages 157-170, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Kastens 80.U. Kastens. Ordered Attributed Grammars. Acta Informatica, 13, pages 229-256, 1980.Google ScholarGoogle Scholar
  5. Knuth 1968.D.E. Knuth. Semantics of context-free languages. Math. Syst. Theory, 2(2):127-145, 1968.Google ScholarGoogle ScholarCross RefCross Ref
  6. Knuth 1971.D.E. Knuth. Semantics of context-free languages (correction). Math. Syst. Theory, 5(1):95-96, 1971.Google ScholarGoogle ScholarCross RefCross Ref
  7. Reps 1982.T. Reps. Generating language based environments, Tech. Rep, 82-514 and Ph.D dissertation, Dept. of Computer Science, Cot'nell Univ., Ithaca, N.Y., Aug. 1982. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Reps, Teitelbaum and Demers 1983.T. Reps, T. Teitelbaum and A. Demers. Incremental Context-Dependent Analysis for Language Based Editors. In ACM Transactions on Progr. Lang. and Systems, Vol. 5, No. 3, pages 449-477, July 1983. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Reps and Teitelbaum 1987.Reps, T. and Teitelbaum, T. The Synthesizer Generator Reference Manual. Cornell University, July, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Waite and Goos 84.W.M. Waite and G.Goos. Compiler Construction. Springer, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Higher order attribute grammars

          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
          • Published in

            cover image ACM Conferences
            PLDI '89: Proceedings of the ACM SIGPLAN 1989 conference on Programming language design and implementation
            June 1989
            355 pages
            ISBN:089791306X
            DOI:10.1145/73141
            • cover image ACM SIGPLAN Notices
              ACM SIGPLAN Notices  Volume 24, Issue 7
              Proceedings of the SIGPLAN '89 symposium on Interpreters and interpretive techniques
              July 1989
              355 pages
              ISSN:0362-1340
              EISSN:1558-1160
              DOI:10.1145/74818
              Issue’s Table of Contents

            Copyright © 1989 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 21 June 1989

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • Article

            Acceptance Rates

            Overall Acceptance Rate406of2,067submissions,20%

            Upcoming Conference

            PLDI '24

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader