Top-Down Parsing of Conjunctive Languages
暂无分享,去创建一个
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.
[1] Richard Edwin Stearns,et al. Syntax-Directed Transduction , 1966, JACM.
[2] Alfred V. Aho,et al. The Theory of Parsing, Translation, and Compiling , 1972 .
[3] Michael A. Harrison,et al. Introduction to formal language theory , 1978 .
[4] Alexander Okhotin,et al. Conjunctive Grammars , 2001, J. Autom. Lang. Comb..
[5] Robert Wall,et al. Intersective context-free languages , 1993 .