کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
418045 681604 2015 14 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
An on-the-fly grammar modification mechanism for composing and defining extensible languages
ترجمه فارسی عنوان
یک مکانیسم اصلاح گرامری بر روی پرواز برای ایجاد و تعریف زبان های قابل گسترش است
کلمات کلیدی
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
چکیده انگلیسی


• We evaluate an adaptable model based on Parsing Expressions Grammars, called APEG.
• we define the syntax of SugarJ and Fortress using APEG.
• We analyze the flexible mechanism of APEG to change the grammar on-the-fly.
• The flexibility to modify grammars allows APEG to reuse other grammars definitions.
• The mechanism of on-the-fly modification of grammars allows composing languages.

Adaptable Parsing Expression Grammar (APEG) is a formal method for defining the syntax of programming languages. It provides an on-the-fly mechanism to perform modifications of the syntax of the language during parsing time. The primary goal of this dynamic mechanism is the formal specification and the automatic parser generation for extensible languages. In this paper, we show how APEG can be used for the definition of the extensible languages SugarJ and Fortress, clarifying many aspects of the syntax of these languages. We also show that the mechanism for on-the-fly modification of syntax rules can be useful for defining grammars in a modular way, implementing almost all types of language composition in the context of specification of extensible languages.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Computer Languages, Systems & Structures - Volume 42, July 2015, Pages 46–59
نویسندگان
, , ,