(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |