Skip to content

tambapps/marcel

Repository files navigation

Marcel

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

Example

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)
}

Install it

From source

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

Skipping javadoc

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

From release

You can run the script to install marcel from a release

./install/install-from-release.sh

Maven Plugin

You can find in this repository the official Maven Plugin to compile Maven projects with Marcel source code