Skip to main content

parse_balanced_tokens

Function parse_balanced_tokens 

Source
pub fn parse_balanced_tokens<S: TokenStream>(
    stream: &mut S,
    result: &mut Vec<Token>,
) -> Result<bool, Box<Error>>
Expand description

Parses balanced tokens from the stream.

Returns false if the input ended before balanced tokens completed.