leo_parser::tokenizer::lexer

Function eat_identifier

Source
fn eat_identifier(
    input: &mut Peekable<impl Iterator<Item = char>>,
) -> Option<String>
Expand description

Eat an identifier, that is, a string matching ‘[a-zA-Z][a-zA-Z\d_]*’, if any.