| A practical method for constructing LR (k) processors |
| Full text |
Pdf
(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
|
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 5, Downloads (12 Months): 22, Citation Count: 19
|
|
|
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
|
J. W. Backus , F. L. Bauer , J. Green , C. Katz , J. McCarthy , A. J. Perlis , H. Rutishauser , K. Samelson , B. Vauquois , J. H. Wegstein , A. van Wijngaarden , M. Woodger , P. Naur, Revised report on the algorithm language ALGOL 60, Communications of the ACM, v.6 n.1, p.1-17, Jan. 1963
[doi> 10.1145/366193.366201]
|
| |
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.
|
|