Xbase: Implementing Domain-Specific Languages for Java']Java

被引:49
作者
Efftinge, Sven [1 ]
Eysholdt, Moritz [1 ]
Koehnlein, Jan [1 ]
Zarnekow, Sebastian [1 ]
Hasselbring, Wilhelm [2 ]
von Massow, Robert [2 ]
Hanus, Michael [3 ]
机构
[1] itemis AG, D-24143 Kiel, Germany
[2] Univ Kiel, Software Engn Grp, Kiel, Germany
[3] Univ Kiel, Programming Languages & Compiler Construct Grp, Kiel, Germany
关键词
Design; Languages; Domain-specific languages; Object-oriented programming; Language inheritance;
D O I
10.1145/2480361.2371419
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:112 / 121
页数:10
相关论文
共 22 条
[1]  
[Anonymous], GROOVY ACTION
[2]  
[Anonymous], SOFTWAREENTWICKLUNG
[3]  
Burmako Eugene, 2012, SELF CLEANING MA MAR
[4]  
Chafi Hassan, 2010, TECHNICAL REPORT
[5]  
CODD EF, 1970, COMMUN ACM, V13, P377, DOI 10.1145/357980.358007
[6]  
Efftinge Sven, 2011, LECT NOTES INFORM, VP-180, P554
[7]  
Efftinge Sven, 2011, XTEXT 2 2 DOCUMENTAT
[8]  
Eysholdt Moritz., 2010, Proceedings of the ACM international conference companion on Object oriented programming systems languages and applications companion, P97
[9]  
Fowler M., 2010, Domain-Specific Languages
[10]  
Ghosh D., 2010, DSLs in Action, V1st