Liking cljdoc? Tell your friends :D

odoyle.rules


*match*clj/s

Provides a map of all the matched values from inside a :then block.

Provides a map of all the matched values from inside a :then block.
sourceraw docstring

*session*clj/s

Provides the current value of the session from inside a :then block. Normally used to allow querying the session from inside a rule.

Provides the current value of the session from inside a :then block.
Normally used to allow querying the session from inside a rule.
sourceraw docstring

->ruleclj/s

(->rule [rule-name rule])
source

->sessionclj/s

(->session)

Returns an empty session.

Returns an empty session.
sourceraw docstring

add-ruleclj/s

(add-rule session rule)

Adds a rule to the given session.

Adds a rule to the given session.
sourceraw docstring

AlphaNodeclj/s

source

Bindingclj/s

source

Conditionclj/s

source

Factclj/s

source

fire-rulesclj/s

(fire-rules session)

Fires :then blocks for any rules with a complete set of matches.

Fires :then blocks for any rules with a complete set of matches.
sourceraw docstring

insertclj/s

(insert session id attr->value)
(insert session id attr value)

Inserts a fact into the session. Can optionally insert multiple facts with the same id.

Inserts a fact into the session. Can optionally insert multiple facts with the same id.
sourceraw docstring

insert!clj/s

(insert! id attr->value)
(insert! id attr value)

Same as insert but can be used inside of a :then block.

The function is DEPRECATED. It will never be removed, but prefer this instead:

(o/reset! (o/insert o/session id attr))

Same as `insert` but can be used inside of a :then block.

The function is DEPRECATED. It will never be removed, but prefer this instead:

(o/reset! (o/insert o/*session* id attr))
sourceraw docstring

JoinNodeclj/s

source

Matchclj/s

source

MemoryNodeclj/s

source

parseclj/s

(parse spec content)
source

query-allclj/s

(query-all session rule-name)

Returns a vector of maps containing all the matches for the given rule.

Returns a vector of maps containing all the matches for the given rule.
sourceraw docstring

reset!clj/s

(reset! new-session)

Mutates the session from a :then block.

Mutates the session from a :then block.
sourceraw docstring

retractclj/s

(retract session id attr)

Retracts the fact with the given id + attr combo.

Retracts the fact with the given id + attr combo.
sourceraw docstring

retract!clj/s

(retract! id attr)

Same as retract but can be used inside of a :then block.

The function is DEPRECATED. It will never be removed, but prefer this instead:

(o/reset! (o/retract o/session id attr))

Same as `retract` but can be used inside of a :then block.

The function is DEPRECATED. It will never be removed, but prefer this instead:

(o/reset! (o/retract o/*session* id attr))
sourceraw docstring

Ruleclj/s

source

rulesetclj/smacro

(ruleset rules)

Returns a vector of rules after transforming the given map.

Returns a vector of rules after transforming the given map.
sourceraw docstring

Sessionclj/s

source

Tokenclj/s

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close