Skip to main content
Log in

Top-Down Parsing of Conjunctive Languages

  • Published:
Grammars

Abstract

This paper generalizes the notion of a strong LL(k) context-free grammar for the case of conjunctive grammars and develops a top-down parsing algorithm for the resulting language family. A top-down parser of a conjunctive language attempts to construct a derivation of the input string, at each step using a finite lookahead to determine which grammar rule to apply. Fragments of formulae that form the derivation are stored in a tree-structured pushdown. Two ways to implement top-down parsers are suggested: a table-driven parser with a tree-structured pushdown and a recursive descent parser. Both techniques naturally extend their context-free counterparts.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  • Aho, A.V. and J.D. Ullman. The Theory of Parsing, Translation and Compiling, Vol. I: Parsing, Prentice-Hall, Englewood Cliffs, NJ, 1972.

    Google Scholar 

  • Harrison, M. A. Introduction to Formal Language Theory, Addison-Wesley, Reading, MA., 1978.

    Google Scholar 

  • Latta, M. and R. Wall. Intersective context-free languages, Lenguajes Naturales y Lenguajes Formales IX, Barcelona, 1993, 15–43.

  • Lewis, P. M. and R. E. Stearns. Syntax-directed transduction, Journal of the ACM 15(3): 465–488, 1968.

    Google Scholar 

  • Liu, L. Y. and P. Weiner. An infinite hierarchy of intersections of context-free languages, Mathematical Systems Theory 7: 187–192, 1973.

    Google Scholar 

  • Okhotin, A. Conjunctive grammars. In Pre-proceedings of DCAGRS 2000, Dept. of Computer Science, University of Western Ontario, London, Ontario, Canada. Report No. 555 (2000).

    Google Scholar 

  • Okhotin, A. Conjunctive grammars, full version of [6], Journal of Automata, Languages and Combinatorics, 6(4), 2001.

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Okhotin, A. Top-Down Parsing of Conjunctive Languages. Grammars 5, 21–40 (2002). https://doi.org/10.1023/A:1014219530875

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1023/A:1014219530875

Navigation