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
- Host: GitHub
- URL: https://github.com/tambapps/marcel
- Owner: tambapps
- License: apache-2.0
- Created: 2023-01-11T19:53:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T20:41:23.000Z (over 1 year ago)
- Last Synced: 2024-05-22T21:51:30.673Z (over 1 year ago)
- Topics: java, programming-language
- Language: Java
- Homepage: https://tambapps.github.io/marcel/
- Size: 15.4 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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