Liking cljdoc? Tell your friends :D

blancas.kern.expr

Support for the evaluation of expressions.

Support for the evaluation of expressions.
raw docstring

add-opclj

Additive operator: addition or subtraction.

Additive operator: addition or subtraction.
sourceraw docstring

and-opclj

Parses the logical AND operator.

Parses the logical AND operator.
sourceraw docstring

chainlclj

(chainl p op a)

Parses a value or a sequence or values separated by a binary operator. If there's no initial value, defaults to a. Associates to the left.

Parses a value or a sequence or values separated by a binary operator.
If there's no initial value, defaults to a. Associates to the left.
sourceraw docstring

chainl*clj

(chainl* tok p op a)

Parses a value or a sequence or values separated by a binary operator. If there's no initial value, defaults to a. Associates to the left. The resulting value is an AST node.

Parses a value or a sequence or values separated by a binary operator.
If there's no initial value, defaults to a. Associates to the left.
The resulting value is an AST node.
sourceraw docstring

chainl1clj

(chainl1 p op)

Parses p; as long as there is a binary operator op, reads the op and another instance of p, then applies the operator on both values. The operator associates to the left.

Parses p; as long as there is a binary operator op, reads the op and
another instance of p, then applies the operator on both values.
The operator associates to the left.
sourceraw docstring

chainl1*clj

(chainl1* tok p op)

Parses p; as long as there is a binary operator op, reads the op and another p, then makes an AST node with the operator on both values. The operator associates to the left.

Parses p; as long as there is a binary operator op, reads the op and
another p, then makes an AST node with the operator on both values.
The operator associates to the left.
sourceraw docstring

chainrclj

(chainr p op a)

Parses a value or a sequence or values with infix binary operators. If there's no initial value, defaults to a. Associates to the right.

Parses a value or a sequence or values with infix binary operators.
If there's no initial value, defaults to a. Associates to the right.
sourceraw docstring

chainr*clj

(chainr* tok p op a)

Parses a value or a sequence or values with infix binary operators. If there's no initial value, defaults to a. Associates to the right. The operator associates to the right.

Parses a value or a sequence or values with infix binary operators.
If there's no initial value, defaults to a. Associates to the right.
The operator associates to the right.
sourceraw docstring

chainr1clj

(chainr1 p op)

Parses p; as long as there is a binary operator op, reads the op and calls itself to compute the rest of the expression, then it applies the operator on both values. The operator associates to the right.

Parses p; as long as there is a binary operator op, reads the op and
calls itself to compute the rest of the expression, then it applies
the operator on both values. The operator associates to the right.
sourceraw docstring

chainr1*clj

(chainr1* tok p op)

Parses p; as long as there is a binary operator op, reads the op and calls itself to make the rest of the expression AST, then it makes an AST node with the operator on both values. The operator associates to the right.

Parses p; as long as there is a binary operator op, reads the op and
calls itself to make the rest of the expression AST, then it makes
an AST node with the operator on both values. The operator associates
to the right.
sourceraw docstring

mul-opclj

Multiplicative operator: multiplication, division, or modulo.

Multiplicative operator: multiplication, division, or modulo.
sourceraw docstring

or-opclj

Parses the logical OR operator.

Parses the logical OR operator.
sourceraw docstring

postfixclj

(postfix p op a)

Like postfix1, but both the operator and operand are optional. If no operand is given, it returns the default value a.

Like postfix1, but both the operator and operand are optional.
If no operand is given, it returns the default value a.
sourceraw docstring

postfix*clj

(postfix* tok p op a)

Like postfix1*, but both the operator and operand are optional. If no operand is given, it returns the default value a.

Like postfix1*, but both the operator and operand are optional.
If no operand is given, it returns the default value a.
sourceraw docstring

postfix1clj

(postfix1 p op)

Parses an operand p followed by zero or more operators. It applies the parsed functions to the operand or the result of a previous application.

Parses an operand p followed by zero or more operators. It applies the
parsed functions to the operand or the result of a previous application.
sourceraw docstring

postfix1*clj

(postfix1* tok p op)

Parses an operand p followed by zero or more operators op. It builds an AST node for each parsed function, where the operand is a node for a value or a previous application of a postfix operator.

Parses an operand p followed by zero or more operators op. It builds
an AST node for each parsed function, where the operand is a node
for a value or a previous  application of a postfix operator.
sourceraw docstring

pow-opclj

Parses the POW operator.

Parses the POW operator.
sourceraw docstring

prefixclj

(prefix p op a)

Like prefix1, but both the operator and operand are optional. If no operand is given, it returns the default value a.

Like prefix1, but both the operator and operand are optional.
If no operand is given, it returns the default value a.
sourceraw docstring

prefix*clj

(prefix* tok p op a)

Like prefix1*, but both the operator and operand are optional. If no operand is given, it returns the default value a.

Like prefix1*, but both the operator and operand are optional.
If no operand is given, it returns the default value a.
sourceraw docstring

prefix1clj

(prefix1 p op)

Parses zero or more operators op before an operand p. It applies the parsed functions to the operand in reverse order of parsing.

Parses zero or more operators op before an operand p. It applies
the parsed functions to the operand in reverse order of parsing.
sourceraw docstring

prefix1*clj

(prefix1* tok p op)

Parses zero or more operators op before an operand p. It builds an AST node for each parsed function, where the operand is a node for a value or a further application of a prefix operator.

Parses zero or more operators op before an operand p. It builds an
AST node for each parsed function, where the operand is a node
for a value or a further application of a prefix operator.
sourceraw docstring

rel-opclj

Parses one of the relational operators.

Parses one of the relational operators.
sourceraw docstring

uni-opclj

Unary prefix operator: logical not or numeric minus.

Unary prefix operator: logical not or numeric minus.
sourceraw docstring

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

× close