ACM Home Page
Please provide us with feedback. Feedback
Transforming LR(k) Grammars to LR(1), SLR(1), and (1,1) Bounded Right-Context Grammars
Full text PdfPdf (1.36 MB)
Source Journal of the ACM (JACM) archive
Volume 23 ,  Issue 3  (July 1976) table of contents
Pages: 511 - 533  
Year of Publication: 1976
ISSN:0004-5411
Authors
M. D. Mickunas  Department of Computer Science, Digital Computer Laboratory, University of Illinois at Urbana-Champaign, Urbana, IL
R. L. Lancaster  Computer Science Department, Bowling Green State University, Bowling Green, OH
V. B. Schneider  Department of Computer Sciences, Mathematical Sciences Building, Purdue University, West Lafayette, IN
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 0,   Downloads (12 Months): 40,   Citation Count: 3
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/321958.321972
What is a DOI?

ABSTRACT

A method is presented for directly transforming an arbitrary LR(k) grammar to an equivalent LR(1) grammar. It is further shown that the method transforms an arbitrary prefix-free LR(k) grammar to an equivalent LR(0) grammar. It is argued that the method is efficient and offers some advantages over traditional “look-ahead” parsing methods. Finally, it is demonstrated that the method can be used to transform an LR(1) grammar to an equivalent SLR(1) grammar, which in turn can be easily transformed to an equivalent (1, 1) bounded right-context grammar.


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
DRMER, F L. Practical translators for LR(k) languages Doctoral DiNs , M I T , Cambridge, Mass, Sept. 1969
4
5
6
 
7
GELLER, M.M, AND HARRISON, M A Characterizations of LR(0) languages (extended abstract) Proc. of the 14th Ann Symp on Switching and Automata Theory, Iowa City, I a , Oct. 1973, pp. 103-108 (sponsored by IEEE, New York)
 
8
GINSBURG, S , AND GREIBACH, S A. Deterministic context-free languages. Inform. and Contr. 9 (1966), 620-648.
 
9
 
10
GRAHAM, S L. On bounded right context languages and grammars. SIAM J. Comput. (1974), 224-254.
11
 
12
HARRISON, M.A. On the parsing of deterministic languages. Inv:ted presentation, ACM Comput. Sci. Conf, Columbus, Ohio, 1973 (oral presentatmn)
 
13
HARRISON, M.A, AND HVEL, I.M. Strict determmmtlc grammars J Comput and Syst. Scls. 7 (1973), 237-277
 
14
15
 
16
KNUTH, D.E On the translation of languages from left to right. Inform. and Contr. 8 (1965), 607-639.
 
17
LALONDE, W R An efficmnt LALR parser generator Tech. Rep CSRG-2, U of Toronto, Toronto, Ont , Canada, 1971
18
 
19
MICKUNAS, M.D User's manual for the PUCSD parser generating system. Tech Rep, Purdue U., West Lafayette, Ind., Aug. 1973.
 
20
 
21
MICKUNAS, M D., AND SCHNEIDER, V.B. On the ability to cover LR(k) grammars with LR(1), SLR(1), and (1, 1) bounded-context grammars Proc of the 14th Ann Symp. on Switching and Automata Theory, Iowa City, I a , Oct 1973, pp. 109-121 (sponsored by IEEE, New York).
22
 
23
REYNOLDS, J.C., AND HASKELL, R. Grammatical coverings Unpublished manuscript, 1970
 
24
SCHNEIDER, V.B. A system for designing fast programminglanguage translators Proc.AFIPS 1969 SJCC, Vol. 34, AFIPS Press, Montvale, N J., pp. 777-792.
25


Collaborative Colleagues:
M. D. Mickunas: colleagues
R. L. Lancaster: colleagues
V. B. Schneider: colleagues