Expand description
Auto-generated module
🤖 Generated with SplitRS
Traits§
- Input
Filter - A REPL filter that preprocesses input before parsing.
- Repl
Event Listener - A REPL event listener trait.
Functions§
- all_
option_ names - Extended option names.
- classify_
repl_ input - Classify a REPL input string.
- command_
summary - Produce a one-line summary of a REPL command.
- complete_
command - Provide command completions for a given prefix.
- format_
prompt - Format a REPL prompt based on state.
- help_
text - Return the help text for the REPL.
- highlight_
keyword - Syntax-highlight a short token for REPL display.
- is_
complete - Check if input is a complete statement.
- is_
empty_ input - Check if an input string is empty or only whitespace.
- is_
incomplete_ repl_ input - Returns true if a REPL input looks like an incomplete expression.
- is_
meta_ command - Check if an input string is a meta-command (starts with
:). - is_
safe_ command - Determine if a REPL command is “safe” (non-destructive).
- is_
tactic_ block_ start - Check if a line starts a tactic block (starts with
by). - normalize_
input - Normalize input by trimming and collapsing internal whitespace.
- parse_
bool - Parse a boolean option value.
- parse_
extended_ command - Parse an extended REPL command from a string slice.
- split_
meta_ command - Extract command name and rest from a meta-command string.
- suggest_
option - Suggest an option name for a misspelled option (Levenshtein heuristic).
- word_
count - Count words in an input string.