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-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.
raw 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:

  • :sort-code -> to specify a different sort-code for formDNA interpretation (see formform.calc/sort-code?)
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?`)
raw 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.
raw docstring

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

× close