کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
433968 1441634 2015 13 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Oberon-0 in Kiama
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Oberon-0 in Kiama
چکیده انگلیسی


• The Kiama library implements language processing in Scala.
• Attribute grammars, strategy-based rewriting and pretty-printing are supported.
• We describe building an Oberon-0 compiler using Kiama.
• Trait-based mixins in Scala proved useful to modularise the compiler.
• Overall, our participation in the 2011 LDTA Tool Challenge was worthwhile.

The Kiama language processing library is a collection of domain-specific languages for software language processing embedded in the Scala programming language. The standard Scala parsing library is augmented by Kiama's facilities for defining attribute grammars, strategy-based rewriting rules and combinator-based pretty-printing. We describe how we used Kiama to implement an Oberon-0 compiler as part of the 2011 LDTA Tool Challenge. In addition, we explain how Scala enabled a modular approach to the challenge. Traits were used to define components that addressed the processing tasks for each Oberon-0 sub-language. Combining the traits as mixins yielded the challenge artefacts. We conclude by reflecting on the strengths and weaknesses of Kiama that were revealed by the challenge and point to some future directions.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Science of Computer Programming - Volume 114, 15 December 2015, Pages 20–32
نویسندگان
, ,