skip to main content
article
Free Access

Macro processing in high-level languages

Published:01 November 1992Publication History
Skip Abstract Section

Abstract

A macro language is proposed. It enables macro processing in high-level programming languages. Macro definitions in this language refer to the grammars of the respective programming languages. These macros introduce new constructs in programming languages. It is described how to automatically generate macro processors from macro definitions and programming language grammars written in the lex-yacc format. Examples of extending high-level languages by means of macros are given.

References

  1. [1] Aho, A.V., Sethi, R., Ullman, J.D., Compilers. Principles, Techniques, and Tools, Addison-Wesley Publ. Co., 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. [2] American National Standard for Information Systems, Programming Language C, ANSI X3.159-1989, American National Standard Institute, Inc., NY 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. [3] Barendregt, H.P., The Lambda Calculus: Its Syntax and Semantics, Elsevier, 1981.Google ScholarGoogle Scholar
  4. [4] Barnes, J.G.P., Programming in Ada plus Language Reference Manual, Addison-Wesley Publ. Co., 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. [5] Boyle, J.M., Abstract Programming and Program Transformations - An Approach to Reusing Programs, Software Reusability, v. 1, Addison-Wesley Publ. Co., 1989, 361-413. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. [6] Charniak, E., Riesbeck, C.K., McDermott, D.V., Meehan, J.R., Artificial Intelligence Programming, Lawrence Erlbaum Associates, 1987. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. [7] Donnelly, C., Stallman, R., Bison Reference Manual, Free Software Foundation, 1988.Google ScholarGoogle Scholar
  8. [8] Ellis, M., Stroustrup, B., The Annotated C++ Reference Manual, Addison-Wesley Publ. Co., 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. [9] Grosch, J., Generators for High-Speed Front Ends, Lecture Notes in Computer Science, v. 371, 1989, 81-92. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. [10] High C Language Extensions Manual, MetaWare Inc., 1990.Google ScholarGoogle Scholar
  11. [11] Jensen, K., Wirth, N., Pascal User Manual and Report, Springer-Verlag, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. [12] Johnson, S.C., Yacc - Yet Another Compiler-Compiler, AT&T Bell Laboratories, 1975.Google ScholarGoogle Scholar
  13. [13] Kuuluvainen, I., Vanttinen, M., Koskinen, P., The Action-State Diagram: A Compact Finite State Machine Representation for User Interfaces and Small Embedded Reactive Systems, IEEE Transactions on Consumer Electronics, v. 37, 1991, #3, 651-658.Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. [14] Lesk, M.E., Schmidt, E., Lex - A Lexical Analyzer Generator, AT&T Bell Laboratories, 1975.Google ScholarGoogle Scholar
  15. [15] Mason, T., Brown, D., lex & yacc, O'Reilly & Associates, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. [16] MetaTool Specification-Driven-Tool Builder, User Manual, AT&T, 1990.Google ScholarGoogle Scholar
  17. [17] Mischel, J., Dusting off COBOL, Computer Language, v. 8, 1991, #11, 41-46.Google ScholarGoogle Scholar
  18. [18] Park, J.C.H., y+: A Yacc Preprocessor for Certain Semantic Actions, SIGPLAN Notices, v. 23 (1988), #6, 97- 106. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. [19] Paxson, V., Flex - Manual Pages, 1990.Google ScholarGoogle Scholar
  20. [20] Steele, G., Common Lisp: The Language, Digital Press, 1984. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. [21] UNIX Programmer's Manual, AT&T Bell Laboratories, 1983.Google ScholarGoogle Scholar

Index Terms

  1. Macro processing in high-level languages

      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 ACM SIGPLAN Notices
        ACM SIGPLAN Notices  Volume 27, Issue 11
        Nov. 1992
        86 pages
        ISSN:0362-1340
        EISSN:1558-1160
        DOI:10.1145/141018
        Issue’s Table of Contents

        Copyright © 1992 Author

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 1 November 1992

        Check for updates

        Qualifiers

        • article
      • Article Metrics

        • Downloads (Last 12 months)101
        • Downloads (Last 6 weeks)13

        Other Metrics

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader