Liking cljdoc? Tell your friends :D

meme.cli

Unified CLI. Commands dispatch through lang maps.

This namespace is the app — it explicitly requires each built-in lang, which triggers its self-registration in meme.registry. The registry itself imports no langs; adding a new built-in means a one-line require here plus the lang's own register-builtin! call.

Unified CLI. Commands dispatch through lang maps.

This namespace is the app — it explicitly requires each built-in lang,
which triggers its self-registration in meme.registry.  The registry
itself imports no langs; adding a new built-in means a one-line
require here plus the lang's own register-builtin! call.
raw docstring

-mainclj

(-main & args)

CLI entry point. Parses args and dispatches to subcommands.

CLI entry point. Parses args and dispatches to subcommands.
sourceraw docstring

buildclj

(build {:keys [file files out lang]})

AOT-compile .meme sources to JVM bytecode.

Pipeline: transpile to a staging dir (fixed at target/meme), then spawn clojure with that dir on the classpath and run clojure.core/compile on each discovered namespace. Output is .class files in --out (default target/classes).

Meme stops at bytecode — JAR packaging stays in your own tools.build layer. For finer control (skip the staging dir, use the meme loader at compile time, or integrate with an existing build.clj), see the recipes in doc/language-reference.md.

AOT-compile .meme sources to JVM bytecode.

Pipeline: transpile to a staging dir (fixed at `target/meme`), then
spawn `clojure` with that dir on the classpath and run
`clojure.core/compile` on each discovered namespace. Output is
`.class` files in `--out` (default `target/classes`).

Meme stops at bytecode — JAR packaging stays in your own tools.build
layer. For finer control (skip the staging dir, use the meme loader
at compile time, or integrate with an existing build.clj), see the
recipes in doc/language-reference.md.
sourceraw docstring

format-filesclj

(format-files opts)

Format meme source files in canonical style.

Reads .meme-format.edn from the working directory (walking up) if present; its settings are applied as defaults under CLI flags.

Format meme source files in canonical style.

Reads `.meme-format.edn` from the working directory (walking up) if
present; its settings are applied as defaults under CLI flags.
sourceraw docstring

helpclj

(help _)

Print CLI usage help.

Print CLI usage help.
sourceraw docstring

inspect-langclj

(inspect-lang {:keys [lang]})

Print diagnostic info about the current lang configuration.

Print diagnostic info about the current lang configuration.
sourceraw docstring

replclj

(repl {:keys [lang] :as opts})

Start an interactive meme REPL.

Start an interactive meme REPL.
sourceraw docstring

runclj

(run {:keys [file lang rest-args] :as opts})

Run a meme source file. Requires :file in opts. Binds command-line-args to the user's args (excluding the command verb and filename). The lang's :run installs the loader by default.

Run a meme source file. Requires :file in opts.
Binds *command-line-args* to the user's args (excluding the command verb and filename).
The lang's :run installs the loader by default.
sourceraw docstring

to-cljclj

(to-clj opts)

Convert meme files to Clojure and print to stdout or write to .clj files.

Convert meme files to Clojure and print to stdout or write to .clj files.
sourceraw docstring

to-memeclj

(to-meme opts)

Convert Clojure files to meme and print to stdout or write to .meme files.

Convert Clojure files to meme and print to stdout or write to .meme files.
sourceraw docstring

transpile-memeclj

(transpile-meme {:keys [file files out lang] :as opts})

Transpile .meme files to .clj in a separate output directory. Preserves relative paths. Output can be added to :paths in deps.edn so that require, load-file, and nREPL all work without runtime patching.

Transpile .meme files to .clj in a separate output directory.
Preserves relative paths. Output can be added to :paths in deps.edn
so that require, load-file, and nREPL all work without runtime patching.
sourceraw docstring

versionclj

(version _)

Print the meme version.

Print the meme version.
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