ACM Home Page
Please provide us with feedback. Feedback
Simple LR(k) grammars
Full text PdfPdf (680 KB)
Source
Communications of the ACM archive
Volume 14 ,  Issue 7  (July 1971) table of contents
Pages: 453 - 460  
Year of Publication: 1971
ISSN:0001-0782
Author
Franklin L. DeRemer  Univ. of California, Santa Cruz
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 16,   Downloads (12 Months): 70,   Citation Count: 52
Additional Information:

abstract   references   cited by   index terms  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/362619.362625
What is a DOI?

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.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
Cheatham, T. E. Jr. The Theory and Construction of Compilers. Massachusetts Computer Associates, Inc., Wakefield, Mass., 1967.
 
2
DeRemer, F. L. Practical translation for LR(k) languages. Ph.D. thesis. MIT, Cambridge, Mass. Sept., 1969.
 
3
DeRemer, F. L. Simple LR(k) grammars: Definition and implementation. CEP Rep. 2, 4 (Sept. 1970), U. of Calif., Santa Cruz.
 
4
De Remer, F. L. Minimal LR(k) parsers (In preparation).
 
5
De Remer, F. L. Error recovery using LR(k) techniques (In preparation).
6
 
7
Homing, J. J., and Lalonde, W. R. Empirical comparison of LR(k) and precedence parsers. Tech. Rep. CSRG-1, Computer Syst. Res. Gr., U. of Toronto, Canada, undated (rec. Sept. 1970).
 
8
9
10
 
11
Knuth, D. E. On the translation of languages from left to right. Inf. Contr. 8 (Oct. 1965), 607-639.
 
12
McKeeman, W. M., Horning, J. J., and Wortman, D. B. A Complier Generator. Prentice-Hall, Englewood Cliffs, N.J., 1970.
13
14
 
15
Reddy, D. R., and McKeeman, W. M. Computer programming: An introduction to PL. Prelimin. Rep., Stanford U., Stanford, Calif., 1969.
16

CITED BY  53