کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
421865 684979 2011 18 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Attribute Grammars as Recursion Schemes over Cyclic Representations of Zippers
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Attribute Grammars as Recursion Schemes over Cyclic Representations of Zippers
چکیده انگلیسی

Evaluation of attributes w.r.t. an attribute grammar can be obtained by inductively computing a function expressing the dependencies of the synthesized attributes on inherited attributes. This higher-order functional approach to attribute grammars leads to a straightforward implementation using a higher-order lazy functional language like Haskell. The resulting evaluation functions are, however, not easily amenable to optimization rules. We present an alternative first-order functional interpretation of attribute grammars where the input tree is replaced with an extended cyclic tree each node of which is aware of its context viewed as an additional child tree. By the way, we demonstrate that these cyclic representations of zippers (trees with their context) are natural generalizations of doubly-linked lists to trees over an arbitrary signature.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Electronic Notes in Theoretical Computer Science - Volume 229, Issue 5, 8 March 2011, Pages 39-56