Complexity of extended vs. classic LR parsers

1Citations
Citations of this article
3Readers
Mendeley users who have this article in their library.
Get full text

Abstract

For the deterministic context-free languages, we compare the space and time complexity of their LR (1) parsers, constructed in two different ways: the classic method by Knuth [7] for BNF grammars, and the recent one by the authors [2], which directly builds the parser from EBNF grammars represented as transition networks. For the EBNF grammars, the classic Knuth's method is indirect as it needs to convert them to BNF. We describe two parametric families of formal languages indexed by the number of stars, which exhibit a linear growth of the parser size (number of states) in passing from the classic to our novel direct methods. Experimental measurements of the number of parser states and of the parsing speed for two real languages (Java and JSON) confirm the advantage of the new direct parser model for EBNF grammars. © 2014 Springer International Publishing.

Cite

CITATION STYLE

APA

Borsotti, A., Breveglieri, L., Crespi Reghizzi, S., & Morzenti, A. (2014). Complexity of extended vs. classic LR parsers. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 8614 LNCS, pp. 77–89). Springer Verlag. https://doi.org/10.1007/978-3-319-09704-6_8

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free