scispace - formally typeset
Proceedings ArticleDOI

Grammars with macro-like productions

Michael J. Fischer
- pp 131-142
TLDR
Two new classes of grammars based on programming macros are studied, one of which is IO but not OI and the other OI but not IO, showing that neither class contains the other.
Abstract
Two new classes of grammars based on programming macros are studied. Both involve appending arguments to the intermediate symbols of a context-free grammar. They differ only in the order in which nested terms may be expanded: IO is expansion from the inside-out; OI from the outside-in. Both classes, in common with the context-free, have decidable emptiness and derivation problems, and both are closed under the operations of union, concatenation, Kleene closure (star), reversal, intersection with a regular set, and arbitrary homomorphism. OI languages are also closed under inverse homomorphism while IO languages are not. We exhibit two languages, one of which is IO but not OI and the other OI but not IO, showing that neither class contains the other. However, both trivially contain the class of context-free languages, and both are contained in the class of contextsensitive languages. Finally, the class of OI languages is identical to the class of indexed languages studied by Aho, and indeed many of the above. theorems about OI languages follow directly from the equivalence.

read more

Citations
More filters
Book

Tree languages

Journal ArticleDOI

Mappings and grammars on trees

TL;DR: This paper studies certain sets, functions, and relations on trees using natural generalizations of ordinary automata theory using Thatcher and Wright's algebraic formalism to give succinct descriptions of linguistic constructions in the tree case.
Journal ArticleDOI

Generalized2 sequential machine maps

TL;DR: The concept of generalized sequential machine (gsm) mapping is developed here in its natural extension to trees (or expressions) in the introduction of syntax directed translations and transformations into formallanguage theory.
Journal ArticleDOI

Macro Tree Transducers

TL;DR: The formal model of macro tree transducers is studied by investigating typical automata theoretical topics like composition, decomposition, domains, and ranges of the induced translation classes.
Journal ArticleDOI

The IO- and OI-hierarchies

TL;DR: It is proved, that differentiating according to the functional level of recursion leads to two infinite hierarchies of recursive languages, the IO - and OI-hierarchies, which can be characterized as canonical extensions of the regular, context-free, and IO-and-macro languages, respectively.
References
More filters
Journal ArticleDOI

Finite automata and their decision problems

TL;DR: Finite automata are considered as instruments for classifying finite tapes as well as generalizations of the notion of an automaton are introduced and their relation to the classical automata is determined.
Journal ArticleDOI

One-way stack automata

TL;DR: A number of operations which either preserve sets accepted by one-way stack automata or preserve setsaccepted by deterministic one- way stack Automata are presented.
Journal ArticleDOI

Stack automata and compiling

TL;DR: A mathematical model is presented which embodies salient features of many modern compiling techniques, including deterministic linear bounded automaton and nondeterministic stack automaton, and particular instances of this more general device are noted.
Proceedings ArticleDOI

Indexed grammars -- An extension of context free grammars

TL;DR: The class of indexed languages seems to be a closer approximation to theclass of algorithmic programming languages than either the class of context free languages or the classof context sensitive languages.