pub fn parser_for(grammar: &str) -> Option<Parser>Expand description
Create a parser for a specific grammar.
The grammar name should match tree-sitter grammar names (e.g., “python”, “rust”, “typescript”). Emits a warning to stderr on the first call where the grammar fails to load.