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.
2016
Proceedings of the 13th International Conference on Principles and Practices of Programming on the Java Platform: Virtual Machines, Languages, and Tools
13th International Conference on Principles and Practices of Programming on the Java Platform: Virtual Machines, Languages, and Tools
Lugano
August 29 - September 02, 2016
Bettini, Lorenzo
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in FLORE sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificatore per citare o creare un link a questa risorsa: https://hdl.handle.net/2158/1074318
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact