@algosail/tree-sitter 0.1.0 → 0.1.1
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/package.json +8 -22
- package/src/grammar.json +4 -2
- package/src/node-types.json +1 -0
- package/src/parser.c +308 -296
- package/src/tree_sitter/alloc.h +4 -4
- package/src/tree_sitter/array.h +112 -72
- package/src/tree_sitter/parser.h +28 -7
- package/tree-sitter-sail.wasm +0 -0
- package/binding.gyp +0 -30
- package/bindings/node/binding.cc +0 -20
- package/bindings/node/index.d.ts +0 -28
- package/bindings/node/index.js +0 -7
package/package.json
CHANGED
|
@@ -1,30 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@algosail/tree-sitter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Tree-sitter grammar for the Sail language",
|
|
5
5
|
"main": "bindings/node",
|
|
6
6
|
"types": "bindings/node",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "
|
|
8
|
+
"build:wasm": "tree-sitter build --wasm",
|
|
9
|
+
"build:native": "node-gyp rebuild",
|
|
9
10
|
"generate": "tree-sitter generate",
|
|
10
|
-
"install": "
|
|
11
|
-
"prebuildify": "prebuildify --napi --strip"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"node-addon-api": "^7.1.0",
|
|
15
|
-
"node-gyp-build": "^4.8.0"
|
|
16
|
-
},
|
|
17
|
-
"peerDependencies": {
|
|
18
|
-
"tree-sitter": "^0.21.0"
|
|
19
|
-
},
|
|
20
|
-
"peerDependenciesMeta": {
|
|
21
|
-
"tree_sitter": {
|
|
22
|
-
"optional": true
|
|
23
|
-
}
|
|
11
|
+
"install": "echo 'Skipping native build. Run npm run build:native manually if needed.'"
|
|
24
12
|
},
|
|
25
13
|
"devDependencies": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
14
|
+
"node-addon-api": "^8.6.0",
|
|
15
|
+
"tree-sitter-cli": "^0.26.7"
|
|
28
16
|
},
|
|
29
17
|
"tree-sitter": [
|
|
30
18
|
{
|
|
@@ -47,10 +35,8 @@
|
|
|
47
35
|
"license": "MIT",
|
|
48
36
|
"files": [
|
|
49
37
|
"grammar.js",
|
|
50
|
-
"binding.gyp",
|
|
51
|
-
"prebuilds/**",
|
|
52
|
-
"bindings/node/*",
|
|
53
38
|
"queries/*",
|
|
54
|
-
"src/**"
|
|
39
|
+
"src/**",
|
|
40
|
+
"*.wasm"
|
|
55
41
|
]
|
|
56
42
|
}
|
package/src/grammar.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/grammar.schema.json",
|
|
2
3
|
"name": "sail",
|
|
3
4
|
"rules": {
|
|
4
5
|
"source_file": {
|
|
@@ -629,5 +630,6 @@
|
|
|
629
630
|
"precedences": [],
|
|
630
631
|
"externals": [],
|
|
631
632
|
"inline": [],
|
|
632
|
-
"supertypes": []
|
|
633
|
-
}
|
|
633
|
+
"supertypes": [],
|
|
634
|
+
"reserved": {}
|
|
635
|
+
}
|