Expand description
§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
typr new myproject
# Check types
typr check
# Build to R
typr build
# Run
typr run
# Start REPL
typr repl
# Start LSP server
typr lspRe-exports§
pub use cli::start;pub use fs_provider::FileSystemOutputHandler;pub use fs_provider::FileSystemSourceProvider;pub use fs_provider::NativePackageChecker;pub use typr_core;
Modules§
- cli
- Command-line interface for TypR
- engine
- Build engine utilities for TypR CLI
- fs_
provider - FileSystem-based implementations of typr-core traits
- io
- I/O utilities for TypR CLI
- lsp
- LSP server for TypR.
- lsp_
parser - Token resolution and Markdown-highlighted type display for LSP hover.
- metaprogramming
- Metaprogramming utilities for TypR CLI
- project
- Project management utilities for TypR CLI
- repl
- Interactive REPL for TypR
- standard_
library - Standard library utilities for TypR CLI
Structs§
- Compile
Output - Full compilation output
- Compiler
- Main compiler interface for TypR
- InMemory
Output Handler - In-memory output handler for WASM and testing
- InMemory
Source Provider - In-memory source provider for WASM and testing
- Stub
Package Checker - Stub package checker that does nothing (for WASM)
- Transpile
Result - Result of transpilation
Enums§
- Compile
Error - Compilation errors
Traits§
- Output
Handler - Handles output from transpilation.
- Package
Checker - Checks and optionally installs R packages.
- Source
Provider - Provides source code content for compilation.