|
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
|
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]
|
 |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
M. D. Mickunas , R. L. Lancaster , V. B. Schneider, Transforming LR(k) Grammars to LR(1), SLR(1), and (1,1) Bounded Right-Context Grammars, Journal of the ACM (JACM), v.23 n.3, p.511-533, July 1976
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Yao-Wen Huang , Fang Yu , Christian Hang , Chung-Hung Tsai , Der-Tsai Lee , Sy-Yen Kuo, Securing web application code by static analysis and runtime protection, Proceedings of the 13th international conference on World Wide Web, May 17-20, 2004, New York, NY, USA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|