Characteristic parsing: A framework for producing compact deterministic parsers, II

作者:

Highlights:

摘要

This paper applies the theory of characteristic parsing to obtain very small parsers in three special cases. The first application is for strict deterministic grammars. A characteristic parser is constructed and its properties are exhibited. It is as fast as an LR parser. It accepts every string in the language and rejects every string not in the language although it rejects later than a canonical LR parser. The parser is shown to be exponentially smaller than an LR parser (or SLR or LALR parser) on a sample family of grammars. General size bounds are obtained. A similar analysis is carried through for SLR and LALR grammars.

论文关键词:

论文评审过程:Received 22 September 1975, Revised 4 August 1976, Available online 31 December 2007.

论文官网地址:https://doi.org/10.1016/S0022-0000(77)80018-4