Summary
Given grammar forms F and F′, the grammar form Sûb (F, Ft') is defined as that obtained by substituting the start variable of F′ for every occurrence of a terminal in F. The main result is that if F is a nontrivial grammar form, then the grammatical family defined by Sûb (F, F′) is the set of languages obtained by substituting languages in the family defined by F′ into the family defined by F. Thus the substitution of one grammatical family into another is a grammatical family. It follows as a corollary that the full AFL generated by a grammatical family is a grammatical family.
Similar content being viewed by others
References
Boasson, L., Crestin, J. P., Nivat, M.: Familles de langages translatables et fermées par crochet. Acta Informatica 2, 383–393 (1973)
Cremers, A., Ginsburg, S.: Context-free grammar forms. To appear in the J. Computer and System Sciences
Cremers, A., Ginsburg, S., Spanier, E. H.: The structure of context-free grammatical families. Submitted for publication
Ginsburg, S., Greibach, S. A.: Abstract families of languages. Memoirs Amer. Math. Soc. 87. Providence (R.I.): American Mathematical Society 1969, p. 1–32
Ginsburg, S., Lynch, N.: Derivation complexity in context-free grammar forms. Submitted for publication
Ginsburg, S., Lynch, N.: Size complexity in context-free grammar forms. Submitted for publication
Ginsburg, S., Spanier, E. H.: Finite-turn pushdown automata. SIAM J. Control 4, 429–453 (1966)
Ginsburg, S., Spanier, E. H.: Derivation-bounded languages. J. Computer and System Sciences 2, 228–250 (1968)
Author information
Authors and Affiliations
Additional information
This research was supported in part by a Guggenheim fellowship and by NSF Grant No. 42306.
Rights and permissions
About this article
Cite this article
Ginsburg, S., Spanier, E.H. Substitution of grammar forms. Acta Informatica 5, 377–386 (1975). https://doi.org/10.1007/BF00264567
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF00264567