Conversion of the agent-oriented domain-specific language ALAS into JavaScript

Dejan Sredojević, Milan Vidaković, Dušan Okanović, Dejan M. Mitrović, Mirjana Drenovak Ivanović · AIP conference proceedings · 2016

This paper shows generation of JavaScript code from code written in agent-oriented domain-specific language ALAS. ALAS is an agent-oriented domain-specific language for writing software agents that are executed within XJAF middleware. Since the agents can be executed on various platforms, they must be converted into a language of the target platform. We also try to utilize existing tools and technologies to make the whole conversion process as simple as possible, as well as faster and more efficient. We use the Xtext framework that is compatible with Java to implement ALAS infrastructure - editor and code generator. Since Xtext supports Java, generation of Java code from ALAS code is straightforward. To generate a JavaScript code that will be executed within the target JavaScript XJAF implementation, Google Web Toolkit (GWT) is used.

Read the paper · More papers on PaperTik