کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
418794 681719 2015 21 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Declarative rewriting through circular nonterminal attributes
ترجمه فارسی عنوان
بازنویسی اعلامیه از طریق ویژگیهای غیرمعمول دایره ای
کلمات کلیدی
گرامرهای مشخص ویژگی های مرجع، مرتبه بالاتر، بازنویسی
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
چکیده انگلیسی


• A definition of circular NTAs, together with an evaluation algorithm.
• The introduction of the notion of computed children in an AST.
• Mappings between circular NTAs and rewrites, showing they are equivalent.
• An evaluation of the presented algorithm.

Reference attribute grammars (RAGs) provide a practical declarative means to implement programming language compilers and other tools. RAGs have previously been extended to support nonterminal attributes (also known as higher-order attributes), circular attributes, and context-dependent declarative rewrites of the abstract syntax tree. In this previous work, interdependencies between these extensions are not considered. In this article, we investigate how these extensions can interact, and still be well defined. We introduce a generalized evaluation algorithm that can handle grammars where circular attributes and rewrites are interdependent. To this end, we introduce circular nonterminal attributes, and show how RAG rewrites are equivalent to such attributes.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Computer Languages, Systems & Structures - Volume 44, Part A, December 2015, Pages 3–23
نویسندگان
, ,