pub fn context_from_tokens(tokens: &[Token], input_len: usize) -> GrammarContextExpand 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.