Skip to main content

context_from_tokens

Function context_from_tokens 

Source
pub fn context_from_tokens(tokens: &[Token], input_len: usize) -> GrammarContext
Expand description

Derive grammar context from a token sequence (skipping whitespace/comments). input_len is the total length of the original input, used to detect trailing whitespace.