graalvm / simplelanguage

A simple example language built using the Truffle API.
http://openjdk.java.net/projects/graal/
Universal Permissive License v1.0
612 stars 198 forks source link

SimpleLanguage

A simple demonstration language built using Truffle for GraalVM.

SimpleLanguage is heavily documented to explain the how and why of writing a Truffle language. A good way to find out more is to read the source with comments. Start reading here. We also like to encourage people to clone the repository and start hacking.

This repository is licensed under the permissive UPL licence. Fork it to begin your own Truffle language.

For instructions on how to get started please refer to our website

Building for a JVM

Build the project with mvn package. To run simple language using a JDK from JAVA_HOME run ./sl.

Building a Native Image

Build the project with mvn package -Pnative. To run simple language natively run ./standalone/target/slnative.