-
-
Save nha/4fa0ab3ee60c6add8cb0bccdd5174881 to your computer and use it in GitHub Desktop.
This file contains 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