Module tokenizer

Source
Expand description

The tokenizer to convert Leo code text into tokens.

This module contains the tokenize() function, which breaks down string text into tokens, optionally separated by whitespace.

Re-exportsยง

pub use self::token::KEYWORD_TOKENS;

Modulesยง

lexer ๐Ÿ”’
token ๐Ÿ”’

Functionsยง

tokenize ๐Ÿ”’
Creates a new vector of spanned tokens from a given file path and source code text.
tokenize_iter ๐Ÿ”’
Yields spanned tokens from the given source code text.