Abstract
Two grammatical transformations are presented for producing a context-free grammar which left-to-right covers the original grammar. The first transformation can be used to transform grammars in an extensive subclass of the non-right-recursive grammars into covering grammars which are in Greibach normal form. The second transformation converts a subclass of LR(0) grammars into covering grammars which are strict deterministic. This transformation is further extended to produce a covering strict deterministic grammar for all LR(0) grammars.
This is a preview of subscription content, log in via an institution.
Preview
Unable to display preview. Download preview PDF.
References
Aho, A.V. and J.D. Ullman: The Theory of Parsing, Translation, and Compiling, Vol. I: Parsing. Prentice-Hall, Inc., Englewood Cliffs, N.J., 1972.
Geller, M.M. and M.A. Harrison: On LR(k) grammars and languages. Theoretical Computer Science 4 (1977), 245–276.
Gray, J.N. and M.A. Harrison: On the covering and reduction problems for context-free grammars. J. Assoc. Comput. Mach. 19 (1972), 675–698.
Harrison, M.A. and I.M. Havel: Strict deterministic grammars. J. Comput. System Sci. 7 (1973), 237–277.
Nijholt,A.: Cover results and normal forms. In: Proc. 6th Int. Symp. on Mathematical Foundations of Computer Science (ed. J.Gruska), Lecture Notes in Computer Science 53, pp. 420–429, Springer-Verlag, 1977.
Nijholt,A.: On the covering of left recursive grammars. Conf. Record of the Fourth ACM Symp. on Principles of Programming Languages (1977), 86–96.
Nijholt, A.: On the covering of parsable grammars. J. Comput. System Sci. 15 (1977), 99–110.
Soisalon-Soininen,E.: Characterization of LL(k) languages by restricted LR(k) grammars. Report A-1977-3, Department of Computer Science, University of Helsinki, 1977.
Soisalon-Soininen, E.: On the covering problem for left-recursive grammars. Theoretical Computer Science (to appear).
Soisalon-Soininen, E. and E. Ukkonen: A characterization of LL(k) languages. In: Automata, Languages and Programming, Third Colloquium (eds. S. Michaelson and R. Milner), pp. 20–30, Edinburgh University Press, Edinburgh, 1976.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1978 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Ukkonen, E. (1978). Transformations to produce certain covering grammars. In: Winkowski, J. (eds) Mathematical Foundations of Computer Science 1978. MFCS 1978. Lecture Notes in Computer Science, vol 64. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-08921-7_100
Download citation
DOI: https://doi.org/10.1007/3-540-08921-7_100
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-08921-6
Online ISBN: 978-3-540-35757-5
eBook Packages: Springer Book Archive