Skip to main content

parse_tokens

Function parse_tokens 

Source
pub fn parse_tokens(s: &str) -> Result<TokenStream, EmitError>
Expand description

Lex an emitter-produced Rust fragment into tokens.

ยงErrors

Returns EmitError::Lex when the fragment is not valid Rust tokens, which is an emitter bug.