Abstract
The classes of languages definable by operator-precedence grammars and by Floyd's operator-precedence algorithms are studied. Operator-precedence languages are shown to be a proper superclass of languages accepted by Floyd's operator-precedence parsing algorithms. An algorithm is developed to decide equivalence of an operator-precedence grammar and the underlying Floyd's operator-precedence parsing algorithm, a result of possible practical significance. As a consequence a necessary and sufficient condition for an operator-precedence grammar to be valid grammatical characterization for the underlying Floyd's operator-precedence parsing algorithm is obtained.
Preview
Unable to display preview. Download preview PDF.
6. References
Aho, A.V., and J.D. Ullman, The Theory of Parsing, Translation and Compiling, Vol. I: Parsing. Englewood Cliffs, N.J., Prentice-Hall, 1972.
Demers, A.J., Skeletal LR Parsing. IEEE Conference Record of 15th Annual Symposium on Switching and Automata Theory, 185–198, 1974.
El Djabri, N., Extending the LR Parsing Techniques to Some Non-LR Grammars. TR — 121, Department of AACS, Princeton University, Princeton, New Jersey, 1973.
Fischer, M.J., Some Properties of Precedence Languages. Proc. ACM Symposium on Theory of Computing, 181–190, 1969.
Gray, J.N., Precedence Parsers for Programming Languages. Ph. D. Thesis, Department of Computer Science, University of California, Berkeley, 1969.
Henderson, D.S., and M.R. Levy, An Extended Operator-Precedence Parsing Algorithm. Computing Journal 19: 3, 229–233, 1976.
Knuth, D., Top Down Syntax Analysis. Acta Informatica 1: 2, 79–110, 1971.
Levy, M.R., Complete Operator Precedence. IPL 4: 2, 38–40, 1975.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1979 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Ružička, P. (1979). Validity test for Floyd's operator-precedence parsing algorithms. In: Bečvář, J. (eds) Mathematical Foundations of Computer Science 1979. MFCS 1979. Lecture Notes in Computer Science, vol 74. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-09526-8_41
Download citation
DOI: https://doi.org/10.1007/3-540-09526-8_41
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-09526-2
Online ISBN: 978-3-540-35088-0
eBook Packages: Springer Book Archive