Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

LR-parsing of extended context free grammars

  • Published:
Acta Informatica Aims and scope Submit manuscript

Summary

To improve the readability of a grammar it is common to use extended context free grammars (ECFGs) which are context free grammars (CFGs) extended with the repetition operator (*), the alternation operator (¦) and parentheses to express the right hand sides of the productions. The topic treated here is LR-parsing of ECFGs. The LR(k) concept is generalized to ECFGs, a set of LR-preserving transformations from ECFGs to CFGs is given and finally it is shown how to construct LR-parsers directly from ECFGs.

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

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

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., Ullman, J. D.: The theory of parsing, translation, and compiling. Volume 1: Parsing. 1972. Volume 2: Compiling. 1973. Englewood Cliffs (N.J.): Prentice-Hall

  2. DeRemer, F. L.: Practical translators for LR(k) languages. Massachusetts Institute of Technology, Cambridge (Mass.), Techn. Rep. MAC TR 65, Ph.D. Thesis, Oct. 1969

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

    Google Scholar 

  4. DeRemer, F. L.: Lexical analysis. In: Bauer, F. L., Eickel, J. (eds.): Compiler construction, an advanced course. Lecture Notes in Computer Science 21. Berlin-Heidelberg-New York: Springer 1974, p. 109–120

    Google Scholar 

  5. Early, J.: An efficient context-free parsing algorithm. Comm. ACM 13, 94–102 (1970)

    Google Scholar 

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

    Google Scholar 

  7. Madsen, O. L., Kristensen, B. B.: On extended context-free grammars and LR-parsing. Department of Computer Science, University of Aarhus, Aarhus, Denmark, DAIMI PB-53, 1975

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Madsen, O.L., Kristensen, B.B. LR-parsing of extended context free grammars. Acta Informatica 7, 61–73 (1976). https://doi.org/10.1007/BF00265221

Download citation

  • Received:

  • Issue Date:

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

Keywords