Skip to main content
Log in

Generalized deterministic left to right parsing

  • Published:
Acta Informatica Aims and scope Submit manuscript

Summary

A parser model is presented whose structure is a generalization of the well known LR(k) parsers. Various classes of this parser that would be both practical and efficient to use in a compiler are examined. Associated with these classes of parsers is a hierarchy of type-0 grammars, each grammatical class being defined in terms of the form and structure of derivations. In particular, parsers based on a class called deterministic regular parsable (DRP) grammars will detect any errors as soon as possible during a left to right scan of the input. LR(k) grammars are also DRP. Much research related to LR(k) grammars and parsing is also applicable to DRP grammars and their associated parsers.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Aho, A.V.: Indexed Grammars. An Extension of Context-free Grammars, J. Assoc. Comput. Mach. 15, 647–671 (1968)

    Google Scholar 

  2. Aho, A.V., Ullman, J.D.: The Theory of Parsing, Translation, and Compiling, Englewood Cliffs, N.J.: Prentice Hall 1972

    Google Scholar 

  3. Anderson, T., Eve, J., Horing, J.J.: Efficient LR(1) Parsers, Acta Informat. 2, 12–39 (1973)

    Google Scholar 

  4. DeRemer, F.L.: Practical Translators for LR(k) Languages, Project MAC Report TR-65, MIT, Cambridge, Mass., 1969

    Google Scholar 

  5. DeRemer, F.L.: Transformational Grammars for Languages and Compilers, Proceedings of Computer Science and Statistics: Seventh Annual Symposium on the Interface, Iowa State University, October, 1973

  6. DeRemer, F.L.: On Compiler Structure and Translator Writing Systems, Proceedings of the Eighth Hawaii International Conference on System Sciences, University of Hawaii, 1975

  7. Floyd, R. W.: On the Nonexistence of the Phrase Structure Grammar for ALGOL 60, Comm. ACM, 5, 483–484 (1962)

    Google Scholar 

  8. Floyd, R. W.: Syntactic Analysis and Operator Precedence, J. ACM, 10, 316–333 (1963)

    Google Scholar 

  9. Griebach, S., Hopcroft, J.: Scattered Context Grammars, J. Comput. System Sci. 3, 233–247 (1969)

    Google Scholar 

  10. Hopcroft, J.E., Ullman, J.D.: Formal Languages and Their Relation to Automata, Don Mills: Addison-Wesley, 1969

    Google Scholar 

  11. James, L.R.: A Syntax Directed Error Recovery Method, CSRG-13, University of Toronto: Computer Systems Research Group, 1972

  12. Joliat, M.L.: On the Reduced Matrix Representation of LR(k) Parsing Tables, CSRG-28, University of Toronto: Computer Systems Research Group, 1973

  13. Knuth, D.E.: On the Translation of Languages from Left to Right, Information and Control, 8, 607–639 (1965)

    Google Scholar 

  14. Kohavi, Z.: Switching and Finite Automata Theory, McGraw Hill, 1970

  15. Korenjak, A.J.: A Practical Method for Constructing LR(k) Processors, Comm. ACM, 12, 613–623 (1969)

    Google Scholar 

  16. Rosenkrantz, D.J.: Programmed Grammars and Classes of Formal Languages, J. ACM, 16, 107–131 (1969)

    Google Scholar 

  17. Turnbull, C.J.M.: Deterministic Left to Right Parsing, CSRG-48, University of Toronto: Computer Systems Research Group, 1975

  18. Van Wijngaarden, A. (ed.): Report on the Algorithmic Language ALGOL 68, Numer. Math. 14, 79–218 (1969)

  19. Wynn, P.: Error Recovery in SLR Parsers, M.Sc. Thesis, University of Newcastle-upon-Tyne, Computing Laboratory, 1973

  20. Revesz, G.: Unilateral Context Sensitive Grammars and Left-to-Right Parsing, J. Comput. System Sci. 5, 337–352 (1971)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Turnbull, C.J.M., Lee, E.S. Generalized deterministic left to right parsing. Acta Informatica 12, 187–207 (1979). https://doi.org/10.1007/BF00264578

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF00264578

Keywords

Navigation