Fetching contributors…
Cannot retrieve contributors at this time
56 lines (39 sloc) 1.8 KB


A simple language built using Truffle for the GraalVM.

SimpleLanguage is heavily documented to explain the how and why of writing a Truffle language. A good way to read this documentation is to generate HTML of the JavaDoc comments and read that, and then read the source alongside the comments.

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


  • JDK 8
  • maven3
  • Eclipse (optional)


  • Clone SL repository using git clone
  • Download Graal VM Development Kit from
  • Unpack the downloaded graalvm_*.tar.gz into simplelanguage/graalvm.
  • Verify that the file simplelanguage/graalvm/bin/java exists and is executable
  • Execute ./build (which just runs mvn package)


  • Create a new workspace
  • File -> Import... -> Existing Project into Workspace -> Select simplelanguage folder -> Finish


  • Execute ./sl tests/ to run a simple language source file.
  • Execute ./sl -disassemble tests/ to see assembly code for Truffle compiled functions.



  • Execute ./sl -debug tests/
  • Attach a Java remote debugger (like Eclipse) on port 8000.

Further information