Abstract
The recursive descent parsing method for the context-free grammars is extended for their generalization, Boolean grammars, which include explicit set-theoretic operations in the formalism of rules and which are formally defined by language equations. The algorithm is applicable to a subset of Boolean grammars. The complexity of a direct implementation varies between linear and exponential, while memoization keeps it down to linear.
Similar content being viewed by others
References
Aho A.V., Sethi R. and Ullman J.D. (1986). Compilers: principles, techniques and tools. Addison-Wesley, Reading
Birman A. and Ullman J.D. (1973). Parsing algorithms with backtrack. Inf. Control 23: 1–134
Ford, B.: Parsing expression grammars: a recognition-based syntactic foundation. Proceedings of POPL 2004 (Venice, Italy, January 14–16, 111–122 2004)
Ginsburg S. and Rice H.G. (1962). Two families of languages related to ALGOL. J. ACM 9: 350–371
Greibach S.A. (1965). A new normal-form theorem for context-free phrase structure grammars. J. ACM 12: 42–52
Grune D. and Jacobs C.J.H. (1988). A programmer-friendly LL(1) parser generator. Softw. Pract. Exp. 18(1): 29–38
Ichbiah J., Barnes J.G.P., Firth R.J. and Woodger M. (1991). Rationale for the design of the Ada programming language. Cambridge University Press, Cambridge
Knuth D.E. (1971). Top-down syntax analysis. Acta Informatica 1: 79–110
Kountouriotis, V., Nomikos, Ch., Rondogiannis, P.: Well-founded semantics for Boolean grammars. Developments in Language Theory (DLT 2006, Santa Barbara, USA, June 26–29, 2006), LNCS 4036, 203–214
Kurki-Suonio R. (1969). Notes on top-down languages. BIT 9: 225–238
Lewis P.M. and Stearns R.E. (1968). Syntax-directed transduction. J. ACM 15(3): 465–488
Megacz A. (2006). Scannerless Boolean parsing. Electron. Notes Theor. Comput. Sci. 164(2): 97–102
Norvig P. (1991). Techniques for automatic memoization with applications to context-free parsing. Comput. Linguistics 17(1): 91–98
Okhotin A. (2001). Conjunctive grammars. J. Automata Lang. Combinatorics 6(4): 519–535
Okhotin A. (2002). Top-down parsing of conjunctive languages. Grammars 5(1): 21–40
Okhotin A. (2004). Boolean grammars. Inf. Comput. 194(1): 19–48
Okhotin A. (2005). The dual of concatenation. Theor. Comput. Sci. 345(2–3): 425–447
Okhotin A. (2006). Generalized LR parsing algorithm for Boolean grammars. Int. J. Found. Comput. Sci. 17(3): 629–664
Parr T.J. and Quong R.W. (1995). ANTLR: a predicated-LL(k) parser generator. Softw. Pract. Exp. 25(7): 789–810
Rozenkrantz D.J. and Stearns R.E. (1970). Properties of deterministic top-down grammars. Inf. Control 17: 226–256
Wood D. (1969). The theory of left factored languages. (I, II). Comput. J. 12(4, 349–356): 12–4, 349356
Wood D. (1970). The theory of left factored languages. (I, II). Comput. J. 13(1): 55–62
Wrona, M.: Stratified Boolean grammars mathematical foundations of computer science. In: Proceedings of MFCS 2005, Gdansk, Poland, August 29–September 2, 2005. LNCS, vol. 3618, pp. 801–812 (2005)
Author information
Authors and Affiliations
Corresponding author
Additional information
Supported by the Academy of Finland under grant 118540.
Rights and permissions
About this article
Cite this article
Okhotin, A. Recursive descent parsing for Boolean grammars. Acta Informatica 44, 167–189 (2007). https://doi.org/10.1007/s00236-007-0045-0
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00236-007-0045-0