Marcel is language that compiles to Java bytecode, with a guaranteed support for Android. It also aims to use primitive types as much as possible when working with Collections.
You can learn more about this programming language on its website
Here is an example on how to code the Fibonacci suite in Marcel
println(fibonacci(10))
@cached
fun int fibonacci(int n) -> switch (n) {
0, 1 -> n
else -> fibonacci(n - 1) + fibonacci(n - 2)
}
You can run the install.sh
to install Marcel on your computer. It will build the jars using maven and then put them in a directory.
You have to be located on this project's root directory when executing the script.
./install/install-from-source.sh
If you're building it directly with maven, you can skip the javadoc by passing the -Djavadoc.skip=true
option.
Example
mvn clean verify -Djavadoc.skip=true
You can run the script to install marcel from a release
./install/install-from-release.sh
You can find in this repository the official Maven Plugin to compile Maven projects with Marcel source code