Springer Nature is making SARS-CoV-2 and COVID-19 research free. View research | View latest news | Sign up for updates

LR(0) grammars generated by LR(0) parsers

  • 24 Accesses

  • 1 Citations

Summary

Let Π be an LR(0) parser of a given LR(0) grammar G. Generally, Π does not only parse the words generated by G but also the words of some other LR(0) grammars different from G. In this paper we shall define a class of LR(0) parsers and shall present a characterization and a method for the construction of all LR(0) grammars which can be parsed by a given LR(0) parser.

This is a preview of subscription content, log in to check access.

References

  1. 1.

    Aho, A.V., Ullman, J.D.: Properties of syntax directed translations. JCSS 3, 319–334 (1969)

  2. 2.

    Aho, A.V., Ullman, J.D.: The theory of parsing, translation and compiling, Vol. 1, parsing. Englewood Cliffs: Prentice-Hall 1972

  3. 3.

    Aho, A.V., Ullman, J.D.: The theory of parsing, translation and compiling, Vol. 2, compiling. Englewood Cliffs: Prentice-Hall 1973

  4. 4.

    Aho, A.V., Ullman, J.D.: Optimization of LR(k) parsers. JCSS 6, 573–602 (1972)

  5. 5.

    DeRemer, F.: Simple LR(k) grammars. Comm. ACM 14, 453–460 (1971)

  6. 6.

    Harrison, M.A.: Introduction to formal language theory. Reading Mass: Addison-Wesley 1978

  7. 7.

    Hotz, G., Claus, V.: Automatentheorie und Formale Sprachen. Band 823a, Mannheim: Bibliographisches Institut, 1972

  8. 8.

    Joliat, M.L.: On the reduced matrix representation of LR(k) parser tables. Ph.D. thesis, University of Toronto (1973)

  9. 9.

    Kemp, R.: An estimation of the set of states of the minimal LR(0) parser. In: Automata, languages and programming, (M. Nivat, ed.). Amsterdam: North-Holland, p. 563, 1973

  10. 10.

    Kemp, R.: Minimierung von LR(k)-Analysatoren. Techn. Rep. A75/1, A75/2, Universität des Saarlandes, Saarbrücken, 1975

  11. 11.

    Kemp, R.: LR(0) grammars generated by LR(0) parsers. Techn. Rep. A79/18, Universität des Saarlandes, Saarbrücken, 1979

  12. 13.

    Korenjak, A.J.: A practical method for constructing LR(k) processors. Comm. ACM 12, 613–623 (1969)

  13. 12.

    Knuth, D.E.: On the translation of languages from left to right. Information and Control. 8, 607–639 (1965)

  14. 14.

    Pager, D.: A solution to an open problem by Knuth. Information and Control. 17, 462–473 (1970)

Download references

Author information

Rights and permissions

Reprints and Permissions

About this article

Cite this article

Kemp, R. LR(0) grammars generated by LR(0) parsers. Acta Informatica 15, 265–280 (1981). https://doi.org/10.1007/BF00289265

Download citation

Keywords

  • Information System
  • Operating System
  • Data Structure
  • Communication Network
  • Information Theory