Skip to main content

lex

Function lex 

Source
pub fn lex(input: &str) -> Result<Vec<Token>, ParseError>
Expand description

Tokenize input, splitting on whitespace but respecting balanced parentheses.

Content inside (...) is kept as a single token even if it contains spaces. This allows /echo(hello world) to remain one token.