An Efficient Context-Free Parsing Algorithm with Semantic Actions

As M. Tomita [5] has demonstrated, the LR parsing algorithm can be extended so that it will handle acyclic context-free grammars in a very efficient way, producing a parse forest, a set of all possible parsing trees for a given input sentence. In this paper we aim to show how Tomita's parsing algorithm can be extended to support semantic actions, that is, procedural segments associated with grammar production rules, that are executed contextually during the parsing procedure.

[1]  Alfred V. Aho,et al.  LR Parsing , 1974, ACM Comput. Surv..

[2]  Glenn D. Blank A finite and real-time processor for natural language , 1989, CACM.

[3]  Masaru Tomita,et al.  An Efficient Context-Free Parsing Algorithm for Natural Languages , 1985, IJCAI.

[4]  Alfred V. Aho,et al.  Deterministic parsing of ambiguous grammars , 1975, Commun. ACM.

[5]  Masaru Tomita,et al.  Efficient parsing for natural language , 1985 .

[6]  Alfred V. Aho,et al.  Compilers: Principles, Techniques, and Tools , 1986, Addison-Wesley series in computer science / World student series edition.