Liking cljdoc? Tell your friends :D

std.lang.base.emit-common


*compressed*clj


*emit-fn*clj


*emit-internal*clj


*explode*clj


*indent*clj


*max-len*clj


*multiline*clj


*trace*clj


+emit-lookup+clj


emit-arrayclj

(emit-array array grammar mopts)
(emit-array array grammar mopts emit-fn)

returns an array of emitted strings

returns an array of emitted strings
raw docstring

emit-assignclj

(emit-assign raw args grammar mopts)

emits a setter expression

emits a setter expression
raw docstring

emit-betweenclj

(emit-between raw args grammar mopts)

emits the raw symbol between two elems

emits the raw symbol between two elems
raw docstring

emit-biclj

(emit-bi raw args grammar mopts)

emits infix with two args

emits infix with two args
raw docstring

emit-class-static-invokeclj

(emit-class-static-invoke raw [sym field & args] grammar mopts)

creates

creates
raw docstring

emit-commentclj

(emit-comment _ [tag & more :as form] grammar mopts)

emits a comment

emits a comment
raw docstring

emit-commonclj

(emit-common form grammar mopts)

emits a string based on grammar

emits a string based on grammar
raw docstring

emit-common-loopclj

(emit-common-loop form grammar mopts)
(emit-common-loop form grammar mopts fn-lookup fn-default)

emits the raw string

emits the raw string
raw docstring

emit-freeclj

(emit-free {:keys [sep]} [tag & more :as form] grammar mopts)

emits string with multiline support

emits string with multiline support
raw docstring

emit-free-rawclj

(emit-free-raw sep args grammar mopts)

emits free value

emits free value
raw docstring

emit-indentclj

(emit-indent _ [tag & more :as form] grammar mopts)

emits an indented form

emits an indented form
raw docstring

emit-indexclj

(emit-index raw args grammar mopts)

creates an indexed expression

creates an indexed expression
raw docstring

emit-index-entryclj

(emit-index-entry v grammar mopts)

classifies the index entry

classifies the index entry
raw docstring

emit-infixclj

(emit-infix raw args grammar mopts)

emits infix ops

emits infix ops
raw docstring

emit-infix-defaultclj

(emit-infix-default raw args default grammar mopts)

emits infix with a default value

emits infix with a default value
raw docstring

emit-infix-ifclj

(emit-infix-if [_ & forms] grammar mopts)

emits an infix if string

emits an infix if string
raw docstring

emit-infix-if-singleclj

(emit-infix-if-single [_ check then else] grammar mopts)

checks for infix in single

(emit-infix-if '(:? true x y) helper/+default+ {}) => "true ? x : y"

checks for infix in single

(emit-infix-if '(:? true x y)
               helper/+default+
               {})
=> "true ? x : y"
raw docstring

emit-infix-preclj

(emit-infix-pre raw args grammar mopts)

emits infix with a default value

emits infix with a default value
raw docstring

emit-internalclj

(emit-internal [_ value] grammar mopts)

emits string within the form

emits string within the form
raw docstring

emit-internal-strclj

(emit-internal-str [_ value] grammar mopts)

emits internal string

emits internal string
raw docstring

emit-invokeclj

(emit-invoke _ [sym & args :as form] grammar mopts)

general invoke call, incorporating keywords

general invoke call, incorporating keywords
raw docstring

emit-invoke-argsclj

(emit-invoke-args args grammar mopts)

produces the string for invoke call

produces the string for invoke call
raw docstring

emit-invoke-kw-pairclj

(emit-invoke-kw-pair [k v] grammar mopts)

emits a kw argument pair

emits a kw argument pair
raw docstring

emit-invoke-layoutclj

(emit-invoke-layout str-array grammar mopts)

layout for invoke blocks

(emit-invoke-layout ["ab\nc" "de\nf"] helper/+default+ {}) => "(ab\nc,de\nf)"

layout for invoke blocks

(emit-invoke-layout ["ab\nc"
                     "de\nf"]
                    helper/+default+ {})
=> "(ab\nc,de\nf)"
raw docstring

emit-invoke-rawclj

(emit-invoke-raw raw args grammar mopts)

invoke call for reserved ops

invoke call for reserved ops
raw docstring

emit-invoke-staticclj

(emit-invoke-static [sym & args] grammar mopts)

generates a static call, alternat

generates a static call, alternat
raw docstring

emit-invoke-typecastclj

(emit-invoke-typecast form grammar mopts)

generates typecast expression

generates typecast expression
raw docstring

emit-macroclj

(emit-macro _ [tag & more :as form] grammar mopts)

emits form

emits form
raw docstring

emit-newclj

(emit-new raw [sym & more :as args] grammar mopts)

invokes a constructor

invokes a constructor
raw docstring

emit-opclj

(emit-op key
         [sym & args :as form]
         {:keys [reserved] :as grammar}
         mopts
         &
         [expansion])

helper for the emit op

helper for the emit op
raw docstring

emit-postclj

(emit-post raw args grammar mopts)

emits string after the arg

emits string after the arg
raw docstring

emit-postfixclj

(emit-postfix raw args grammar mopts)

emits operator before the arg

emits operator before the arg
raw docstring

emit-preclj

(emit-pre raw args grammar mopts)

emits string before the arg

emits string before the arg
raw docstring

emit-prefixclj

(emit-prefix raw args grammar mopts)

emits operator before the arg

emits operator before the arg
raw docstring

emit-reserved-valueclj

(emit-reserved-value form {:keys [reserved] :as grammar} mopts)

emits a reserved value

emits a reserved value
raw docstring

emit-returnclj

(emit-return raw args grammar mopts)

creates a return type statement

creates a return type statement
raw docstring

emit-return-baseclj

(emit-return-base raw args grammar mopts)

return base type

return base type
raw docstring

emit-return-doclj

(emit-return-do arg grammar mopts)

creates a return statement on do block

creates a return statement on `do` block
raw docstring

emit-squashclj

(emit-squash _ [tag & more] grammar mopts)

emits a squashed representation

emits a squashed representation
raw docstring

emit-symbolclj

(emit-symbol sym grammar mopts)

emits symbol allowing for custom functions

emits symbol allowing for custom functions
raw docstring

emit-symbol-classifyclj

(emit-symbol-classify sym {:keys [lang module entry book snapshot] :as mopts})

classify symbol given options

(emit-symbol-classify 't/hello {:module {:alias '{t table}}}) => '[:alias table]

(emit-symbol-classify 't.n/hello {:module {:alias '{t table}}}) => '[:unknown t.n]

classify symbol given options

(emit-symbol-classify 't/hello {:module {:alias '{t table}}})
=> '[:alias table]

(emit-symbol-classify 't.n/hello {:module {:alias '{t table}}})
=> '[:unknown t.n]
raw docstring

emit-symbol-standardclj

(emit-symbol-standard sym grammar {:keys [lang layout module] :as mopts})

emits a standard symbol

(emit-symbol-standard 'print! helper/+default+ {:layout :full}) => "printf"

(emit-symbol-standard 'print! {:token {:symbol {:replace {}} :string {:quote :single}}} {:layout :full}) => "print!"

emits a standard symbol

(emit-symbol-standard 'print! helper/+default+ {:layout :full})
=> "printf"

(emit-symbol-standard 'print!
                      {:token {:symbol    {:replace {}}
                               :string    {:quote :single}}}
                      {:layout :full})
=> "print!"
raw docstring

emit-tokenclj

(emit-token key token grammar mopts)

customisable emit function for tokens

customisable emit function for tokens
raw docstring

emit-unitclj

(emit-unit {:keys [raw default transform] :as props} [_ value] grammar mopts)

emits a unit

emits a unit
raw docstring

emit-with-decorateclj

(emit-with-decorate _ [_ opts form] grammar mopts)

customisable emit function for global vars

customisable emit function for global vars
raw docstring

emit-with-globalclj

(emit-with-global _ [_ token] grammar mopts)

customisable emit function for global vars

customisable emit function for global vars
raw docstring

emit-with-randclj

(emit-with-rand _ [_ & [type]] grammar mopts)

injects uuid for testing

injects uuid for testing
raw docstring

emit-with-uuidclj

(emit-with-uuid _ [_ & [seed0 seed1 :as seeds]] grammar mopts)

injects uuid for testing

injects uuid for testing
raw docstring

emit-wrappable?clj

(emit-wrappable? form grammar)

checks if form if wrappable

checks if form if wrappable
raw docstring

emit-wrappingclj

(emit-wrapping form grammar mopts)

emits a potentially wrapped form

emits a potentially wrapped form
raw docstring

form-keyclj

(form-key form {:keys [banned reserved] :as grammar})

returns the key associated with the form

returns the key associated with the form
raw docstring

invoke-kw-parseclj

(invoke-kw-parse args)

seperates standard and keyword arguments

seperates standard and keyword arguments
raw docstring

newline-indentclj

(newline-indent)

returns a newline with indent

returns a newline with indent
raw docstring

with-compressedcljmacro

(with-compressed & body)

formats without newlines and indents

formats without newlines and indents
raw docstring

with-indentcljmacro

(with-indent [& increment] & body)

adds indentation levels

adds indentation levels
raw docstring

with-tracecljmacro

(with-trace & body)

form to control trace option

form to control `trace` option
raw docstring

with:explodecljmacro

(with:explode & body)

form to control explode option

form to control `explode` option
raw docstring

wrapped-strclj

(wrapped-str inner path grammar)

wrapped string using :start and :end keys of grammar

wrapped string using `:start` and `:end` keys of grammar
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