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

Automatic construction of incremental LR(1)—parsers

Published: 01 March 1988 Publication History
  • Get Citation Alerts
  • Abstract

    An effective method is presented for automatic construction of incremental LR(1) parsers. The resulting parsers allow multiple modifications of the original input as well as epsilon productions in the underlying LR(1) grammar. For parsing a modified input, their space require ment depends linear on the length of the input and their runtime is proportional to the total size of the modifications. The method has been implemented for experimental purposes.

    References

    [1]
    {1} A.V. Aho and J.D. Ullman: The Theory of Parsing, Translation, and Compiling, Vols. 1 & 2, Prentice-Hall, 1972 & 1973.
    [2]
    {2} R. Agrawal and K.D. Detro: An Efficient Incremental LR Parser for Grammars with Epsilon Productions, Acta Informatica Vol. 19 (1983), pp. 369-376.
    [3]
    {3} G. Bran et al: The token-oriented approach to program editing, SIGPLAN NOTICES Vol. 20, NO. 2(Feb. 1985), pp. 17-20.
    [4]
    {4} A. Celentano: Incremental LR Parsing, Acta Informatica, Vol. 10 (1978), pp. 307-321.
    [5]
    {5} P. Dencker: Ein Neues LALR System, Diplomarbeit, Institut fuer Informatik, Universitaet Karlsruhe, 1977.
    [6]
    {6} C. Ghezzi and D. Mandrioli: Incremental Parsing, ACM Transaction on Programming Languages and Systems, Vol. 1, No. 1 (1979), pp. 58-70.
    [7]
    {7} C. Ghezzi and D. Mandrioli: Augmenting Parsers to Support the Incrementality, Journal of ACM, Vol. 27, No. 3 (1980), pp. 564-579.
    [8]
    {8} F. Jalili and J.H. Gallier: Building Friendly Parsers, Conference Record of the 9-th ACM Symposium on Principles of Programming Languages (January 1982), pp. 196-206.
    [9]
    {9} G. Kaiser and E. Kant: Incremental Expression Parsing for Syntax-Directed Editors, Report CMU-CS-82-141, Carnegie-Mellon University, 1982.
    [10]
    {10} U. Kastens, B. Huett and E. Zimmerman: GAG: A Practical Compiler Generator, Lecture Notes on Computer Science 141, Springer Verlag, 1982.
    [11]
    {11} U. Kastens: Ordered Attribute Grammars, Acta Informatica, Vol. 12(1980), pp. 229-256.
    [12]
    {12} J. Morris and M. Schwartz: The Design of a Language-Directed Editor for Block-Structured Languages, Proceedings of the ACM SIGPLAN-SIGOA Symposium on Text Manipulation. (June 1981), pp. 28-33.
    [13]
    {13} M. Wegman: Parsing for Structural Editors, The 21-st Annual Symposium on Foundation of Computer Science, (1980), pp. 320-327.
    [14]
    {14} D. Yeh: On Incremental Shift-Reduce Parsing, BIT 23:1(1983), pp. 36-48.
    [15]
    {15} D. Yeh: Incremental Syntactic and Semantic Analysis of Modified Programs, Thesis approved at Division of Computer Science, The Norwegian Institute of Technology, Trondheim, Norway, December 1983.
    [16]
    {16} D. Yeh and U. Kastens: A Time-Efficient Incremental Evaluation Algorithm for Ordered Attribute Grammars (to be published).

    Cited By

    View all

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM SIGPLAN Notices
    ACM SIGPLAN Notices  Volume 23, Issue 3
    March 1988
    103 pages
    ISSN:0362-1340
    EISSN:1558-1160
    DOI:10.1145/43895
    Issue’s Table of Contents

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 01 March 1988
    Published in SIGPLAN Volume 23, Issue 3

    Check for updates

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)68
    • Downloads (Last 6 weeks)3
    Reflects downloads up to 11 Aug 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