Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 2.97 KB

splv23.md

File metadata and controls

61 lines (43 loc) · 2.97 KB
layout mathjax title
page
true
The Granule Project - SPLV23 material
<style> p, div { text-align: justify; } </style>

SPLV'23 Material

Getting Granule

You have a few options:

  • Local install: The latest release is v0.9.4.0. There are binaries for Mac OSX (arm64) and Linux, and you will also need to install Z3. However, you may need to build yourself if your platform isn't provided for.

  • Docker: Official Docker image of v0.9.4.0. The following command puts you into grepl with the local directory mounted as /host

     docker run -v $(pwd):/host --interactive docker.io/raehik/granule-repl:dev-minor
    
  • Online (old version): There is an online version although it is running an older version of Granule and won't work for all examples.

Materials

Granule Language Server and VSCode Extension

There is an extension for VSCode that you can get in the usual way from inside VSCode:

This uses the Granule Language Server (grls) if you want to get support in any other editor that support the LSP.

Additional key bindings in vscode:

  • Ctrl-e Ctrl-e: attempts to synthesis a goal in a hole (written either ? or {! !}.
  • Ctrl-e Ctrl-h: attempts to rewrite the non-empty hole under the cursor (if there is one)
  • Ctrl-e Ctrl-u: converts ASCII characters to their Unicode equivalents in the whole file.
  • Ctrl-e Ctrl-a: converts Unicode characters to their ASCII equivalents in the whole file.