tree-sitter-devicetree 0.11.1__cp38-abi3-win_arm64.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ "Devicetree grammar for tree-sitter"
2
+
3
+ from ._binding import language
4
+
5
+ __all__ = ["language"]
@@ -0,0 +1 @@
1
+ def language() -> int: ...
Binary file
@@ -0,0 +1,27 @@
1
+ #include <Python.h>
2
+
3
+ typedef struct TSLanguage TSLanguage;
4
+
5
+ TSLanguage *tree_sitter_devicetree(void);
6
+
7
+ static PyObject* _binding_language(PyObject *self, PyObject *args) {
8
+ return PyLong_FromVoidPtr(tree_sitter_devicetree());
9
+ }
10
+
11
+ static PyMethodDef methods[] = {
12
+ {"language", _binding_language, METH_NOARGS,
13
+ "Get the tree-sitter language for this grammar."},
14
+ {NULL, NULL, 0, NULL}
15
+ };
16
+
17
+ static struct PyModuleDef module = {
18
+ .m_base = PyModuleDef_HEAD_INIT,
19
+ .m_name = "_binding",
20
+ .m_doc = NULL,
21
+ .m_size = -1,
22
+ .m_methods = methods
23
+ };
24
+
25
+ PyMODINIT_FUNC PyInit__binding(void) {
26
+ return PyModule_Create(&module);
27
+ }
File without changes
@@ -0,0 +1,78 @@
1
+ [
2
+ "/delete-node/"
3
+ "/delete-property/"
4
+ "/dts-v1/"
5
+ "/incbin/"
6
+ "/include/"
7
+ "/memreserve/"
8
+ "/omit-if-no-ref/"
9
+ "#define"
10
+ "#undef"
11
+ "#include"
12
+ "#if"
13
+ "#elif"
14
+ "#else"
15
+ "#endif"
16
+ "#ifdef"
17
+ "#ifndef"
18
+ ] @keyword
19
+
20
+ [
21
+ "!"
22
+ "~"
23
+ "-"
24
+ "+"
25
+ "*"
26
+ "/"
27
+ "%"
28
+ "||"
29
+ "&&"
30
+ "|"
31
+ "^"
32
+ "&"
33
+ "=="
34
+ "!="
35
+ ">"
36
+ ">="
37
+ "<="
38
+ ">"
39
+ "<<"
40
+ ">>"
41
+ ] @operator
42
+
43
+ [
44
+ ","
45
+ ";"
46
+ ] @punctuation.delimiter
47
+
48
+ [
49
+ "("
50
+ ")"
51
+ "{"
52
+ "}"
53
+ "<"
54
+ ">"
55
+ ] @punctuation.bracket
56
+
57
+ (call_expression
58
+ function: (identifier) @function)
59
+
60
+ (node
61
+ label: (identifier) @label)
62
+
63
+ (property
64
+ label: (identifier) @label)
65
+
66
+ (memory_reservation
67
+ label: (identifier) @label)
68
+
69
+ (property
70
+ name: (identifier) @property)
71
+
72
+ (identifier) @variable
73
+
74
+ (unit_address) @tag
75
+
76
+ (reference) @constant
77
+
78
+ (comment) @comment
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Joel Spadin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,25 @@
1
+ Metadata-Version: 2.1
2
+ Name: tree-sitter-devicetree
3
+ Version: 0.11.1
4
+ Summary: Devicetree grammar for tree-sitter
5
+ License: MIT
6
+ Project-URL: Homepage, https://github.com/tree-sitter/tree-sitter-devicetree
7
+ Keywords: incremental,parsing,tree-sitter,devicetree
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Topic :: Software Development :: Compilers
11
+ Classifier: Topic :: Text Processing :: Linguistic
12
+ Classifier: Typing :: Typed
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Provides-Extra: core
17
+ Requires-Dist: tree-sitter~=0.21; extra == "core"
18
+
19
+ # tree-sitter-devicetree
20
+
21
+ A [tree-sitter](https://github.com/tree-sitter/tree-sitter) grammar for Devicetree
22
+ with support for [Zephyr's](https://github.com/zephyrproject-rtos/zephyr)
23
+ superset of Devicetree syntax.
24
+
25
+ Some parts of the grammar are adapted from [tree-sitter-c](https://github.com/tree-sitter/tree-sitter-c).
@@ -0,0 +1,11 @@
1
+ tree_sitter_devicetree/__init__.py,sha256=ykO9aMlntsfcKqRDEWBbLMp494TM5W3DBLY_o0M2Ud8,98
2
+ tree_sitter_devicetree/__init__.pyi,sha256=u8xQzb5Klx7aVoyDlksLHkE7SXkMIO0hmR6yvl_L_40,28
3
+ tree_sitter_devicetree/_binding.pyd,sha256=gDKX96nC9BHajbSdpUW4wnw57w03XjGnFX1_oKIqeMw,174080
4
+ tree_sitter_devicetree/binding.c,sha256=W3q3Jqt_EWyuDjsqJ36Weidoc6wG6M0zD8ynp9aVmb8,671
5
+ tree_sitter_devicetree/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ tree_sitter_devicetree/queries/highlights.scm,sha256=UZu03Ll-vNq6fRXozQ25VCuSEwjT5KmheRYq7wG3ojQ,962
7
+ tree_sitter_devicetree-0.11.1.dist-info/LICENSE,sha256=NwWFACMb3acwkc67gNAuLw0WZVeN6bVNYFFMO6nky0U,1097
8
+ tree_sitter_devicetree-0.11.1.dist-info/METADATA,sha256=_2iXQ-sSK1Q8HxbVbRNE-LC6fusVrAF1CNh4rEzM-Tc,986
9
+ tree_sitter_devicetree-0.11.1.dist-info/WHEEL,sha256=6CQIlB1RslfVEZJStQnAjHXNeuaLHf0CA_1HyQ1toJE,100
10
+ tree_sitter_devicetree-0.11.1.dist-info/top_level.txt,sha256=jv6jDMuzAt9jDH9LI-C4CSek3wnQmz-agZrtTybV6sY,32
11
+ tree_sitter_devicetree-0.11.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.44.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp38-abi3-win_arm64
5
+
@@ -0,0 +1,2 @@
1
+ _binding
2
+ tree_sitter_devicetree