Skip to content

Instantly share code, notes, and snippets.

@halgari
Created April 3, 2018 22:18
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save halgari/f03ff8d75bde40903852a1b15dbe61cf to your computer and use it in GitHub Desktop.
Save halgari/f03ff8d75bde40903852a1b15dbe61cf to your computer and use it in GitHub Desktop.
(ns morel.core
(:import (com.oracle.truffle.api.nodes RootNode NodeInfo Node$Child))
(:require [clojure.interop :refer [defclass]]
[clojure.reflect :as reflect]))
(defclass
^{NodeInfo {:language "SL"
:description "The root of all SL execution trees"}}
SLRootNode [language
frame-descriptor
^{Node$Child []}
body-node
source-selection]
RootNode [language frame-descriptor])
(.language (first (.getDeclaredAnnotations SLRootNode)))
;; => "SL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment