API for the io module of formform.
API for the `io` module of `formform`.
(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.
(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?`)
(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.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |