Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/327559.327620acmconferencesArticle/Chapter ViewAbstractPublication PagesaplConference Proceedingsconference-collections
Article
Free access

Writing a compilers compiler in APL

Published: 27 July 1998 Publication History

Abstract

This paper describes the special capabilities of APL2 for the construction of compilers and translator writing systems (TWS). To that purpose, a TWS has been written in APL2, which takes as input a complete description of a language including an attribute grammar, in extended Backus normal form, and the semantic function associated to each rule of the grammar, written in APL2. The output of the TWS is a compiler, generated directly inside the workspace and ready to compile source code written in the provided language.

References

[1]
LEVINE, T. MASON, D. ROWN: lexx & yacc (2nd Edition), O'Reilly & Associates, Inc., 1992
[2]
M. E. LESK: Lex - A Lexical Analyzer Generator, Comp. Sci. Tech. Rep. No. 39. Bell Laboratories, 1975.
[3]
C. JOHNSON: Yacc - Yet Another Compiler-Compiler, Comp. Sci. Tech. Rep. No. 32. Bell Laboratories, 1975.
[4]
C. N. FISCHER, R. J. LEBLANC JR.: Crafting a Compiler with C, Benjamin/Cummings, Redwood City, 1991.
[5]
A. V. AHO, R. SETHI, J. D. ULLMAN: Compilers: Principles, Techniques and Tools, Addison-Wesley Publishing Company, Reading, MA, 1986.
[6]
P. LINZ: An Introduction to Formal Languages and Automata, D. C. Heath & Co, Lexington, 1990.
[7]
G. V. BOCHMANN, Semantic evaluation from left to right, Comm. ACM 19:2, p.55-62, 1976.
[8]
M. MARCOTTY, H.F. LEDGARD, G. V. BOCHMANN, A Sampler of Formal Definitions, Computer Surveys, 8.2, p.191-276, 1976.

Index Terms

  1. Writing a compilers compiler in APL

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    APL '98: Proceedings of the APL98 conference on Array Processing Languages
    July 1998
    247 pages
    ISBN:158113181X
    DOI:10.1145/327559

    Sponsors

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 27 July 1998

    Permissions

    Request permissions for this article.

    Check for updates

    Qualifiers

    • Article

    Conference

    APL98
    Sponsor:
    • SIGAPL
    • Italian Chapter of SIGApl
    APL98: New Gems from Old Roots
    August 27 - 31, 1998
    Rome, Italy

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • 0
      Total Citations
    • 462
      Total Downloads
    • Downloads (Last 12 months)57
    • Downloads (Last 6 weeks)11
    Reflects downloads up to 08 Feb 2025

    Other Metrics

    Citations

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Login options

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media