()
| 242 | * Idempotent — safe to call multiple times. |
| 243 | */ |
| 244 | export async function initGrammars(): Promise<void> { |
| 245 | if (parserInitialized) return; |
| 246 | |
| 247 | await Parser.init(); |
| 248 | |
| 249 | parserInitialized = true; |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * Grammars that ship their own vendored WASMs under `dist/extraction/wasm/` |
no test coverage detected