Liking cljdoc? Tell your friends :D

formform.io

API for the io module of formform.

API for the `io` module of `formform`.
raw docstring

(print-const const)

Given a constant, returns a string of its representation in formula notation.

Given a constant, returns a string of its representation in `formula` notation.
sourceraw docstring

(print-dna dna)

Given a formDNA, returns a string of its representation in formula notation.

Given a formDNA, returns a string of its representation in `formula` notation.
sourceraw docstring

(print-expr expr)

Given an expression, returns a string of its representation in formula notation.

Given an expression, returns a string of its representation in `formula` notation.
sourceraw docstring

read-exprclj/s

(read-expr s)
(read-expr opts s)

Given a string in formula notation, returns the corresponding data structure that can be processed by formform.expr.

Can be given a map with the following options:

Given a string in `formula` notation, returns the corresponding data structure that can be processed by `formform.expr`.

Can be given a map with the following options:

* `:sort-code` -> to specify a different `sort-code` for `formDNA` interpretation (see [[formform.calc/sort-code?]])
sourceraw docstring

uniform-exprclj/s

(uniform-expr expr)
(uniform-expr opts expr)

Given an expression, returns a uniform data structure that is a nested map with the following pattern:

{:type <expr-type>
…
:children [<uniform> …]}

Can be given an option map to support various customizations (see source), e.g. the :legacy? flag can be set to output a map that can be used as formJSON for backward compatibility with formform 1.

Given an expression, returns a `uniform` data structure that is a nested map with the following pattern:
```
{:type <expr-type>
…
:children [<uniform> …]}
```

Can be given an option map to support various customizations (see source), e.g. the `:legacy?` flag can be set to output a map that can be used as `formJSON` for backward compatibility with formform 1.
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