• DocumentCode
    2199454
  • Title

    Grammars with macro-like productions

  • Author

    Fischer, Michael J.

  • fYear
    1968
  • fDate
    15-18 Oct. 1968
  • Firstpage
    131
  • Lastpage
    142
  • 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.
  • Keywords
    Computer languages; Mass production; Skeleton;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Switching and Automata Theory, 1968., IEEE Conference Record of 9th Annual Symposium on
  • Conference_Location
    Schenedtady, NY, USA
  • ISSN
    0272-4847
  • Type

    conf

  • DOI
    10.1109/SWAT.1968.12
  • Filename
    4569564