@willbooster/tree-sitter-c 31.0.0 → 33.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/grammar.js +2117 -1901
- package/package.json +3 -3
- package/src/node-types.json +5 -1
- package/tree-sitter-c.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ the trees that error recovery produces may change; such changes are released as
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
26
|
The npm package ships `tree-sitter-c.wasm` for
|
|
27
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version
|
|
27
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 17.0.1 or later within 17.x, which runs in Node.js, Bun, browsers, and Cloudflare Workers. The parser carries the ABI number of the WillBooster/tree-sitter generator (`0x5742000c`), so it loads only with that runtime; upstream tree-sitter runtimes reject it. In Node.js and Bun, load the grammar from its path:
|
|
28
28
|
|
|
29
29
|
```js
|
|
30
30
|
import { fileURLToPath } from 'node:url';
|
|
@@ -211,7 +211,7 @@ In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-
|
|
|
211
211
|
fuzzed with, at the version recorded in `Cargo.lock`:
|
|
212
212
|
|
|
213
213
|
```sh
|
|
214
|
-
cargo add willbooster-tree-sitter@
|
|
214
|
+
cargo add willbooster-tree-sitter@17.0.1 --rename tree-sitter
|
|
215
215
|
cargo add willbooster-tree-sitter-c --rename tree-sitter-c
|
|
216
216
|
```
|
|
217
217
|
|