michelou / simplelanguage

A simple example language built using the Truffle API.

Home Page:http://openjdk.java.net/projects/graal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A simple example language built using the Truffle API.

http://openjdk.java.net/projects/graal/

License:Universal Permissive License v1.0


Languages

Language:Java 94.6%Language:Slash 3.0%Language:ANTLR 1.4%Language:Shell 0.9%Language:Jsonnet 0.1%