K-Visit Attribute Grammars

Authors

  • Hanne Riis
  • Sven Skyum

DOI:

https://doi.org/10.7146/dpb.v9i121.6539

Abstract

An attribute grammar G is k-visit if for any derivation tree t of G it is possible to evaluate all the attributes associated with t by walking through t in such a way that no node in t is visited more than k times.

We show in this paper that any well-defined attribute grammar G is k-visit for some k. Furthermore it is shown using a pumping argument, that given a well-defined grammar G and an integer k it is decidable whether G is k-visit. Thus we can effectively for any well-defined attribute grammar G find the minimal k such that G is k-visit. Finally we show that the k-visit attribute grammars specify a proper hierarchy with respect to translations.

Author Biographies

Hanne Riis

Sven Skyum

Downloads

Published

1980-06-01

How to Cite

Riis, H., & Skyum, S. (1980). K-Visit Attribute Grammars. DAIMI Report Series, 9(121). https://doi.org/10.7146/dpb.v9i121.6539