ACM Home Page
Please provide us with feedback. Feedback
A practical method for constructing LR (k) processors
Full text PdfPdf (1.26 MB)
Source
Communications of the ACM archive
Volume 12 ,  Issue 11  (November 1969) table of contents
Pages: 613 - 623  
Year of Publication: 1969
ISSN:0001-0782
Author
A. J. Korenjak  RCA Labs., Princeton, NJ
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 5,   Downloads (12 Months): 22,   Citation Count: 19
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

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/363269.363281
What is a DOI?

ABSTRACT

A practical method for constructing LR(k) processors is developed. These processors are capable of recognizing and parsing an input during a single no-backup scan in a number of steps equal to the length of the input plus the number of steps in its derivation. The technique presented here is based on the original method described by Knuth, but decreases both the effort required to construct the processor and the size of the processor produced. This procedure involves partitioning the given grammar into a number of smaller parts. If an LR(k) processor can be constructed for each part (using Knuth's algorithm) and if certain conditions relating these individual processors are satisfied, then an LR(k) processor for the entire grammar can be constructed for them. Using this procedure, an LR(1) parser for ALGOL has been obtained.


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
2
 
3
GINSBURG, S., ANn GREIBACH, S. A. Deterministic context-free languages. Inform. Contr. 9 (Dec. 1966), 620-648.
 
4
KNUTH, D. E. On the translation of languages from left to right. Inform. Contr. 8 (Dec. 1965), 607-639.
 
5
KORENJAK, A. J. Deterministic language processing. Thesis, Princeton, U., Princeton, N. J., Sept. 1967.
6
 
7
SRINIVASAN, C. V. An introduction to CDLI, a computer description language. Scientific Rep. No. 1, Contract No. AF19 (628)4789, RCA Laboratories, Princeton, N. J., Sept. 1967.

CITED BY  19