Liking cljdoc? Tell your friends :D

patterning.dynamic


evaluate-patternclj/s

(evaluate-pattern sci-ctx pattern-code)

Evaluate a pattern string using the shared SCI context. Returns the evaluated result.

Evaluate a pattern string using the shared SCI context.
Returns the evaluated result.
sourceraw docstring

evaluate-pattern-with-error-handlingclj/s

(evaluate-pattern-with-error-handling sci-ctx pattern-code)

Evaluate a pattern string with comprehensive error handling. Returns a map with :success, :result, and :error keys.

Evaluate a pattern string with comprehensive error handling.
Returns a map with :success, :result, and :error keys.
sourceraw docstring

get-core-allow-listclj/s

(get-core-allow-list)

Returns the core Clojure/ClojureScript functions that need to be explicitly allowed in SCI. This centralizes the :allow list to avoid duplication.

Returns the core Clojure/ClojureScript functions that need to be explicitly allowed in SCI.
This centralizes the :allow list to avoid duplication.
sourceraw docstring

get-key-bindingsclj/s

(get-key-bindings)

Returns the key bindings that patterns expect to be available. This is shared between both SCI context functions.

Returns the key bindings that patterns expect to be available.
This is shared between both SCI context functions.
sourceraw docstring

get-patterning-namespacesclj/s

(get-patterning-namespaces)

Returns the mapping of SCI namespace names to their public functions. This is shared between both SCI context functions.

Returns the mapping of SCI namespace names to their public functions.
This is shared between both SCI context functions.
sourceraw docstring

get-sci-contextclj/s

(get-sci-context)

Create a shared SCI context for pattern evaluation. This function provides the same evaluation environment for both CLI and workbench.

Create a shared SCI context for pattern evaluation.
This function provides the same evaluation environment for both CLI and workbench.
sourceraw docstring

get-sci-context-configclj/s

(get-sci-context-config)

Shared configuration for SCI contexts across platforms. Returns the common parts that both Clojure and ClojureScript can use.

Shared configuration for SCI contexts across platforms.
Returns the common parts that both Clojure and ClojureScript can use.
sourceraw docstring

get-sci-namespace-configclj/s

(get-sci-namespace-config)

Returns the SCI namespace configuration for the second SCI context function. This creates SCI namespaces and copies vars from the patterning namespaces.

Returns the SCI namespace configuration for the second SCI context function.
This creates SCI namespaces and copies vars from the patterning namespaces.
sourceraw docstring

include-fromclj/s

(include-from sci-vars namespace-sym function-syms)

Helper function to extract SCI vars from a namespace map. Usage: (include-from sci-vars 'p-color-sci ['p-color 'hex-color 'paint]) Returns a map of function names to their SCI vars.

Helper function to extract SCI vars from a namespace map.
Usage: (include-from sci-vars 'p-color-sci ['p-color 'hex-color 'paint])
Returns a map of function names to their SCI vars.
sourceraw 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