Skip to main content

Module expr

Module expr 

Source
Expand description

The string form of a spec: "String.Min(2)", "Min(2, Number)", "One(String, Number)". Builder names, type tokens, JSON literals and /regexp/ tokens, chained with dots and given arguments in parentheses.

Structs§

ExprError
An expression that does not parse.

Functions§

build
Read the declarative JSON of a shape, what Schema::json writes: every string is an expression (the example of a key expression is a value, so a string there is the string itself), and a "$$" key applies an expression to the object that holds it, with the "$$0", "$$1", … sidecars beside it as the arguments an expression cannot spell inline.
expr
Parse an expression into a node.
expr_apply
Apply an expression to an existing carrier: every builder of the chain takes the carrier as its final argument, so "Open" opens an object rather than replacing it. What value expressions and key expressions do.