12 releases (stable)
Uses new Rust 2024
| 2.2.0 | Sep 24, 2026 |
|---|---|
| 2.1.0 | Sep 10, 2026 |
| 2.0.0 | Aug 25, 2026 |
| 1.2.1 | Aug 13, 2026 |
| 0.1.5 | Jul 14, 2026 |
#221 in Command-line interface
2MB
41K
SLoC
rl-cli
Command-line interface for the rl-lang toolchain
Part of the rl-lang workspace. This is the crate that builds the rl binary - the top-level entry point users install to write and run rl-lang programs.
Subcommands
| Subcommand | Action |
|---|---|
rl run <file> |
Lex, parse, and evaluate a single .rl file (--vm to pick the VM backend) |
rl dev |
Read rl.toml, lex, parse, and evaluate the project entry point (--vm to pick the VM backend) |
rl check <file> |
Lex, parse, and type-check a file, reporting errors without running it |
rl new <name> |
Scaffold a new project directory |
rl docs [topic] |
Print stdlib / concept / tutorial reference (Markdown, JSON, or an interactive TUI) |
rl workflows |
Scaffold GitHub Actions workflow files for a project |
rl package |
Embed a compiled program into a standalone artifact |
rl format |
Format a .rl source file |
rl repl |
Start the interactive TUI REPL (repl feature) |
rl lsp |
Start the LSP server over stdio (lsp feature) |
Modules
| Module | Contents |
|---|---|
main |
clap-based CLI parsing and subcommand dispatch |
logic_loops |
Shared lex / parse / eval loop helpers used by several subcommands |
Features
default-repl,vm,docs,docs-tuivm- bytecode VM backend (rl-vm)run- enable the corresponding execution backendsrepl- pulls inrl-repl(requires thevmbackend)docs-docssubcommand (pulls inrl-docs)docs-tui- enablesrl-docs'stuifeature (impliesdocs)lsp- pulls inrl-lspandtokiodebug- enableslog/env_logger
The build matrix (build-variants.sh) combines these into engine variants:
rl (vm), rl_vm (vm only, rlc), optionally stripped of docs/repl,
plus rl_lsp.
Dependencies
Depends on nearly every other crate in the workspace: rl-utils, rl-lexer, rl-ast, rl-parser, rl-resolver, rl-vm, rl-checker, rl-docs, rl-tooling, and optionally rl-repl, rl-lsp; plus clap, toml, and serde.
Usage
cargo build --release
# binary at target/release/rl
rl run script.rl
rl new my-project
rl docs std::math
rl repl
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option - see LICENSE.md for the full text and why both are offered.
Dependencies
~7–59MB
~1M SLoC