Created
April 3, 2018 22:18
-
-
Save halgari/f03ff8d75bde40903852a1b15dbe61cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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