Grammatical Codes Of Trees And Terminally Coded Grammars

  • Authors:
  • Andrzej Ehrenfeucht;Joost Engelfriet;Paulien ten Pas;Grzegorz Rozenberg

  • Affiliations:
  • Department of Computer Science, University of Colorado at Boulder, Boulder, CO 80309, U.S.A.;Department of Computer Science, Leiden University, P.O.Box 9512, 2300 RA Leiden, The Netherlands, pas@rulwinw.leidenuniv.nl;Department of Computer Science, Leiden University, P.O.Box 9512, 2300 RA Leiden, The Netherlands, pas@rulwinw.leidenuniv.nl;Department of Computer Science, University of Colorado at Boulder, Boulder, CO 80309, U.S.A. and Department of Computer Science, Leiden University, P.O.Box 9512, 2300 RA Leiden, The Netherlands

  • Venue:
  • Fundamenta Informaticae
  • Year:
  • 1995

Quantified Score

Hi-index 0.00

Visualization

Abstract

We introduce terminally coded (TC) grammars, which generalize parenthesis grammars in the sense that from each word ω generated by a TC grammar we can recover the unlabeled tree t underlying its derivation tree(s). More precisely, there is a length-preserving homomorphism that maps ω to an encoding of t. Basic properties of TC grammars are established. For backwards deterministic TC grammars we give a shift-reduce precedence parsing method without look-ahead, which implies that TC languages can be recognized in linear time. The class of TC languages contains all parenthesis languages, and is contained in the classes of simple precedence languages and NTS languages.