Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Syntax macros and extended translation

Published: 01 November 1966 Publication History
  • Get Citation Alerts
  • Abstract

    A translation approach is described which allows one to extend the syntax and semantics of a given high-level base language by the use of a new formalism called a syntax-macro. Syntax-macros define string transformations based on syntactic elements of the base language. Two types of macros are discussed, and examples are given of their use. The conditional generation of macros based on options and alternatives recognized by the scan are also described.

    References

    [1]
    Revised report on the algorithmic language ALGOL 60. Comm. ACM 6 (Jan. 1963), 1-17.
    [2]
    WIRTH, N. A generalization of ALGOL. Comm. ACM 6 (Sept. 1963), 547-554.
    [3]
    IBM Operating System/360. PL/I : language specifications. Form C28-6571, IBM Corp., 1966.
    [4]
    MCILROY, M. DOUALAS. Macro extensions of compiler languages. Comm. ACM 3 (Apr. 1960), 214-220.
    [5]
    FERGUSON, DAVID E. The evolution of the meta-assembly program. Comm. ACM 9 (March 1966), 190-193.
    [6]
    CHOMSKY, NOAM, AND MILLER, GEORGE A. Introduction to the formal analysis of natural languages. Handbook of Mathematical Psychology, Vol. II . John Wiley, New York, 1963, pp. 283-306.
    [7]
    SCHORRE, D.V. Meta II. A syntax oriented compiler writing language. Proc. ACM 19th Nat. Conf., Philadelphia, Pa., Aug. 1964, ACM Publ. P-64.
    [8]
    CONWAY, MELVIN E. Design of a separable transition-diagram compiler. Comm. ACM 6 (July 1963), 396-408.

    Cited By

    View all
    • (2023)Rhombus: A New Spin on Macros without All the ParenthesesProceedings of the ACM on Programming Languages10.1145/36228187:OOPSLA2(574-603)Online publication date: 16-Oct-2023
    • (2020)Adding a syntax macro facility to iGenJournal of Computing Sciences in Colleges10.5555/3417682.341768835:9(52-59)Online publication date: 1-Apr-2020
    • (2020)Hygienic macro technologyProceedings of the ACM on Programming Languages10.1145/33863304:HOPL(1-110)Online publication date: 12-Jun-2020
    • Show More Cited By

    Index Terms

    1. Syntax macros and extended translation
      Index terms have been assigned to the content through auto-classification.

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

      cover image Communications of the ACM
      Communications of the ACM  Volume 9, Issue 11
      Nov. 1966
      44 pages
      ISSN:0001-0782
      EISSN:1557-7317
      DOI:10.1145/365876
      Issue’s Table of Contents
      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: 01 November 1966
      Published in CACM Volume 9, Issue 11

      Permissions

      Request permissions for this article.

      Check for updates

      Qualifiers

      • Article

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • Downloads (Last 12 months)795
      • Downloads (Last 6 weeks)61
      Reflects downloads up to 11 Aug 2024

      Other Metrics

      Citations

      Cited By

      View all
      • (2023)Rhombus: A New Spin on Macros without All the ParenthesesProceedings of the ACM on Programming Languages10.1145/36228187:OOPSLA2(574-603)Online publication date: 16-Oct-2023
      • (2020)Adding a syntax macro facility to iGenJournal of Computing Sciences in Colleges10.5555/3417682.341768835:9(52-59)Online publication date: 1-Apr-2020
      • (2020)Hygienic macro technologyProceedings of the ACM on Programming Languages10.1145/33863304:HOPL(1-110)Online publication date: 12-Jun-2020
      • (2019)Understanding and Analyzing Java ReflectionACM Transactions on Software Engineering and Methodology10.1145/329573928:2(1-50)Online publication date: 26-Feb-2019
      • (2014)Variability in artifact-centric process modelingProceedings of the Tenth Asia-Pacific Conference on Conceptual Modelling - Volume 15410.5555/2667691.2667695(29-38)Online publication date: 20-Jan-2014
      • (2014)Hygienic Macro System for JavaScript and Its Light-weight Implementation FrameworkProceedings of ILC 2014 on 8th International Lisp Conference10.1145/2635648.2635653(12-21)Online publication date: 14-Aug-2014
      • (2014)Attribute grammar macrosScience of Computer Programming10.1016/j.scico.2014.01.01496:P2(211-229)Online publication date: 15-Dec-2014
      • (2013)First Class Syntax, Semantics, and Their CompositionProceedings of the 25th symposium on Implementation and Application of Functional Languages10.1145/2620678.2620686(73-84)Online publication date: 28-Aug-2013
      • (2012)Attribute grammar macrosProceedings of the 16th Brazilian conference on Programming Languages10.1007/978-3-642-33182-4_12(150-164)Online publication date: 23-Sep-2012
      • (2011)A step towards transparent integration of input-consciousness into dynamic program optimizationsACM SIGPLAN Notices10.1145/2076021.204810346:10(445-462)Online publication date: 22-Oct-2011
      • Show More Cited By

      View Options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Get Access

      Login options

      Full Access

      Media

      Figures

      Other

      Tables

      Share

      Share

      Share this Publication link

      Share on social media