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.
(-main & args)CLI entry point. Parses args and dispatches to subcommands.
CLI entry point. Parses args and dispatches to subcommands.
(compile-meme {:keys [file files out lang] :as opts})Compile .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.
Compile .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.
(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.
(inspect-lang {:keys [lang]})Print diagnostic info about the current lang configuration.
Print diagnostic info about the current lang configuration.
(repl {:keys [lang] :as opts})Start an interactive meme REPL.
Start an interactive meme REPL.
(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.
(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.
(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.
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 |