skip to main content
article
Free Access

Generating parsers for affix grammars

Published:01 August 1972Publication History
Skip Abstract Section

Abstract

Affix grammars are two-level grammars which are similar to van Wijngaarden's two-level grammars used in the definition of Algol 68. Affix grammars are shown by Koster to be equal in power to van Wijngaarden grammars. They are much more suited to parsing than are the latter, however. Koster, the inventor of affix grammars, suggests a top-down scheme for parsing them, based on recursive procedures. This paper presents a bottom-up scheme for parsing them, based on an extension of Floyd Production Language (FPL). Included is an algorithm, similar to that of DeRemer's, for converting a large class of affix grammars into FPL. The paper concludes by discussing briefly the applicabilities of the conversion algorithm and affix grammars in general, and some possible extensions to Koster's definition of affix grammars.

References

  1. 1 DeRemer, F.L. Generating parsers for BNF grammars. Proc. AFIPS 1969 SJCC, Vol. 34, AFIPS Press, Montvale, N.J., pp. 795-799.Google ScholarGoogle Scholar
  2. 2 Floyd, R. A descriptive language for symbol manipulation. J. ACM 8, 4 (Oct. 1961), 579-584. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3 Koster, C.H.A. Affix grammars. In ALGOL 68 Implementation, North-Holland Pub. Co., Amsterdam, 1971, p. 95.Google ScholarGoogle Scholar
  4. 4 Koster, C.H.A. Two-level Grammars. Seminar on Automata and Mathematical Linguistics, Mathematisch Instituut, Budapest, May 1970.Google ScholarGoogle Scholar
  5. 5 Koster, C.H.A. Syntax-directed parsing of ALGOL 68 programs. Proc. Informal Conf. on ALGOL 68 Implementation, U. of British Columbia, Vancouver, Aug. 1969.Google ScholarGoogle Scholar

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 Communications of the ACM
    Communications of the ACM  Volume 15, Issue 8
    Aug. 1972
    63 pages
    ISSN:0001-0782
    EISSN:1557-7317
    DOI:10.1145/361532
    Issue’s Table of Contents

    Copyright © 1972 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: 1 August 1972

    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