Skip to main content
Log in

An algebraic technique for context-sensitive parsing

  • Published:
International Journal of Computer & Information Sciences Aims and scope Submit manuscript

Abstract

A technique that represents derivations of a context-free grammarG over a semiring and that obtains for a wordw inL(G) the set of all canonical parses forw has previously been described. A state grammar is one of a collection of grammars that place restrictions on the manner of application of context-free-like productions and that generate a noncontext-free language. The “context-free” properties of a state grammar have been used to extend the algebraic parsing technique for languages generated by state grammars,viz., context-sensitive languages. The extension for state grammars is not unlike that required for other types of grammars in whose collection state grammars are representative.

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. S. Abraham, “Some questions of phrase structure grammars I,”Comput. Linguist. 4:61–70 (1965).

    Google Scholar 

  2. S. Greibach and J. Hopcroft, “Scattered context grammars,”J. Comput. Syst. Sci. 3: 233–247 (1969).

    Google Scholar 

  3. O. Ibarra, “Simple matrix languages,”Inf. Control 17:359–394 (1970).

    Google Scholar 

  4. T. Kasai, “An hierarchy between context-free and context-sensitive languages,”J. Comput Syst. Sci. 4:492–508 (1970).

    Google Scholar 

  5. D. Rosencrantz, “Programmed grammars and classes of formal languages,”J. Assoc. Comput. Mach. 16: 107–131 (1969).

    Google Scholar 

  6. A. Salomaa, “Periodically time-variant context-free grammars,”Inf. Control 17:294–311 (1970).

    Google Scholar 

  7. A. Salomaa, “Matrix grammars with a leftmost restriction,”Inf. Control 20:143–149 (1972).

    Google Scholar 

  8. O. Mayer, “Some restrictive devices for context-free grammars,”Inf. Control 20:69–92 (1972).

    Google Scholar 

  9. A. B. Cremers, “Normal forms for context-sensitive grammars,”Acta Inf. 3:59–73 (1973).

    Google Scholar 

  10. S. Weiss, G. Magó, and D. Stanat, “An Algebraic Parsing Theorem for Context-Free Languages,” inAutomata, Languages and Programming, M. Nivat, ed. (North Holland, Amsterdam, 1973).

    Google Scholar 

  11. R. Cannon, “State Grammar Parsing,” Ph.D. Dissertation, University of North Carolina, Chapel Hill, N.C. (1973).

    Google Scholar 

  12. R. Cannon, “Phrase structure grammars generating context-free languages,”Inf. Control 29: 252–267 (1975).

    Google Scholar 

  13. N. Chomsky and M. Schützenberger, “The Algebraic Theory of Context-Free Languages,” inComputer Programming and Formal Systems, P. Braffort and D. Hirschberg, eds. (North Holland, Amsterdam, 1963).

    Google Scholar 

  14. R. Evey, “The Theory and Application of Pushdown Store Machines,” Ph.D. Dissertation, Harvard University (1963).

  15. G. Matthews, “Discontinuity and asymmetry in phrase structure grammars,”Inf. Control 6:137–146 (1963).

    Google Scholar 

  16. J. Thatcher, “Characterizing derivation trees of context-free grammars through a generalization of finite automata theory,”J. Comput. Syst. Sci. 1:317–322 (1967).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Cannon, R.L. An algebraic technique for context-sensitive parsing. International Journal of Computer and Information Sciences 5, 257–276 (1976). https://doi.org/10.1007/BF00991838

Download citation

  • Received:

  • Revised:

  • Issue Date:

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

Key words

Navigation