Even faster generalized LR parsing

Citation
J. Aycock et al., Even faster generalized LR parsing, ACT INFORM, 37(9), 2001, pp. 633-651
Citations number
28
Categorie Soggetti
Information Tecnology & Communication Systems
Journal title
ACTA INFORMATICA
ISSN journal
00015903 → ACNP
Volume
37
Issue
9
Year of publication
2001
Pages
633 - 651
Database
ISI
SICI code
0001-5903(200106)37:9<633:EFGLP>2.0.ZU;2-K
Abstract
We prove a property of generalized LR (GLR) parsing - if the grammar is wit hout right and hidden left recursions, then the number of consecutive reduc tions between the shifts of two adjacent symbols cannot be greater than a c onstant. Further, we show that this property can be used for constructing a n optimized version of our GLR parser. Compared with a standard GLR parser, our optimized parser reads one symbol on every transition and performs sig nificantly fewer stack operations. Our timings show that, especially for hi ghly ambiguous grammars, our parser is significantly faster than a standard GLR parser.