Liking cljdoc? Tell your friends :D

meme-lang.run

Meme-specific eval pipeline. Wires meme stages, syntax-quote resolution, and BOM stripping into the generic run infrastructure.

Installs meme.loader by default so that require and load-file of .meme namespaces work from within the evaluated code. Callers embedding meme in a host that owns its own clojure.core/load interception can pass :install-loader? false to skip.

Extension-based lang dispatch (running .calc/.prefix files as their own langs) is opt-in via :resolve-lang-for-path — programmatic callers that pass a real .meme path don't need it; the CLI wires it. JVM/Babashka only.

Meme-specific eval pipeline. Wires meme stages, syntax-quote resolution,
and BOM stripping into the generic run infrastructure.

Installs `meme.loader` by default so that `require` and `load-file` of
`.meme` namespaces work from within the evaluated code. Callers embedding
meme in a host that owns its own `clojure.core/load` interception can
pass `:install-loader? false` to skip.

Extension-based lang dispatch (running `.calc`/`.prefix` files as their
own langs) is opt-in via `:resolve-lang-for-path` — programmatic callers
that pass a real `.meme` path don't need it; the CLI wires it.
JVM/Babashka only.
raw docstring

default-resolve-symbolclj

(default-resolve-symbol sym)

Resolve a symbol for syntax-quote, matching Clojure's SyntaxQuoteReader.

Resolve a symbol for syntax-quote, matching Clojure's SyntaxQuoteReader.
sourceraw docstring

run-fileclj

(run-file path)
(run-file path eval-fn-or-opts)

Read and eval a meme file. Returns the last result.

Optional opts: :install-loader? — default true; pass false to skip installing meme.loader (e.g. when embedding meme in a host that owns its own load interception). :resolve-lang-for-path — (fn [path opts] → run-fn-or-nil) for extension- based lang dispatch. When provided, its return value (if non-nil) runs the file instead of meme. The CLI wires this to meme.registry.

Read and eval a meme file. Returns the last result.

Optional opts:
  :install-loader?       — default true; pass false to skip installing
                           `meme.loader` (e.g. when embedding meme in a
                           host that owns its own load interception).
  :resolve-lang-for-path — (fn [path opts] → run-fn-or-nil) for extension-
                           based lang dispatch. When provided, its return
                           value (if non-nil) runs the file instead of meme.
                           The CLI wires this to meme.registry.
sourceraw docstring

run-stringclj

(run-string s)
(run-string s eval-fn-or-opts)

Read meme source string, eval each form, return the last result. Installs meme.loader unless :install-loader? false is passed.

Read meme source string, eval each form, return the last result.
Installs `meme.loader` unless `:install-loader? false` is passed.
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