کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
434324 1441763 2007 19 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
The metafront system: Safe and extensible parsing and transformation
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
The metafront system: Safe and extensible parsing and transformation
چکیده انگلیسی

We present the metafront tool for specifying flexible, safe, and efficient syntactic transformations between languages defined by context-free grammars. The transformations are guaranteed to terminate and to map grammatically legal input to grammatically legal output.We rely on a novel parser algorithm that is designed to support gradual extensions of a grammar by allowing productions to remain in a natural style and by statically reporting ambiguities and errors in terms of individual productions as they are being added.Our tool may be used as a parser generator in which the resulting parser automatically supports a flexible, safe, and efficient macro processor, or as an extensible lightweight compiler generator for domain-specific languages. We show substantial examples of both kinds.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Science of Computer Programming - Volume 68, Issue 1, 1 August 2007, Pages 2-20