hara.common.emit

+option-keys+

+steps+

+test-grammar+

default-grammar

added in 4.0

(default-grammar & [m])

returns the default grammar

(emit/default-grammar) => map?

emit

added in 4.0

(emit form grammar namespace mopts)

emits form to output string

emit-main

added in 4.0

(emit-main form grammar mopts)

creates the raw emit with loop

(emit/emit-main ’(not (+ 1 2 3)) +grammar+ {}) => “!(1 + 2 + 3)”

emit-main-loop

added in 4.0

(emit-main-loop form grammar mopts)

creates the raw emit

(emit/emit-main-loop ’(not (+ 1 2 3)) +grammar+ {}) => “!((+ 1 2 3))”

prep-form

added in 4.0

(prep-form step form grammar book mopts)

prepares the form

prep-options

added in 4.0

(prep-options meta)

prepares the options for processing

with:emit

macro

added in 4.0

(with:emit & body)

binds the top-level emit function to common/emit-fn

(emit/with:emit (common/emit-fn ’(not (+ 1 2 3)) +grammar+ {})) => “!(1 + 2 + 3)”