The SARL tool-chain is the set of programming tools that are used to perform a multiagent system with SARL.
As illustrated on the following figure, three types of tools are used in sequence in order to create and
run an agent-based system:
SARL Compiler: The SARL compiler transforms the source SARL language into the target language.
Several target languages may be considered by this compiler. Because most of the agent frameworks are
written in Java, the SARL compiler targets this object-oriented programming language by default.
The SARL compiler translates SARL statements into their object-oriented equivalent statements. Three different
implementations of the SARL compiler are provided: a specific command-line tool (sarlc), the Eclipse development
environment plug-in, and a Maven plug-in.
Java Compiler: The files generated by the SARL compiler when it is using the Java generator (see below) are standard Java’s files. They must be compiled with
one of the compilation tools that are available: Eclipse’s ecl, Oracle’s javac, IBM’s jikes… The result from
the Java compilation is a collection of binary files (a.k.a. byte-code files) that may be run by a virtual machine.
SARL Run-time Environment: The SARL Run-time Environment (SRE) is a collection of tools that enables the
run of an agent-based application written with SARL. Such an SRE must implement each service and feature that are
assumed to be provided by the run-time environment for running a SARL program. When the target platform is Java-based, the SRE is composed by
a standard Java Runtime Environment (JRE), and the Janus Java library, which provides the base classes for running
agents written with SARL. In this latest example, a command-line tool is provided for launching the Janus platform:
2. Other Target Languages Than Java
As explained in the previous section, the default target language for the SARL compiler is the Java object-oriented programming language.
Hopefully,you could configure the SARL compiler for enabling the generation to another target language