Abstract
An algorithm is described for parsing a large class of van Wijngaarden grammars in polynomial time. The algorithm is based on Earley's context-free parsing algorithm, with the addition of a bottom-up component and a mechanism for implementing consistent substitution. In contrast to earlier algorithms, this algorithm works for grammars which are both non-left-bound and non-right-bound.
Similar content being viewed by others
References
Deussen, P.: A decidability criterion for van Wijngaarden grammars. Acta Inf.5, 353–375 (1975)
Deussen, P., Mehlhorn, K.: Van Wijngaarden grammars and space complexity class EXSPACE. Acta Inf.8, 193–199 (1977)
Earley, J.: An efficient context-free parsing algorithm. CACM13(2), 94–102 (February 1970)
Fisher, A.J.: The generation of parsers for two-level grammars. Thesis. Prifysgol Cymru, Aberystwyth, Wales (1982)
Fisher, A.J.: Practical LL(1)-based parsing of van Wijngaarden grammars. Acta Inf.21, 559–584 (1985)
Lewis, P.M. II, Rosencrantz, D.J., Stearns, R.E.: Compiler design theory. Reading, MA: Addison-Wesley 1976
Pagan, F.G.: Formal specification of programming languages. Englewood Cliffs, NJ: Prentice-Hall 1981
Salomaa, A.: Formal languages. London: Academic Press 1973
Simonet, M.: W. grammaires et logique du premier ordre pour la définition et l'implantation des langages. Thesis, l'Université Scientifique et Médicale de Grenoble (July 1981)
Sintzoff, M.: Existence of a van Wijngaarden syntax for every recursively enumerable set. Ann. Soc. Sci. Brux.81, II (1967)
Wegner, L.M.: On parsing two-level grammars. Acta Inf.14, 175–193 (1980)
Wegner, L.M.: Bracketed two-level grammars — a decidable and practical approach to language definitions. ICALP 79, Graz. (Lect. Notes Comput., Vol.71, p. 668) Berlin Heidelberg New York: Springer 1979
Wijngaarden, A. van, Mailloux, B.J., Peck, J.E.L., Koster, C.H.A., Sintzoff, M. (eds.) Revised report on the algorithmic language Algol 68. Berlin, Heidelberg, New York: Springer 1976
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Fisher, A.J. A “yo-yo” parsing algorithm for a large class of van Wijngaarden grammars. Acta Informatica 29, 461–481 (1992). https://doi.org/10.1007/BF01193578
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF01193578