Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(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
You can’t perform that action at this time.