Function lamcal::parser::tokenize [−][src]
pub fn tokenize(
input: impl IntoIterator<Item = char>
) -> Result<Vec<(Token, CharPosition)>, ParseError>
Converts a stream of char
s into a list of Token
s.
The returned tokens are paired with their position within the input stream.
Hence this function actually converts the input stream into a Vec<(Token, CharPosition)
. The position information is used for ParseError
s found by
the parse
function.