TypR CLI
Command-line interface, REPL, and LSP server for TypR - a typed superset of R.
This crate provides the CLI layer for TypR, depending on typr-core for the core logic. It includes:
- Command-line interface with project management commands
- Interactive REPL with syntax highlighting
- Language Server Protocol (LSP) server for IDE integration
- Filesystem-based source and output handlers
Usage
# Create a new project
# Check types
# Build to R
# Run
# Start REPL
# Start LSP server
Architecture
This crate follows the same design philosophy as typr-wasm:
- Minimal wrapper - Only CLI-specific code, no business logic
- Uses typr-core abstractions - Implements
SourceProviderfor filesystem - Clear dependency separation - CLI deps (clap, tokio, tower-lsp) stay here
Modules
cli- Main CLI entry point with claprepl- Interactive REPL with rustylinelsp- LSP server with tower-lspproject- Project management commandsfs_provider- Filesystem implementations of core traitsengine- Build/compile utilitiesio- R execution utilitiesmetaprogramming- Module expansion
License
Apache-2.0