Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/graalvm/simplelanguage
A simple example language built using the Truffle API.
https://github.com/graalvm/simplelanguage
Last synced: 5 days ago
JSON representation
A simple example language built using the Truffle API.
- Host: GitHub
- URL: https://github.com/graalvm/simplelanguage
- Owner: graalvm
- License: upl-1.0
- Created: 2015-04-30T22:58:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T13:28:53.000Z (6 months ago)
- Last Synced: 2024-08-01T22:42:07.012Z (3 months ago)
- Language: Java
- Homepage: http://openjdk.java.net/projects/graal/
- Size: 1.35 MB
- Stars: 602
- Watchers: 49
- Forks: 198
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-graal - Simple Language framework built using Truffle API
- awesome-list - simplelanguage
README
# 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](https://github.com/graalvm/simplelanguage/blob/master/language/src/main/java/com/oracle/truffle/sl/SLLanguage.java).
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](http://www.graalvm.org/docs/graalvm-as-a-platform/implement-language/)
# 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`.