Abstract
Incremental parsing is widely used in language-based editors and incremental compilation and interpretive environments. Reparsing of modified input strings is the most frequently performed operation in these environments and its efficiency can greatly affect the success of such environments. This paper describes the introduction of nonterminals as lookahead symbols into an LL parse table to support minimal LL reparsing. This enhancement is then used to produce an efficient incremental LL parser.
Preview
Unable to display preview. Download preview PDF.
References
Aho, A., Sethi, R. and Ullman, J, Compilers: Principles, Techniques, and Tools, Addison-Wesley Publishing Company, 1986.
Aho, A. and Ullman, J., The Theory of Parsing, Translation and Compiling, Vol. 1 and 2, Prentice-Hall, Englewood Cliffs, NJ, 1972 and 1973.
Aho, A. and Ullman, J, Principles of Compiler Design, Addison-Wesley Publishing Company, 1979.
Fischer, C. and LeBlanc, R., Crafting A Compiler The Benjamin/Cummings Publishing Company, 1988.
Delisle, N., Schwartz, M., and Begwani, V., “Incremental compilation in magpie”, Proceedings of the ACM SIGPLAN'84 Symposium on Compiler Construction, SIG-PLAN Notices, Vol. 19, No. 6, p122–130, 1982.
Grune, D. and Jacobs, C., “A Programmer-Friendly LL(1) Parser Generator”, Software-Practice and Experience, Vol. 18, No. 1, pp29–38, January 1988.
Holub, A., Compiler Design in C, Prentice-Hall International, 1990.
Jalili, F. and Gallier, J., “Building Friendly Parsers”, Proceedings of the Ninth ACM Symposium on Principles of Programming Languages, 1982.
Murching, A., Parsad, Y., and Srikant, Y., “Incremental recursive descent parsing”, Computer Languages Vol. 15, No. 4, p193–204, 1990.
Yang, W., “An incremental LL(1) parsing algorithm”, Information Processing Letters Vol. 48 (1993) 67–72.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1995 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Li, W.X. (1995). A simple and efficient incremental LL(1) parsing. In: Bartosek, M., Staudek, J., Wiedermann, J. (eds) SOFSEM '95: Theory and Practice of Informatics. SOFSEM 1995. Lecture Notes in Computer Science, vol 1012. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60609-2_24
Download citation
DOI: https://doi.org/10.1007/3-540-60609-2_24
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-60609-3
Online ISBN: 978-3-540-48463-9
eBook Packages: Springer Book Archive