Liking cljdoc? Tell your friends :D

precept.macros


add-ns-if-special-formclj

(add-ns-if-special-form x)
source

attr-only?clj

(attr-only? x)
source

binding?!clj

(binding?! x cache)
source

cache-binding!clj

(cache-binding! cache x)
source

defineclj/smacro

(define & forms)

CLJS version of define

CLJS version of define
sourceraw docstring

defqueryclj/smacro

(defquery name & body)

CLJS version of defquery

CLJS version of defquery
sourceraw docstring

defsubclj/smacro

(defsub kw & body)
source

existing-binding?clj

(existing-binding? cache x)
source

existing-session-defclj

(existing-session-def cenv session-name)

Returns session definition hash-map matching session-name from registry in compiler-env or nil if no match found

Returns session definition hash-map matching session-name from registry in compiler-env or nil
if no match found
sourceraw docstring

fact-binding-with-type-onlyclj

(fact-binding-with-type-only expr)
source

find-gen-in-lhsclj

(find-gen-in-lhs lhs)
source

generate-rulesclj

(generate-rules expr idx lhs rhs props)
source

get-rule-defsclj

(get-rule-defs lhs rhs props)
source

has-accumulator?clj

(has-accumulator? expr)
source

merge-default-optionsclj

(merge-default-options options-in ancestors-fn)
source

mk-parse-cacheclj

(mk-parse-cache)
(mk-parse-cache initial)
source

options-mapclj

(options-map sources-and-options)

Returns arguments to session minus rule sources as hash-map.

Returns arguments to `session` minus rule sources as hash-map.
sourceraw docstring

parse-as-tupleclj

(parse-as-tuple expr)
(parse-as-tuple expr cache)

Parses rule expression as if it contains just a tuple. Does not take tuple as input! [ [] ], not []

Parses rule expression as if it contains just a tuple.
Does not take tuple as input! [ [] ], not []
sourceraw docstring

parse-sexprclj

(parse-sexpr sexpr)
(parse-sexpr sexpr cache)
source

parse-sub-rhsclj

(parse-sub-rhs rhs)
source

parse-with-accumulatorclj

(parse-with-accumulator expr)
(parse-with-accumulator expr cache)

Returns Clara DSL for ?binding <- (acc/foo) from [tuple]

Returns Clara DSL for `?binding <- (acc/foo) from [tuple]`
sourceraw docstring

parse-with-fact-expressionclj

(parse-with-fact-expression expr)
(parse-with-fact-expression expr cache)

Returns Clara DSL for ?binding <- [tuple]

Returns Clara DSL for `?binding <- [tuple]`
sourceraw docstring

parse-with-opclj

(parse-with-op expr)
(parse-with-op expr cache)

Returns Clara DSL for [:op x], [:op [:op x] where x is :keyword, [:keyword] or [tuple]

Returns Clara DSL for `[:op x]`, [:op [:op x] where x is
:keyword, [:keyword] or [tuple]
sourceraw docstring

parsed-sexpr?clj

(parsed-sexpr? xs)
source

positional-valueclj

(positional-value tuple)
source

precept->clara-optionsclj

(precept->clara-options precept-options-map precept-options-keys)
source

precept-options-keysclj

source

replace-at-indexclj

(replace-at-index idx xs coll)

Removes item at idx of coll and adds new list members (xs) starting at idx

Removes item at idx of coll and adds new list members (xs) starting at idx
sourceraw docstring

rewrite-exprclj

(rewrite-expr expr cache)

Returns Clara DSL for single expression

Returns Clara DSL for single expression
sourceraw docstring

rewrite-lhsclj

(rewrite-lhs lhs)

Returns Clara DSL for rule LHS

Returns Clara DSL for rule LHS
sourceraw docstring

ruleclj/smacro

(rule name & body)

CLJS version of rule

CLJS version of rule
sourceraw docstring

sessionclj/smacro

(session m)
(session name & sources-and-options)

For CLJS. Wraps Clara's defsession macro.

For CLJS. Wraps Clara's `defsession` macro.
sourceraw docstring

session*clj/smacro

(session* m)
(session* name & sources-and-options)
source

sexpr?clj

(sexpr? x)
source

sexprs-with-bindingsclj

(sexprs-with-bindings tuple)
(sexprs-with-bindings tuple cache)

[(:id ?v) :foo 'bar'] -> [:foo (= (:id ?v) (:e this)) [?e :foo (> 42 ?v)] -> [:foo (= ?v (:v this)) (> 42 (:v this))]

[(:id ?v) :foo 'bar'] -> [:foo (= (:id ?v) (:e this))
[?e :foo (> 42 ?v)] -> [:foo (= ?v (:v this)) (> 42 (:v this))]
sourceraw docstring

sources-listclj

(sources-list sources-and-options)

Returns rule sources from arguments to session as list.

Returns rule sources from arguments to `session` as list.
sourceraw docstring

special-form?clj

(special-form? x)
source

special-formsclj

source

store-session-def-in-compiler!clj

(store-session-def-in-compiler! session-def)

Stores session definition in cljs.env/compiler. May be accessed to recreate a session with identical name, arguments.

Stores session definition in cljs.env/*compiler*. May be accessed to recreate a session with
identical name, arguments.
sourceraw docstring

test-expr?clj

(test-expr? x)
source

traceclj

(trace & args)
source

value-expr?clj

(value-expr? x)
source

variable-bindingsclj

(variable-bindings tuple)
(variable-bindings tuple cache)
source

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

× close