Explicit pipeline composition: source → scan → group → parse → resolve → forms. Each stage is a ctx -> ctx function operating on a shared context map.
Explicit pipeline composition: source → scan → group → parse → resolve → forms. Each stage is a ctx -> ctx function operating on a shared context map.
(group ctx)Collapse opaque regions (reader conditionals, namespaced maps, syntax-quote brackets) from flat tokens into composite tokens.
Collapse opaque regions (reader conditionals, namespaced maps, syntax-quote brackets) from flat tokens into composite tokens.
(parse ctx)Parse grouped tokens into Clojure forms.
Parse grouped tokens into Clojure forms.
(run source)(run source opts)Run the full pipeline: source → tokens → grouped → forms. Returns the context map with :source, :raw-tokens, :tokens, :forms. Unlike beme.alpha.core/beme->forms, the pipeline attaches whitespace metadata (:ws) to tokens via the scan stage — present on both :raw-tokens and :tokens (the grouper preserves :ws on pass-through tokens).
Run the full pipeline: source → tokens → grouped → forms. Returns the context map with :source, :raw-tokens, :tokens, :forms. Unlike beme.alpha.core/beme->forms, the pipeline attaches whitespace metadata (:ws) to tokens via the scan stage — present on both :raw-tokens and :tokens (the grouper preserves :ws on pass-through tokens).
(scan ctx)Tokenize source text into flat tokens (no structural grouping). Attaches leading whitespace/comments to each token as :ws.
Tokenize source text into flat tokens (no structural grouping). Attaches leading whitespace/comments to each token as :ws.
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 |