pub fn parse_optional<'a, F, R>(
lexer: &mut Lexer<'a>,
expected: Token,
cb: F,
) -> ParseResult<Option<R>>
Expand description
Parses an optional tokens from a lexer.
The expected token is removed from the token stream before the callback is invoked.