hara.common.emit-special

emit-with-deref

added in 4.0

(emit-with-deref _ _ [_ form] grammar mopts)

emits an embedded var

emit-with-eval

added in 4.0

(emit-with-eval _ _ [_ form] grammar {:keys [lang snapshot], :as mopts})

emits an eval form

emit-with-lang

added in 4.0

(emit-with-lang _ _ form grammar {:keys [snapshot], :as mopts})

emits an embedded eval

emit-with-module

added in 4.0

(emit-with-module _ _ [_ lang module-id] grammar {:keys [snapshot], :as mopts})

emits the module given snapshot in opts

emit-with-module-all-ids

added in 4.0

(emit-with-module-all-ids snapshot lang module-id allow)

emits the module given snapshot in opts

emit-with-preprocess

added in 4.0

(emit-with-preprocess form grammar {:keys [lang snapshot], :as mopts})

emits an eval form

(emit-with-preprocess ’(L.core/sub 1 2) (:grammar prep/+book-min+) {:lang :lua :module (lib/get-module +library-ext+ :lua ’L.core) :snapshot (lib/get-snapshot +library-ext+)}) => “(- 1 2)”

test-special-emit

added in 4.0

(test-special-emit form grammar mopts)

test function for special ops

test-special-loop

added in 4.0

(test-special-loop form grammar mopts)

test step for special ops