(call-thunk {:keys [input raw debug clip] :as meta} thunk)calls the thunk given meta to control pointer output
(macro/call-thunk {:debug true} (fn [] ptr/print)) => #{:input}
calls the thunk given meta to control pointer output
(macro/call-thunk {:debug true}
(fn [] ptr/*print*))
=> #{:input}(defmacro.! sym args & body)macro for runtime lang macros
macro for runtime lang macros
(intern-! lang tag)interns a macro for free evalutation
interns a macro for free evalutation
(intern-!-fn lang args {:keys [input raw debug clip] :as meta})interns a free pointer macro
interns a free pointer macro
(intern-def$ lang tag)intern a def fragment macro
intern a def fragment macro
(intern-def$-fn lang [op sym body :as form] smeta)interns a fragment macro
interns a fragment macro
(intern-defmacro lang tag)the intern macro function
the intern macro function
(intern-defmacro-fn lang [op sym & body :as form] smeta)function to intern a macro
function to intern a macro
(intern-defmacro-rt-fn lang form smeta)defines both a library entry as well as a runtime macro
defines both a library entry as well as a runtime macro
(intern-free lang tag)creates a defptr macro
(macro/intern-free :lua "hello") => #'std.lang.base.script-macro-test/defptr.hello
creates a defptr macro (macro/intern-free :lua "hello") => #'std.lang.base.script-macro-test/defptr.hello
(intern-free-fn lang [_ sym body] smeta)interns a free pointer in the namespace
(macro/intern-free-fn :lua '(defptr.lua hello 1) {}) => #'std.lang.base.script-macro-test/hello
interns a free pointer in the namespace
(macro/intern-free-fn :lua '(defptr.lua hello 1)
{})
=> #'std.lang.base.script-macro-test/hello(intern-grammar lang grammar)interns a bunch of macros in the namespace
(:macros (:grammar (lib/get-book +library+ :lua))) => '#{defrun defn defglobal defgen defn- deftemp defclass defabstract def}
(impl/with:library [+library+] (macro/intern-grammar :lua (:grammar (lib/get-book +library+ :lua)))) => map?
interns a bunch of macros in the namespace
(:macros (:grammar (lib/get-book +library+ :lua)))
=> '#{defrun defn defglobal defgen defn- deftemp defclass defabstract def}
(impl/with:library [+library+]
(macro/intern-grammar :lua (:grammar (lib/get-book +library+ :lua))))
=> map?(intern-highlights lang grammar)interns the highlight macros in the grammar
interns the highlight macros in the grammar
(intern-macros lang grammar)interns the top-level macros in the grammar
interns the top-level macros in the grammar
(intern-prep lang form)outputs the module and form meta
outputs the module and form meta
(intern-top-level lang tag op)(intern-top-level lang tag op grammar)interns a top level macro
(impl/with:library [+library+] (macro/intern-top-level :lua "hello" 'def)) => #'std.lang.base.script-macro-test/def.hello
(impl/with:library [+library+] ^{:module L.core} (def.hello abc 1)) => #'std.lang.base.script-macro-test/abc
(impl/with:library [+library+] (ptr/ptr-deref abc))
(impl/with:library [+library+] (ptr/ptr-display abc {})) => "def abc = 1;"
interns a top level macro
(impl/with:library [+library+]
(macro/intern-top-level :lua "hello" 'def))
=> #'std.lang.base.script-macro-test/def.hello
(impl/with:library [+library+]
^{:module L.core}
(def.hello abc 1))
=> #'std.lang.base.script-macro-test/abc
(impl/with:library [+library+]
(ptr/ptr-deref abc))
(impl/with:library [+library+]
(ptr/ptr-display abc {}))
=> "def abc = 1;"(intern-top-level-fn lang [op reserved] [_ sym & body :as form-raw] smeta)interns a top level function
interns a top level function
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |