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

Alex—A Simple and Efficient Scanner Generator

Published: 01 May 1986 Publication History

Abstract

Alex is a scanner generator which translates the lexical description of a programming language into a scanner for that language. The scanner description language is easy to use, as it is intentionally small and simple. Alex as well as the generated scanners are written in Modula-2 and implemented on several microcomputers. The scanner generator may be used in conjunction with a compiler-compiler. As an example we show how to describe the lexical structure of Modula-2 with our tool. The scanner generated from that description is only about 20 percent slower than a hand-coded scanner.

References

[1]
Aho77 Aho A.V., Ullman J.D.: Principles of Compiler Design. Addison-Wesley, 1977.
[2]
Blaschek85 Blaschek G.: Statische Programmanalyse. Elektronische Rechenanlagen, Heft 2, 1985 (in German).
[3]
DeRemer74 DeRemer F.L.: Lexical Analysis. In Bauer F.L., Eickel J.: Compiler Construction - An Advanced Course, Springer, 1974.
[4]
Giegerich79 Giegerich R.: Introduction to the Compiler Generating System MUG2. TU München, TUM-INFO 7913, 1979.
[5]
Johnson75 Johnson S.C.: Yacc - Yet Another Compiler-Compiler. Techn. Rep. Nr. 32, Bell Laboratories, Murray Hill, NJ, 1975.
[6]
Lesk75 Lesk M.E.: Lex - A Lexical Analyzer Generator. Techn. Rep. Nr. 39, Bell Laboratories, Murray Hill, NJ, 1975.
[7]
Nurmi82 Nurmi O., Sarjakoski M., Sippu S.: System HLP84 - A Tool for Compiler Writing. Manuscript, Department of Computer Science, University of Helsinki, 1982.
[8]
Rechenberg85 Rechenberg P., Mössenböck H.: Ein Compiler-Generator für Mikrocomputer. Hanser, 1985 (in German).
[9]
Wirth81 Wirth N.: The Personal Computer Lilith. Institut für Informatik, ETH Zürich, Report 40, 1981.
[10]
Wirth85 Wirth N.: Programming in Modula-2. Third, corrected edition, Springer, 1985.

Cited By

View all

Index Terms

  1. Alex—A Simple and Efficient Scanner Generator
    Index terms have been assigned to the content through auto-classification.

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM SIGPLAN Notices
    ACM SIGPLAN Notices  Volume 21, Issue 5
    May 1986
    57 pages
    ISSN:0362-1340
    EISSN:1558-1160
    DOI:10.1145/14947
    Issue’s Table of Contents

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 01 May 1986
    Published in SIGPLAN Volume 21, Issue 5

    Check for updates

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)26
    • Downloads (Last 6 weeks)9
    Reflects downloads up to 12 Sep 2024

    Other Metrics

    Citations

    Cited By

    View all

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Get Access

    Login options

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media