Liking cljdoc? Tell your friends :D

clara.rules.dsl

Implementation of the defrule-style DSL for Clara. Most users should simply use the clara.rules namespace.

Implementation of the defrule-style DSL for Clara. Most users should simply use the clara.rules namespace.
raw docstring

add-allowed-ns-props!clj

(add-allowed-ns-props! & props)

Adds the given properties to the set of allowed properties for rules and queries.

Adds the given properties to the set of allowed properties for rules and queries.
sourceraw docstring

allowed-ns-props-setclj

source

build-queryclj

(build-query name body env form-meta)

Function used to parse and build a query using the DSL syntax.

Function used to parse and build a query using the DSL syntax.
sourceraw docstring

build-ruleclj

(build-rule name body rule-env rule-meta & {:as extra-properties})

Function used to parse and build a rule using the DSL syntax.

Function used to parse and build a rule using the DSL syntax.
sourceraw docstring

build-rule-actionclj

(build-rule-action name body rule-env rule-meta)

Function used to parse and build a rule action using the DSL syntax.

Function used to parse and build a rule action using the DSL syntax.
sourceraw docstring

destructuring-sym?clj

(destructuring-sym? sym)
source

get-ns-propsclj

(get-ns-props ns)

Returns a map of namespace properties for rules and queries, or nil if none are found.

Returns a map of namespace properties for rules and queries, or nil if none are found.
sourceraw docstring

local-symscljmacro

(local-syms)
source

opsclj

source

parse-querycljmacro

(parse-query params lhs)

Macro used to dynamically create a new rule using the DSL syntax.

Macro used to dynamically create a new rule using the DSL syntax.
sourceraw docstring

parse-query*clj

(parse-query* params lhs query-env query-meta)

Creates a query from the DSL syntax using the given environment map.

Creates a query from the DSL syntax using the given environment map.
sourceraw docstring

parse-rulecljmacro

(parse-rule lhs rhs)
(parse-rule lhs rhs properties)

Macro used to dynamically create a new rule using the DSL syntax.

Macro used to dynamically create a new rule using the DSL syntax.
sourceraw docstring

parse-rule*clj

(parse-rule* lhs rhs properties rule-env rule-meta)

Creates a rule from the DSL syntax using the given environment map. ns should be bound to the namespace the rule is meant to be defined in.

Creates a rule from the DSL syntax using the given environment map.  *ns*
should be bound to the namespace the rule is meant to be defined in.
sourceraw docstring

parse-rule-action*clj

(parse-rule-action* lhs rhs properties rule-env rule-meta)

Creates a rule action from the DSL syntax using the given environment map. ns should be bound to the namespace the rule is meant to be defined in.

Creates a rule action from the DSL syntax using the given environment map.  *ns*
should be bound to the namespace the rule is meant to be defined in.
sourceraw docstring

set-allowed-ns-props!clj

(set-allowed-ns-props! & props)

Sets the allowed properties for rules and queries to the given set of properties.

Sets the allowed properties for rules and queries to the given set of properties.
sourceraw docstring

split-lhs-rhsclj

(split-lhs-rhs rule-body)

Given a rule with the =>, splits the left- and right-hand sides.

Given a rule with the =>, splits the left- and right-hand sides.
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