Liking cljdoc? Tell your friends :D

std.lang.base.script-macro


+form-allow+clj


body-arglistsclj

(body-arglists body)

makes arglists from body

makes arglists from body
raw docstring

call-thunkclj

(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}
raw docstring

defmacro.!cljmacro

(defmacro.! sym args & body)

macro for runtime lang macros

macro for runtime lang macros
raw docstring

intern-!clj

(intern-! lang tag)

interns a macro for free evalutation

interns a macro for free evalutation
raw docstring

intern-!-fnclj

(intern-!-fn lang args {:keys [input raw debug clip] :as meta})

interns a free pointer macro

interns a free pointer macro
raw docstring

intern-def$clj

(intern-def$ lang tag)

intern a def fragment macro

intern a def fragment macro
raw docstring

intern-def$-fnclj

(intern-def$-fn lang [op sym body :as form] smeta)

interns a fragment macro

interns a fragment macro
raw docstring

intern-defmacroclj

(intern-defmacro lang tag)

the intern macro function

the intern macro function
raw docstring

intern-defmacro-fnclj

(intern-defmacro-fn lang [op sym & body :as form] smeta)

function to intern a macro

function to intern a macro
raw docstring

intern-defmacro-rt-fnclj

(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
raw docstring

intern-freeclj

(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
raw docstring

intern-free-fnclj

(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
raw docstring

intern-grammarclj

(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?
raw docstring

intern-highlightsclj

(intern-highlights lang grammar)

interns the highlight macros in the grammar

interns the highlight macros in the grammar
raw docstring

intern-inclj

(intern-in prefix tag val & [namespace])

interns a macro

interns a macro
raw docstring

intern-macrosclj

(intern-macros lang grammar)

interns the top-level macros in the grammar

interns the top-level macros in the grammar
raw docstring

intern-prepclj

(intern-prep lang form)

outputs the module and form meta

outputs the module and form meta
raw docstring

intern-top-levelclj

(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;"
raw docstring

intern-top-level-fnclj

(intern-top-level-fn lang [op reserved] [_ sym & body :as form-raw] smeta)

interns a top level function

interns a top level function
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close