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: 1 day 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 (7 months ago)
- Last Synced: 2024-11-20T10:48:32.634Z (22 days ago)
- Language: Java
- Homepage: http://openjdk.java.net/projects/graal/
- Size: 1.35 MB
- Stars: 613
- Watchers: 47
- Forks: 199
- Open Issues: 32
-
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`.