【24h】

Xbase: Implementing Domain-Specific Languages for Java?

机译:Xbase:是否为Java实现特定于域的语言?

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

摘要

Xtext is an open-source framework for implementing external, textual domain-specific languages (DSLs). So far, most DSLs implemented with Xtext and similar tools focus on structural aspects such as service specifications and entities. Because behavioral aspects are significantly more complicated to implement, they are often delegated to generalpurpose programming languages. This approach introduces complex integration patterns and the DSL’s high level of abstraction is compromised. We present Xbase as part of Xtext, an expression language that can be reused via language inheritance in any DSL implementation based on Xtext. Xbase expressions provide both control structures and program expressions in a uniform way. Xbase is statically typed and tightly integrated with the Java type system. Languages extending Xbase inherit the syntax of a Java-like expression language as well as language infrastructure components, including a parser, an unparser, a linker, a compiler and an interpreter. Furthermore, the framework provides integration into the Eclipse IDE including debug and refactoring support. The application of Xbase is presented by means of a domain model language which serves as a tutorial example and by the implementation of the programming language Xtend. Xtend is a functional and object-oriented general purpose language for the Java Virtual Machine (JVM). It is built on top of Xbase which is the reusable expression language that is the foundation of Xtend.
机译:Xtext是用于实现外部文本域特定语言(DSL)的开放源代码框架。到目前为止,大多数使用Xtext和类似工具实现的DSL都专注于结构方面,例如服务规范和实体。由于行为方面的实现要复杂得多,因此通常将它们委派给通用编程语言。这种方法引入了复杂的集成模式,并且损害了DSL的高级抽象水平。我们将Xbase作为Xtext的一部分提供,Xtext是一种表达语言,可以在基于Xtext的任何DSL实现中通过语言继承来重用它。 Xbase表达式以统一的方式提供控件结构和程序表达式。 Xbase是静态类型的,并与Java类型系统紧密集成。扩展Xbase的语言继承了类似Java的表达语言的语法以及语言基础结构组件,包括解析器,解析器,链接器,编译器和解释器。此外,该框架还提供了到Eclipse IDE的集成,包括调试和重构支持。 Xbase的应用是通过用作教程示例的领域模型语言以及编程语言Xtend的实现来呈现的。 Xtend是Java虚拟机(JVM)的功能性和面向对象的通用语言。它建立在Xbase之上,Xbase是可重用的表达语言,是Xtend的基础。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号