首页> 外文会议>Generative and Transformational Techniques in Software Engineering; Lecture Notes in Computer Science; 4143 >MetaBorg in Action: Examples of Domain-Specific Language Embedding and Assimilation Using Stratego/XT
【24h】

MetaBorg in Action: Examples of Domain-Specific Language Embedding and Assimilation Using Stratego/XT

机译:行动中的MetaBorg:使用Stratego / XT的特定领域语言嵌入和同化的示例

获取原文
获取原文并翻译 | 示例

摘要

General-purpose programming languages provide limited facilities for expressing domain-specific concepts in a natural manner. All domain concepts need to be captured using the same generic syntactic and semantic constructs. Generative programming methods and program transformation techniques can be used to overcome this lack of abstraction in general-purpose languages.rnIn this tutorial we describe the MetaBorg method for embedding domain-specific languages, tailored syntactically and semantically to the application domain at hand, in a general-purpose language. MetaBorg is based on Stratego/XT, a language and toolset for the implementation of program transformation systems, which is used for the definition of syntactic embeddings and assimilation of the embedded constructs into the surrounding code.We illustrate MetaBorg with three examples. JavaSwul is a custom designed language for implementing graphical user-interfaces, which provides high-level abstractions for component composition and event-handling. JavaRegex is a new embedding of regular expression matching and string rewriting. JavaJava is an embedding of Java in Java for generating Java code. For these cases we show how Java programs in these domains become dramatically more readable, and we give an impression of the implementation of the language embeddings.
机译:通用编程语言为以自然方式表达特定于域的概念提供了有限的功能。必须使用相同的通用句法和语义构造来捕获所有领域概念。可以使用生成程序设计方法和程序转换技术来克服通用语言中这种抽象性的不足。在本教程中,我们描述了MetaBorg方法,该方法用于将特定于域的语言嵌入到特定于应用程序的句法和语义中的特定语言。通用语言。 MetaBorg基于Stratego / XT,这是一种用于实现程序转换系统的语言和工具集,用于定义语法嵌入和将嵌入式构造同化为周围的代码。我们通过三个示例来说明MetaBorg。 JavaSwul是用于实现图形用户界面的定制设计语言,它为组件组合和事件处理提供了高级抽象。 JavaRegex是正则表达式匹配和字符串重写的新嵌入。 JavaJava是Java在Java中的嵌入,用于生成Java代码。对于这些情况,我们展示了这些领域中的Java程序如何变得更具可读性,并且给人以语言嵌入的实现印象。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号