beme public API: read and print beme syntax.
Three tracks: text-to-form: beme->forms, forms->beme (all platforms) form-to-text: forms->clj (all platforms), clj->forms (JVM only) text-to-text: beme->clj (all platforms), clj->beme (JVM only)
Pipeline: beme.alpha.pipeline/run — full ctx->ctx pipeline with intermediate state
beme public API: read and print beme syntax. Three tracks: text-to-form: beme->forms, forms->beme (all platforms) form-to-text: forms->clj (all platforms), clj->forms (JVM only) text-to-text: beme->clj (all platforms), clj->beme (JVM only) Pipeline: beme.alpha.pipeline/run — full ctx->ctx pipeline with intermediate state
(beme->clj beme-src)(beme->clj beme-src opts)Convert beme source string to Clojure source string. opts map: same as beme->forms (e.g. :resolve-keyword).
Convert beme source string to Clojure source string. opts map: same as beme->forms (e.g. :resolve-keyword).
(beme->forms s)(beme->forms s opts)Read beme source string, return a vector of Clojure forms. opts map: :resolve-keyword — fn that resolves auto-resolve keyword strings ("::foo") to keywords at read time. Required on CLJS (errors without it, since cljs.reader cannot resolve :: correctly). Note: returns only parsed forms. Use run-pipeline when you need access to intermediate pipeline state (raw tokens, grouped tokens).
Read beme source string, return a vector of Clojure forms.
opts map:
:resolve-keyword — fn that resolves auto-resolve keyword strings ("::foo")
to keywords at read time. Required on CLJS (errors
without it, since cljs.reader cannot resolve :: correctly).
Note: returns only parsed forms. Use run-pipeline when you need
access to intermediate pipeline state (raw tokens, grouped tokens).(clj->beme clj-src)Convert Clojure source string to beme source string. JVM/Babashka only.
Convert Clojure source string to beme source string. JVM/Babashka only.
(clj->forms clj-src)Read Clojure source string, return a vector of forms. JVM/Babashka only — Clojure's reader is needed for full form support.
Read Clojure source string, return a vector of forms. JVM/Babashka only — Clojure's reader is needed for full form support.
(forms->beme forms)Print Clojure forms as beme source string (single-line per form).
Print Clojure forms as beme source string (single-line per form).
(forms->clj forms)Print Clojure forms as Clojure source string.
Print Clojure forms as Clojure source string.
(pprint-beme forms)(pprint-beme forms opts)Pretty-print Clojure forms as beme source string (multi-line, indented). opts: {:width 80}
Pretty-print Clojure forms as beme source string (multi-line, indented).
opts: {:width 80}(run-pipeline source)(run-pipeline source opts)Run the full pipeline: source → scan → group → parse. Returns a context map with :source, :opts, :raw-tokens, :tokens, :forms. Useful for tooling that needs intermediate pipeline state.
Run the full pipeline: source → scan → group → parse. Returns a context map with :source, :opts, :raw-tokens, :tokens, :forms. Useful for tooling that needs intermediate pipeline state.
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 |