Simple LR(k) grammars
- 1 July 1971
- journal article
- Published by Association for Computing Machinery (ACM) in Communications of the ACM
- Vol. 14 (7), 453-460
- https://doi.org/10.1145/362619.362625
Abstract
A class of context-free grammars, called the “Simple LR ( k )” or SLR ( k ) grammars is defined. This class has been shown to include weak precedence and simple precedence grammars as proper subsets. How to construct parsers for the SLR ( k ) grammars is also shown. These parser-construction techniques are extendible to cover all of the LR ( k ) grammars of Knuth; they have been implemented and by direct comparison proved to be superior to precedence techniques, not only in the range of grammars covered, but also in the speed of parser construction and in the size and speed of the resulting parsers.Keywords
This publication has 7 references indexed in Scilit:
- A technique for generating almost optimal Floyd-Evans productions for precedence grammarsCommunications of the ACM, 1970
- An efficient context-free parsing algorithmCommunications of the ACM, 1970
- A practical method for constructing LR ( k ) processorsCommunications of the ACM, 1969
- PAL---a language designed for teaching programming linguisticsPublished by Association for Computing Machinery (ACM) ,1968
- EULER: A generalization of ALGOL and its formal definition: Part 1Communications of the ACM, 1966
- On the translation of languages from left to rightInformation and Control, 1965
- Revised report on the algorithmic language ALGOL 60Communications of the ACM, 1963