An open API service indexing awesome lists of open source software.

https://github.com/tambapps/marcel

a scripting JVM-based programming language compatible with Android
https://github.com/tambapps/marcel

java programming-language

Last synced: 9 months ago
JSON representation

a scripting JVM-based programming language compatible with Android

Awesome Lists containing this project

README

          

# 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](https://tambapps.github.io/marcel)

## Example

Here is an example on how to code the Fibonacci suite in Marcel

```kotlin
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.

```shell
./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

```shell
mvn clean verify -Djavadoc.skip=true
```
### From release
You can run the script to install marcel from a release

```shell
./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