In this paper we present Jbase, an expression language that can be used to introduce Java expressions and statements in Xtext DSLs. Jbase extends and customizes Xbase, the Java-like expression framework shipped with Xtext. Although Xbase already provides a complete integration with the Java type system and with all the existing Java libraries, its expression language is only Java-like, and this limits its adoption in contexts where Java-like is not enough. Jbase, built on top of Xtext/Xbase, offers all the powerful features of these frameworks and provides Java syntax, and the adaption of the Xbase type system and code generator accordingly. It also keeps the simplicity of Xbase, so that, by using Jbase, it is straightforward to introduce Java expressions and statements into an Xtext DSL. We believe that Jbase is a valuable tool for embedding Java expressions in a DSL, and also for extending Java expression syntax in extensions to Java.
Jbase: embedding Java expressions in Xtext DSLs / Bettini, Lorenzo. - STAMPA. - (2016), pp. 1-6. (Intervento presentato al convegno 13th International Conference on Principles and Practices of Programming on the Java Platform: Virtual Machines, Languages, and Tools tenutosi a Lugano nel August 29 - September 02, 2016) [10.1145/2972206.2972217].
Jbase: embedding Java expressions in Xtext DSLs
BETTINI, LORENZO
2016
Abstract
In this paper we present Jbase, an expression language that can be used to introduce Java expressions and statements in Xtext DSLs. Jbase extends and customizes Xbase, the Java-like expression framework shipped with Xtext. Although Xbase already provides a complete integration with the Java type system and with all the existing Java libraries, its expression language is only Java-like, and this limits its adoption in contexts where Java-like is not enough. Jbase, built on top of Xtext/Xbase, offers all the powerful features of these frameworks and provides Java syntax, and the adaption of the Xbase type system and code generator accordingly. It also keeps the simplicity of Xbase, so that, by using Jbase, it is straightforward to introduce Java expressions and statements into an Xtext DSL. We believe that Jbase is a valuable tool for embedding Java expressions in a DSL, and also for extending Java expression syntax in extensions to Java.I documenti in FLORE sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.