An LR Parser with Less States

Autor: Hong Jun Tang
Rok vydání: 2013
Předmět:
Zdroj: Applied Mechanics and Materials. 310:684-687
ISSN: 1662-7482
DOI: 10.4028/www.scientific.net/amm.310.684
Popis: This paper presents a new construction method of LR parser which is based on the theory of deterministic finite automata. The deterministic infinite automata are simplified for obtaining the LR parsing table with fewer states by merging the equivalent states. The new construction method has the same reorganization power as LALR parser but avoids the “reduce/reduce” conflict in LALR method. The experiment results show that the number of states in parsing table can be reduced greatly if the proposed method is used.
Databáze: OpenAIRE