Abstract
LLP(k) parsing was introduced by Lomet [9]. This paper presents an LLP(k) version of the LR(k) characteristic parsing method developed by Geller and Harrison [4]. The new construction allows an essential extension of the class of grammars admitting the optimization of parser size. While the till known application works for the class of strict deterministic grammars (see Harrison and Havel [6, 7]) the method presented here covers the whole class of LLP(k) grammars. The improvement in parser size can be even exponential.
Preview
Unable to display preview. Download preview PDF.
References
Aho, A.V. and Ullman, J.D., The Theory of Parsing, Translation, and Compiling, Vols. I,II, Prentice Hall, Englewood Cliffs, N.J., 1972–3.
deRemer, F.L., Simple LR(k) Grammars, CACM, 14 (1971), 453–460
Geller, M.M., Graham, S.L., and Harrison, M.A., Production Prefix Parsing (extended abstract), in Automata, Languages, and Programming, 2nd Colloquium, University of Saarbrücken (J. Loeckx, ed.), 1974, 232–241.
Geller, M.M., Harrison, M.A., Strict Deterministic Versus LR(O) Parsing, Conference Record of ACM Symposium on Principles of Programming Languages, 1973, 22–32.
Geller, M.M., Harrison, M.A., Characteristic Parsing: A Framework for Producing Compact Deterministic Parsers, Parts I,II, unpublished
Harrison, M.A. and Havel, I.M., Strict Deterministic Grammars, Journal of Computer and System Sciences, 7 (1973), 237–277.
Harrison, M.A. and Havel, I.M., On the Parsing of Deterministic Languages, JACM, 21 (1974), 525–548.
Král, J., Demner, J., Parsing As a Subtask of Compiling, MFCS '75, Lecture Notes in Computer Science 32, Springer-Verlag, Berlin, 1975, 61–73.
Lomet, D.B., The Construction of Efficient Deterministic Language Processors, Ph.d. diss., University of Pennsylvania, Philadelphia, 1969, and IBM Research Report RC 2738, 1970.
Lomet, D.B., Formal Construction of Multiple Exit Parsing Routines, Report IBM.
Lomet, D.B., Automatic Generation of Multiple Exit Parsing Subroutines, in Automata, Languages, and Programming, 2nd Colloquium, University of Saarbrücken (J. Loeckx, ed.), 1974, 214–231.
Pittl, J., Characteristic Parsing of LLP(k) Grammars, (in Czech), SVOČ Thesis, Prague, 1977.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1977 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Pittl, J. (1977). Exponential optimization for the LLP(k) parsing method. In: Gruska, J. (eds) Mathematical Foundations of Computer Science 1977. MFCS 1977. Lecture Notes in Computer Science, vol 53. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-08353-7_165
Download citation
DOI: https://doi.org/10.1007/3-540-08353-7_165
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-08353-5
Online ISBN: 978-3-540-37285-1
eBook Packages: Springer Book Archive