Skip to main content

Module parse

Module parse 

Source
Expand description

Command-line parser.

Input is a single line typed at the prompt. We lex it into a head word (the command name, optionally prefixed with /) and a tail of whitespace-separated tokens. Quoting is deliberately not supported — operator commands are terse by design, and anything that needs a sentence belongs in the conversation stream, not in a slash-command.

Structs§

ParsedLine

Functions§

parse_line
Tokenize an operator input line.