<dependency>
<groupId>org.leo-lang</groupId>
<artifactId>leola-compiler</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>org.leo-lang</groupId>
<artifactId>leola-runtime</artifactId>
<version>1.2.0</version>
</dependency>
python
class Calculator {
method add(a, b) {
return a + b
}
method subtract(a, b) {
return a - b
}
method multiply(a, b) {
return a * b
}
method divide(a, b) {
return a / b
}
}
import org.leo.lang.compiler.LeolaCompiler;
import org.leo.lang.compiler.LeolaCompilationException;
public class LeolaIntegration {
public static void main(String[] args) {
LeolaCompiler compiler = new LeolaCompiler();
try {
} catch (LeolaCompilationException e) {
e.printStackTrace();
}
}
}
import org.leo.lang.runtime.Leola;
import org.leo.lang.runtime.LeolaRuntimeException;
public class LeolaIntegration {
public static void main(String[] args) {
Leola leola = new Leola();
try {
leola.run();
} catch (LeolaRuntimeException e) {
e.printStackTrace();
}
}
}