Abstract
A simple solution to the incremental parsing problem is found by mapping sentential forms of a context-free grammar G over terminal strings of the placeholder language and then subtree forests, i.e. sequences of syntax sub-trees, over sequences of pairs (placeholdertoken, subtree-pointer). Parsing such sequences-of-pairs/ placeholder-strings is equivalent to parsing and therefore to embedding sub-tree-forests into a global syntax tree. Using this placeholder-for-tree techmnique we may easily implement several incremental bottom-up parsing policies by reusing standard (batch) parsers, such as those generated by Yacc, or any LARL or LR(k) parser.
Preview
Unable to display preview. Download preview PDF.
References
Barioglio, M., Capella, G., Lupo, I., and Petrone, L. Software Productivity Tools for Program Design, Implementation, Documentation. Proc.s of the 1986 IFIP Congress. Elsevier Publ. (North-Holland), IFIP 1986, 909–914.
Bergadano, E. Parsificazione incrementale negli Editor Strutturati. Dip. Informatica, Universita' di Torino (1993)
Degano, P., Mannucci, S., and Mojana, B. Efficient Incremental LR Parsing for Syntax-Directed Editors. ACM Trans. Prog. Lang. Syst. 10, (July 1988), 345–373.
Donzeau-Gouge, V., Huet, G., Kahn, G, and Lang, B. Programming Environments based on Structured Editors: the MENTOR Experience. Workshop on Programm. Environments, Ridgefield, CT (1980).
Ghezzi, C., and Mandrioli, D. Incremental Parsing. ACM Trans. Prog. Lang. Syst. 1, (July 1979), 56–71.
Ghezzi, C., and Mandrioli, D. Augmenting Parsers to Support Incrementality Journal of the ACM (July I980), 564–579.
Medina Mora, R., and Feiler, P. An Incremental Programming Environment. IEEE Trans. Softw. Eng. SE-7, 5 (Sept. 1981), 472–482.
Pappas, T. L., Designing Ada Programs, (a Product Review of KeyOne) IEEE Computer, (March 1990), 92–94.
Petrone, L., et alii. DUAL: An Interactive Tool for Developing Documented Programs by Step-wise Refinements. Proc.s Int. Conf. Software Engin., Tokyo (1982), 350–357.
Petrone, L., et alii. KeyOne Manual. Copyright LPS. Torino, Italy (1985, and rev. 1990)
Petrone, L., and Bergadano, E. The new Architecture of Free Structured Editors (in preparation).
Petrone, L. Incremental Parsers, Batch parsers and Free Structured Editors (submitted for publication).
Teitelbaum, T., and Reps, T., The Cornell Program Synthesizer: A Syntax-directed Programming Environment. Commun. ACM 24,9 (Sept. 1981), 563–573.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1995 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Petrone, L. (1995). Reusing batch parsers as incremental parsers. In: Thiagarajan, P.S. (eds) Foundations of Software Technology and Theoretical Computer Science. FSTTCS 1995. Lecture Notes in Computer Science, vol 1026. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60692-0_44
Download citation
DOI: https://doi.org/10.1007/3-540-60692-0_44
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-60692-5
Online ISBN: 978-3-540-49263-4
eBook Packages: Springer Book Archive