MCPcopy
hub / github.com/colbymchenry/codegraph / check-grammar.mjs

File check-grammar.mjs

scripts/add-lang/check-grammar.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#!/usr/bin/env node
2// Verify a tree-sitter grammar wasm is HEALTHY under the project's web-tree-sitter
3// runtime BEFORE writing an extractor. Prints the ABI version and parses a valid
4// sample many times in a multi-grammar context, to catch heap-corruption bugs

Callers

nothing calls this directly

Calls 4

initMethod · 0.80
resolveMethod · 0.80
failFunction · 0.70
resolveWasmFunction · 0.70

Tested by

no test coverage detected