tree-sitter-sdml 0.3.2__tar.gz → 0.4.2__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.
- tree_sitter_sdml-0.4.2/PKG-INFO +129 -0
- tree_sitter_sdml-0.4.2/README.md +98 -0
- tree_sitter_sdml-0.4.2/bindings/python/tree_sitter_sdml.egg-info/PKG-INFO +129 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/pyproject.toml +1 -1
- tree_sitter_sdml-0.4.2/src/parser.c +20340 -0
- tree_sitter_sdml-0.3.2/PKG-INFO +0 -655
- tree_sitter_sdml-0.3.2/README.md +0 -624
- tree_sitter_sdml-0.3.2/bindings/python/tree_sitter_sdml.egg-info/PKG-INFO +0 -655
- tree_sitter_sdml-0.3.2/src/parser.c +0 -15761
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/LICENSE +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/bindings/python/tree_sitter_sdml/__init__.py +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/bindings/python/tree_sitter_sdml/__init__.pyi +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/bindings/python/tree_sitter_sdml/binding.c +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/bindings/python/tree_sitter_sdml/py.typed +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/bindings/python/tree_sitter_sdml.egg-info/SOURCES.txt +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/bindings/python/tree_sitter_sdml.egg-info/dependency_links.txt +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/bindings/python/tree_sitter_sdml.egg-info/not-zip-safe +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/bindings/python/tree_sitter_sdml.egg-info/requires.txt +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/bindings/python/tree_sitter_sdml.egg-info/top_level.txt +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/setup.cfg +0 -0
- {tree_sitter_sdml-0.3.2 → tree_sitter_sdml-0.4.2}/setup.py +0 -0
@@ -0,0 +1,129 @@
|
|
1
|
+
Metadata-Version: 2.2
|
2
|
+
Name: tree-sitter-sdml
|
3
|
+
Version: 0.4.2
|
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
|
+

|
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 base <https://advertising.amazon.com/api-model> is
|
43
|
+
|
44
|
+
import [dc skos xsd]
|
45
|
+
|
46
|
+
@skos:prefLabel = "Campaign sub-domain"@en
|
47
|
+
@skos:version = xsd:decimal(2)
|
48
|
+
|
49
|
+
datatype Name <- xsd:string is
|
50
|
+
@xsd:minLength = 5
|
51
|
+
@xsd:maxLength = 25
|
52
|
+
end
|
53
|
+
|
54
|
+
datatype Identifier <- opaque xsd:string is
|
55
|
+
@xsd:length = 20
|
56
|
+
end
|
57
|
+
|
58
|
+
property CampaignId -> Identifier is
|
59
|
+
@skos:prefLabel = [
|
60
|
+
"Campaign Identifier"@en
|
61
|
+
"Identified de campagne"@fr
|
62
|
+
]
|
63
|
+
@skos:description = "The globally unique identifier for a Campaign entity"@en
|
64
|
+
end
|
65
|
+
|
66
|
+
structure Tag is
|
67
|
+
key -> xsd:NMTOKEN
|
68
|
+
value -> {0..} rdfs:langStrings
|
69
|
+
end
|
70
|
+
|
71
|
+
entity Campaign is
|
72
|
+
identity ref CampaignId
|
73
|
+
|
74
|
+
name -> Name is
|
75
|
+
@skos:definition = "the name of the campaign"@en
|
76
|
+
end
|
77
|
+
|
78
|
+
tag -> {0..} Tag
|
79
|
+
|
80
|
+
target -> {1..} Target
|
81
|
+
end
|
82
|
+
|
83
|
+
entity Target
|
84
|
+
|
85
|
+
end
|
86
|
+
```
|
87
|
+
|
88
|
+
## Bindings
|
89
|
+
|
90
|
+
The following bindings are built and released along with any version upgrade of
|
91
|
+
the source version. The tree-sitter tool also generates bindings for C, Go, and
|
92
|
+
Swift that are not built and released to any repository.
|
93
|
+
|
94
|
+
[Node](https://www.npmjs.com/package/tree-sitter-sdml) bindings are published to npmjs and can be installed using the
|
95
|
+
npm command directly, or by making it a project dependency.
|
96
|
+
|
97
|
+
```sh
|
98
|
+
〉npm install -g tree_sitter_sdml
|
99
|
+
```
|
100
|
+
|
101
|
+
[Python](https://pypi.org/project/tree-sitter-sdml/) bindings are published to PyPI and can be installed using any
|
102
|
+
standard tool, such as `pip`.
|
103
|
+
|
104
|
+
```sh
|
105
|
+
〉pip3 install tree_sitter_sdml
|
106
|
+
```
|
107
|
+
|
108
|
+
[Rust](https://crates.io/crates/tree-sitter-sdml) bindings are published to crates.io and can be installed via cargo in
|
109
|
+
the usual manner.
|
110
|
+
|
111
|
+
```sh
|
112
|
+
〉cargo install tree_sitter_sdml
|
113
|
+
```
|
114
|
+
|
115
|
+
## License
|
116
|
+
|
117
|
+
This package is released under the Apache License, Version 2.0. See LICENSE file
|
118
|
+
for details.
|
119
|
+
|
120
|
+
## Changes
|
121
|
+
|
122
|
+
See [CHANGES.md](CHANGES.md).
|
123
|
+
|
124
|
+
## Additional Links
|
125
|
+
|
126
|
+
* Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)
|
127
|
+
* Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)
|
128
|
+
* Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)
|
129
|
+
* Command-line tool -- [rust-sdml](https://github.com/johnstonskj/rust-sdml)
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# Tree-Sitter grammar for SDML
|
2
|
+
|
3
|
+

|
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 base <https://advertising.amazon.com/api-model> is
|
12
|
+
|
13
|
+
import [dc skos xsd]
|
14
|
+
|
15
|
+
@skos:prefLabel = "Campaign sub-domain"@en
|
16
|
+
@skos:version = xsd:decimal(2)
|
17
|
+
|
18
|
+
datatype Name <- xsd:string is
|
19
|
+
@xsd:minLength = 5
|
20
|
+
@xsd:maxLength = 25
|
21
|
+
end
|
22
|
+
|
23
|
+
datatype Identifier <- opaque xsd:string is
|
24
|
+
@xsd:length = 20
|
25
|
+
end
|
26
|
+
|
27
|
+
property CampaignId -> Identifier is
|
28
|
+
@skos:prefLabel = [
|
29
|
+
"Campaign Identifier"@en
|
30
|
+
"Identified de campagne"@fr
|
31
|
+
]
|
32
|
+
@skos:description = "The globally unique identifier for a Campaign entity"@en
|
33
|
+
end
|
34
|
+
|
35
|
+
structure Tag is
|
36
|
+
key -> xsd:NMTOKEN
|
37
|
+
value -> {0..} rdfs:langStrings
|
38
|
+
end
|
39
|
+
|
40
|
+
entity Campaign is
|
41
|
+
identity ref CampaignId
|
42
|
+
|
43
|
+
name -> Name is
|
44
|
+
@skos:definition = "the name of the campaign"@en
|
45
|
+
end
|
46
|
+
|
47
|
+
tag -> {0..} Tag
|
48
|
+
|
49
|
+
target -> {1..} Target
|
50
|
+
end
|
51
|
+
|
52
|
+
entity Target
|
53
|
+
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
## Bindings
|
58
|
+
|
59
|
+
The following bindings are built and released along with any version upgrade of
|
60
|
+
the source version. The tree-sitter tool also generates bindings for C, Go, and
|
61
|
+
Swift that are not built and released to any repository.
|
62
|
+
|
63
|
+
[Node](https://www.npmjs.com/package/tree-sitter-sdml) bindings are published to npmjs and can be installed using the
|
64
|
+
npm command directly, or by making it a project dependency.
|
65
|
+
|
66
|
+
```sh
|
67
|
+
〉npm install -g tree_sitter_sdml
|
68
|
+
```
|
69
|
+
|
70
|
+
[Python](https://pypi.org/project/tree-sitter-sdml/) bindings are published to PyPI and can be installed using any
|
71
|
+
standard tool, such as `pip`.
|
72
|
+
|
73
|
+
```sh
|
74
|
+
〉pip3 install tree_sitter_sdml
|
75
|
+
```
|
76
|
+
|
77
|
+
[Rust](https://crates.io/crates/tree-sitter-sdml) bindings are published to crates.io and can be installed via cargo in
|
78
|
+
the usual manner.
|
79
|
+
|
80
|
+
```sh
|
81
|
+
〉cargo install tree_sitter_sdml
|
82
|
+
```
|
83
|
+
|
84
|
+
## License
|
85
|
+
|
86
|
+
This package is released under the Apache License, Version 2.0. See LICENSE file
|
87
|
+
for details.
|
88
|
+
|
89
|
+
## Changes
|
90
|
+
|
91
|
+
See [CHANGES.md](CHANGES.md).
|
92
|
+
|
93
|
+
## Additional Links
|
94
|
+
|
95
|
+
* Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)
|
96
|
+
* Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)
|
97
|
+
* Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)
|
98
|
+
* Command-line tool -- [rust-sdml](https://github.com/johnstonskj/rust-sdml)
|
@@ -0,0 +1,129 @@
|
|
1
|
+
Metadata-Version: 2.2
|
2
|
+
Name: tree-sitter-sdml
|
3
|
+
Version: 0.4.2
|
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
|
+

|
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 base <https://advertising.amazon.com/api-model> is
|
43
|
+
|
44
|
+
import [dc skos xsd]
|
45
|
+
|
46
|
+
@skos:prefLabel = "Campaign sub-domain"@en
|
47
|
+
@skos:version = xsd:decimal(2)
|
48
|
+
|
49
|
+
datatype Name <- xsd:string is
|
50
|
+
@xsd:minLength = 5
|
51
|
+
@xsd:maxLength = 25
|
52
|
+
end
|
53
|
+
|
54
|
+
datatype Identifier <- opaque xsd:string is
|
55
|
+
@xsd:length = 20
|
56
|
+
end
|
57
|
+
|
58
|
+
property CampaignId -> Identifier is
|
59
|
+
@skos:prefLabel = [
|
60
|
+
"Campaign Identifier"@en
|
61
|
+
"Identified de campagne"@fr
|
62
|
+
]
|
63
|
+
@skos:description = "The globally unique identifier for a Campaign entity"@en
|
64
|
+
end
|
65
|
+
|
66
|
+
structure Tag is
|
67
|
+
key -> xsd:NMTOKEN
|
68
|
+
value -> {0..} rdfs:langStrings
|
69
|
+
end
|
70
|
+
|
71
|
+
entity Campaign is
|
72
|
+
identity ref CampaignId
|
73
|
+
|
74
|
+
name -> Name is
|
75
|
+
@skos:definition = "the name of the campaign"@en
|
76
|
+
end
|
77
|
+
|
78
|
+
tag -> {0..} Tag
|
79
|
+
|
80
|
+
target -> {1..} Target
|
81
|
+
end
|
82
|
+
|
83
|
+
entity Target
|
84
|
+
|
85
|
+
end
|
86
|
+
```
|
87
|
+
|
88
|
+
## Bindings
|
89
|
+
|
90
|
+
The following bindings are built and released along with any version upgrade of
|
91
|
+
the source version. The tree-sitter tool also generates bindings for C, Go, and
|
92
|
+
Swift that are not built and released to any repository.
|
93
|
+
|
94
|
+
[Node](https://www.npmjs.com/package/tree-sitter-sdml) bindings are published to npmjs and can be installed using the
|
95
|
+
npm command directly, or by making it a project dependency.
|
96
|
+
|
97
|
+
```sh
|
98
|
+
〉npm install -g tree_sitter_sdml
|
99
|
+
```
|
100
|
+
|
101
|
+
[Python](https://pypi.org/project/tree-sitter-sdml/) bindings are published to PyPI and can be installed using any
|
102
|
+
standard tool, such as `pip`.
|
103
|
+
|
104
|
+
```sh
|
105
|
+
〉pip3 install tree_sitter_sdml
|
106
|
+
```
|
107
|
+
|
108
|
+
[Rust](https://crates.io/crates/tree-sitter-sdml) bindings are published to crates.io and can be installed via cargo in
|
109
|
+
the usual manner.
|
110
|
+
|
111
|
+
```sh
|
112
|
+
〉cargo install tree_sitter_sdml
|
113
|
+
```
|
114
|
+
|
115
|
+
## License
|
116
|
+
|
117
|
+
This package is released under the Apache License, Version 2.0. See LICENSE file
|
118
|
+
for details.
|
119
|
+
|
120
|
+
## Changes
|
121
|
+
|
122
|
+
See [CHANGES.md](CHANGES.md).
|
123
|
+
|
124
|
+
## Additional Links
|
125
|
+
|
126
|
+
* Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)
|
127
|
+
* Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)
|
128
|
+
* Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)
|
129
|
+
* 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.
|
8
|
+
version = "0.4.2"
|
9
9
|
keywords = ["incremental", "parsing", "tree-sitter", "sdml"]
|
10
10
|
classifiers = [
|
11
11
|
"Intended Audience :: Developers",
|