Skip to main content
Log in

On incremental shift-reduce parsing

  • Part I Computer Science
  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

Abstract

A method is described to augment an ordinary shift-reduce parser into an incremental one. To parse a modified input, the resulting incremental parser requires about 3(n+m) space and runs in time roughly proportional tom, wheren is the length of the original input andm is the size of the modification made.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. A. V. Aho and J. D. Ullman,Theory of Parsing, Translation and Compiling. Vol. 1 – 2, Englewood Cliffs, N.J., Prentice Hall (1972–1973).

    Google Scholar 

  2. A. Celentano,Incremental LR parsing. Acta Informatica 10 (1980), 307–321.

    Google Scholar 

  3. R. S. Glanville and L. S. Graham,A new method for compiler code generation. Conference record of the fifth annual ACM symposium on principles of programming languages, January 1978.

  4. C. Ghezzi and D. Mandrioli,Incremental parsing. ACM trans. on Prog. Lang. and Systems, Vol. 1, No. 1 (July 1979), 58–70.

    Article  Google Scholar 

  5. C. Ghezzi and D. Mandrioli,Augmenting parsers to support incrementality, J. ACM, Vol. 27, No. 3 (July 1980), 564–579.

    Article  Google Scholar 

  6. D. S. Yeh,On construction of incremental LR parsers (forthcoming).

  7. D. S. Yeh,On an incremental code generation method based on the Glanville-Graham scheme, (forthcoming).

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Yeh, D. On incremental shift-reduce parsing. BIT 23, 36–48 (1983). https://doi.org/10.1007/BF01937324

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01937324

Keywords and phrases

Navigation