(edn->data expr)
Parse EDN with a user-friendly error handling into data.
Parse EDN with a user-friendly error handling into data.
(evaluate vars-atom ns expr)
Evaluate expressions from specifications such as add(#arg1, #arg2)
given
previously stored variables.
See org.concordion.internal.OgnlEvaluator
for the original evaluator.
Params:
vars-atom
atom containing a map with known variables (symbol -> value)ns
- the namespace where to look for symbols (functions) used in the expressionexpr
- the expressionEvaluate expressions from specifications such as `add(#arg1, #arg2)` given previously stored variables. See `org.concordion.internal.OgnlEvaluator` for the original evaluator. Params: - `vars-atom` atom containing a map with known variables (symbol -> value) - `ns` - the namespace where to look for symbols (functions) used in the expression - `expr` - the expression
Core functions we make directly usable in expressions
Core functions we make directly usable in expressions
(expr->edn expr)
Sanitize a Concordion function call expression so that it is a valid EDN string.
Sanitize a Concordion function call expression so that it is a valid EDN string.
(parse-expr-data expr-edn)
Ex.inputs from spec/conform:
[:assign-expr {:variable out, :equals =, :call-expr {:function myfn, :arguments ([:number 1] [:number 2])}}]
[:call-expr {:function myfn, :arguments ([:number 1] [:number 2])}]
Ex.inputs from spec/conform: 1) `[:assign-expr {:variable out, :equals =, :call-expr {:function myfn, :arguments ([:number 1] [:number 2])}}]` 2) `[:call-expr {:function myfn, :arguments ([:number 1] [:number 2])}]`
(path->var-symbol path)
From "/my/awesome-ns/MySpec.md" to 'my.awesome-ns-test/MySpec.
From "/my/awesome-ns/MySpec.md" to 'my.awesome-ns-test/MySpec.
(resolve-args vars arguments)
(resolve-args path vars arguments)
Resolve the arguments inside an expression's function call, given the known variables vars
Resolve the arguments inside an expression's function call, given the known variables `vars`
(var->path v)
(var->path v type-suffix)
From #'my.awesome-ns/MySpec to "/my/awesome-ns/MySpec.md". Args:
From #'my.awesome-ns/MySpec to "/my/awesome-ns/MySpec.md". Args: - v the var to map - type-suffix: (md|html|nil) where nil means append no suffix
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close