Skip to main content

Crate rl_lang

Crate rl_lang 

Source
Expand description

rl_lang - the core library crate.

Re-exports all subsystems so both the CLI binary (main.rs) and external consumers (LSP, tests, benchmarks) can reach them through one crate.

Feature flags gate optional subsystems:

FeatureEnables
evalchecker, interpreter
repl_tuirepl
lsp[lsp]
debugverbose log:: output throughout the pipeline

Modulesยง

ast
Abstract Syntax Tree (AST) node definitions.
checker
Static type checker for rl - runs after parsing, before evaluation.
docs
In-process documentation system for the rl docs CLI command.
interpreter
The rl tree-walking interpreter.
lexer
The lexer - converts raw source text into a flat Vec<Token>.
logic_loops
Pipeline driver functions.
parser
The parser - transforms a flat Vec<Token> produced by the lexer into a Vec<Statement> that represents the abstract syntax tree (AST).
repl
TUI REPL for rl, built on [ratatui] and [crossterm].
resolver
Variable resolution pass - runs between parsing and evaluation.
tooling
Tooling support for rl projects.
utils
Shared utilities used across the rl pipeline.