tree-sitter-sdml 0.3.2__tar.gz → 0.4.3__tar.gz

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.
Files changed (21) hide show
  1. tree_sitter_sdml-0.4.3/PKG-INFO +132 -0
  2. tree_sitter_sdml-0.4.3/README.md +101 -0
  3. tree_sitter_sdml-0.4.3/bindings/python/tree_sitter_sdml.egg-info/PKG-INFO +132 -0
  4. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/pyproject.toml +1 -1
  5. tree_sitter_sdml-0.4.3/src/parser.c +20316 -0
  6. tree_sitter_sdml-0.3.2/PKG-INFO +0 -655
  7. tree_sitter_sdml-0.3.2/README.md +0 -624
  8. tree_sitter_sdml-0.3.2/bindings/python/tree_sitter_sdml.egg-info/PKG-INFO +0 -655
  9. tree_sitter_sdml-0.3.2/src/parser.c +0 -15761
  10. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/LICENSE +0 -0
  11. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/bindings/python/tree_sitter_sdml/__init__.py +0 -0
  12. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/bindings/python/tree_sitter_sdml/__init__.pyi +0 -0
  13. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/bindings/python/tree_sitter_sdml/binding.c +0 -0
  14. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/bindings/python/tree_sitter_sdml/py.typed +0 -0
  15. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/bindings/python/tree_sitter_sdml.egg-info/SOURCES.txt +0 -0
  16. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/bindings/python/tree_sitter_sdml.egg-info/dependency_links.txt +0 -0
  17. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/bindings/python/tree_sitter_sdml.egg-info/not-zip-safe +0 -0
  18. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/bindings/python/tree_sitter_sdml.egg-info/requires.txt +0 -0
  19. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/bindings/python/tree_sitter_sdml.egg-info/top_level.txt +0 -0
  20. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/setup.cfg +0 -0
  21. {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.3}/setup.py +0 -0
@@ -0,0 +1,132 @@
1
+ Metadata-Version: 2.2
2
+ Name: tree-sitter-sdml
3
+ Version: 0.4.3
4
+ Summary: SDML grammar for tree-sitter
5
+ License: Copyright 2023 Simon Johnston <johnstonskj@gmail.com>
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+
19
+ Project-URL: Homepage, https://github.com/tree-sitter/tree-sitter-sdml
20
+ Keywords: incremental,parsing,tree-sitter,sdml
21
+ Classifier: Intended Audience :: Developers
22
+ Classifier: License :: OSI Approved :: MIT License
23
+ Classifier: Topic :: Software Development :: Compilers
24
+ Classifier: Topic :: Text Processing :: Linguistic
25
+ Classifier: Typing :: Typed
26
+ Requires-Python: >=3.8
27
+ Description-Content-Type: text/markdown
28
+ License-File: LICENSE
29
+ Provides-Extra: core
30
+ Requires-Dist: tree-sitter~=0.21; extra == "core"
31
+
32
+ # Tree-Sitter grammar for SDML
33
+
34
+ ![SDML Logo Text](https://raw.githubusercontent.com/sdm-lang/.github/main/profile/horizontal-text.svg)
35
+
36
+ A [tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for the Simple Domain Modeling Language (SDML). For more
37
+ information on the language, see the [documentation](https://sdml.io/).
38
+
39
+ ## Example
40
+
41
+ ```sdml
42
+ module campaign <https://advertising.amazon.com/api-model> is
43
+
44
+ import [dc rdfs skos]
45
+
46
+ @skos:prefLabel = "Campaign sub-domain"@en
47
+ @skos:version = xsd:decimal(2)
48
+
49
+ datatype Name <- string {
50
+ minLength = 5
51
+ maxLength = 25
52
+ }
53
+
54
+ datatype Identifier <- opaque string {
55
+ length = 20
56
+ } is
57
+ @dc:description = "An opaque, general, entity identifier."@en
58
+ end
59
+
60
+ property CampaignId -> Identifier is
61
+ @skos:prefLabel = [
62
+ "Campaign Identifier"@en
63
+ "Identified de campagne"@fr
64
+ ]
65
+ @dc:description = "The globally unique identifier for a Campaign entity"@en
66
+ end
67
+
68
+ structure Tag is
69
+ key -> token
70
+ value -> {0..} rdfs:langString
71
+ end
72
+
73
+ entity Campaign is
74
+ identity ref CampaignId
75
+
76
+ name -> Name is
77
+ @skos:definition = "the name of the campaign"@en
78
+ end
79
+
80
+ tag -> {unordered unique 0..} Tag
81
+
82
+ target -> {1..} Target
83
+ end
84
+
85
+ entity Target
86
+
87
+ end
88
+ ```
89
+
90
+ ## Bindings
91
+
92
+ The following bindings are built and released along with any version upgrade of
93
+ the source version. The tree-sitter tool also generates bindings for C, Go, and
94
+ Swift that are not built and released to any repository.
95
+
96
+ [Node](https://www.npmjs.com/package/tree-sitter-sdml) bindings are published to npmjs and can be installed using the
97
+ npm command directly, or by making it a project dependency.
98
+
99
+ ```sh
100
+ 〉npm install -g tree_sitter_sdml
101
+ ```
102
+
103
+ [Python](https://pypi.org/project/tree-sitter-sdml/) bindings are published to PyPI and can be installed using any
104
+ standard tool, such as `pip`.
105
+
106
+ ```sh
107
+ 〉pip3 install tree_sitter_sdml
108
+ ```
109
+
110
+ [Rust](https://crates.io/crates/tree-sitter-sdml) bindings are published to crates.io and can be installed via cargo in
111
+ the usual manner.
112
+
113
+ ```sh
114
+ 〉cargo install tree_sitter_sdml
115
+ ```
116
+
117
+ ## License
118
+
119
+ This package is released under the Apache License, Version 2.0. See LICENSE file
120
+ for details.
121
+
122
+ ## Changes
123
+
124
+ See [CHANGES.md](CHANGES.md).
125
+
126
+ ## Additional Links
127
+
128
+ * Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)
129
+ * Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)
130
+ * Python bindings -- [PyPi.org](https://pypi.org/project/tree-sitter-sdml/)
131
+ * Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)
132
+ * Command-line tool -- [rust-sdml](https://github.com/johnstonskj/rust-sdml)
@@ -0,0 +1,101 @@
1
+ # Tree-Sitter grammar for SDML
2
+
3
+ ![SDML Logo Text](https://raw.githubusercontent.com/sdm-lang/.github/main/profile/horizontal-text.svg)
4
+
5
+ A [tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for the Simple Domain Modeling Language (SDML). For more
6
+ information on the language, see the [documentation](https://sdml.io/).
7
+
8
+ ## Example
9
+
10
+ ```sdml
11
+ module campaign <https://advertising.amazon.com/api-model> is
12
+
13
+ import [dc rdfs skos]
14
+
15
+ @skos:prefLabel = "Campaign sub-domain"@en
16
+ @skos:version = xsd:decimal(2)
17
+
18
+ datatype Name <- string {
19
+ minLength = 5
20
+ maxLength = 25
21
+ }
22
+
23
+ datatype Identifier <- opaque string {
24
+ length = 20
25
+ } is
26
+ @dc:description = "An opaque, general, entity identifier."@en
27
+ end
28
+
29
+ property CampaignId -> Identifier is
30
+ @skos:prefLabel = [
31
+ "Campaign Identifier"@en
32
+ "Identified de campagne"@fr
33
+ ]
34
+ @dc:description = "The globally unique identifier for a Campaign entity"@en
35
+ end
36
+
37
+ structure Tag is
38
+ key -> token
39
+ value -> {0..} rdfs:langString
40
+ end
41
+
42
+ entity Campaign is
43
+ identity ref CampaignId
44
+
45
+ name -> Name is
46
+ @skos:definition = "the name of the campaign"@en
47
+ end
48
+
49
+ tag -> {unordered unique 0..} Tag
50
+
51
+ target -> {1..} Target
52
+ end
53
+
54
+ entity Target
55
+
56
+ end
57
+ ```
58
+
59
+ ## Bindings
60
+
61
+ The following bindings are built and released along with any version upgrade of
62
+ the source version. The tree-sitter tool also generates bindings for C, Go, and
63
+ Swift that are not built and released to any repository.
64
+
65
+ [Node](https://www.npmjs.com/package/tree-sitter-sdml) bindings are published to npmjs and can be installed using the
66
+ npm command directly, or by making it a project dependency.
67
+
68
+ ```sh
69
+ 〉npm install -g tree_sitter_sdml
70
+ ```
71
+
72
+ [Python](https://pypi.org/project/tree-sitter-sdml/) bindings are published to PyPI and can be installed using any
73
+ standard tool, such as `pip`.
74
+
75
+ ```sh
76
+ 〉pip3 install tree_sitter_sdml
77
+ ```
78
+
79
+ [Rust](https://crates.io/crates/tree-sitter-sdml) bindings are published to crates.io and can be installed via cargo in
80
+ the usual manner.
81
+
82
+ ```sh
83
+ 〉cargo install tree_sitter_sdml
84
+ ```
85
+
86
+ ## License
87
+
88
+ This package is released under the Apache License, Version 2.0. See LICENSE file
89
+ for details.
90
+
91
+ ## Changes
92
+
93
+ See [CHANGES.md](CHANGES.md).
94
+
95
+ ## Additional Links
96
+
97
+ * Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)
98
+ * Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)
99
+ * Python bindings -- [PyPi.org](https://pypi.org/project/tree-sitter-sdml/)
100
+ * Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)
101
+ * Command-line tool -- [rust-sdml](https://github.com/johnstonskj/rust-sdml)
@@ -0,0 +1,132 @@
1
+ Metadata-Version: 2.2
2
+ Name: tree-sitter-sdml
3
+ Version: 0.4.3
4
+ Summary: SDML grammar for tree-sitter
5
+ License: Copyright 2023 Simon Johnston <johnstonskj@gmail.com>
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+
19
+ Project-URL: Homepage, https://github.com/tree-sitter/tree-sitter-sdml
20
+ Keywords: incremental,parsing,tree-sitter,sdml
21
+ Classifier: Intended Audience :: Developers
22
+ Classifier: License :: OSI Approved :: MIT License
23
+ Classifier: Topic :: Software Development :: Compilers
24
+ Classifier: Topic :: Text Processing :: Linguistic
25
+ Classifier: Typing :: Typed
26
+ Requires-Python: >=3.8
27
+ Description-Content-Type: text/markdown
28
+ License-File: LICENSE
29
+ Provides-Extra: core
30
+ Requires-Dist: tree-sitter~=0.21; extra == "core"
31
+
32
+ # Tree-Sitter grammar for SDML
33
+
34
+ ![SDML Logo Text](https://raw.githubusercontent.com/sdm-lang/.github/main/profile/horizontal-text.svg)
35
+
36
+ A [tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for the Simple Domain Modeling Language (SDML). For more
37
+ information on the language, see the [documentation](https://sdml.io/).
38
+
39
+ ## Example
40
+
41
+ ```sdml
42
+ module campaign <https://advertising.amazon.com/api-model> is
43
+
44
+ import [dc rdfs skos]
45
+
46
+ @skos:prefLabel = "Campaign sub-domain"@en
47
+ @skos:version = xsd:decimal(2)
48
+
49
+ datatype Name <- string {
50
+ minLength = 5
51
+ maxLength = 25
52
+ }
53
+
54
+ datatype Identifier <- opaque string {
55
+ length = 20
56
+ } is
57
+ @dc:description = "An opaque, general, entity identifier."@en
58
+ end
59
+
60
+ property CampaignId -> Identifier is
61
+ @skos:prefLabel = [
62
+ "Campaign Identifier"@en
63
+ "Identified de campagne"@fr
64
+ ]
65
+ @dc:description = "The globally unique identifier for a Campaign entity"@en
66
+ end
67
+
68
+ structure Tag is
69
+ key -> token
70
+ value -> {0..} rdfs:langString
71
+ end
72
+
73
+ entity Campaign is
74
+ identity ref CampaignId
75
+
76
+ name -> Name is
77
+ @skos:definition = "the name of the campaign"@en
78
+ end
79
+
80
+ tag -> {unordered unique 0..} Tag
81
+
82
+ target -> {1..} Target
83
+ end
84
+
85
+ entity Target
86
+
87
+ end
88
+ ```
89
+
90
+ ## Bindings
91
+
92
+ The following bindings are built and released along with any version upgrade of
93
+ the source version. The tree-sitter tool also generates bindings for C, Go, and
94
+ Swift that are not built and released to any repository.
95
+
96
+ [Node](https://www.npmjs.com/package/tree-sitter-sdml) bindings are published to npmjs and can be installed using the
97
+ npm command directly, or by making it a project dependency.
98
+
99
+ ```sh
100
+ 〉npm install -g tree_sitter_sdml
101
+ ```
102
+
103
+ [Python](https://pypi.org/project/tree-sitter-sdml/) bindings are published to PyPI and can be installed using any
104
+ standard tool, such as `pip`.
105
+
106
+ ```sh
107
+ 〉pip3 install tree_sitter_sdml
108
+ ```
109
+
110
+ [Rust](https://crates.io/crates/tree-sitter-sdml) bindings are published to crates.io and can be installed via cargo in
111
+ the usual manner.
112
+
113
+ ```sh
114
+ 〉cargo install tree_sitter_sdml
115
+ ```
116
+
117
+ ## License
118
+
119
+ This package is released under the Apache License, Version 2.0. See LICENSE file
120
+ for details.
121
+
122
+ ## Changes
123
+
124
+ See [CHANGES.md](CHANGES.md).
125
+
126
+ ## Additional Links
127
+
128
+ * Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)
129
+ * Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)
130
+ * Python bindings -- [PyPi.org](https://pypi.org/project/tree-sitter-sdml/)
131
+ * Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)
132
+ * Command-line tool -- [rust-sdml](https://github.com/johnstonskj/rust-sdml)
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
  [project]
6
6
  name = "tree-sitter-sdml"
7
7
  description = "SDML grammar for tree-sitter"
8
- version = "0.3.2"
8
+ version = "0.4.3"
9
9
  keywords = ["incremental", "parsing", "tree-sitter", "sdml"]
10
10
  classifiers = [
11
11
  "Intended Audience :: Developers",