tree-sitter-sdml 0.4.2__tar.gz → 0.4.4__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 (17) hide show
  1. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/PKG-INFO +16 -13
  2. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/README.md +15 -12
  3. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/bindings/python/tree_sitter_sdml.egg-info/PKG-INFO +16 -13
  4. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/pyproject.toml +1 -1
  5. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/src/parser.c +8033 -7694
  6. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/LICENSE +0 -0
  7. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/bindings/python/tree_sitter_sdml/__init__.py +0 -0
  8. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/bindings/python/tree_sitter_sdml/__init__.pyi +0 -0
  9. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/bindings/python/tree_sitter_sdml/binding.c +0 -0
  10. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/bindings/python/tree_sitter_sdml/py.typed +0 -0
  11. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/bindings/python/tree_sitter_sdml.egg-info/SOURCES.txt +0 -0
  12. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/bindings/python/tree_sitter_sdml.egg-info/dependency_links.txt +0 -0
  13. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/bindings/python/tree_sitter_sdml.egg-info/not-zip-safe +0 -0
  14. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/bindings/python/tree_sitter_sdml.egg-info/requires.txt +0 -0
  15. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/bindings/python/tree_sitter_sdml.egg-info/top_level.txt +0 -0
  16. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/setup.cfg +0 -0
  17. {tree_sitter_sdml-0.4.2 → tree_sitter_sdml-0.4.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tree-sitter-sdml
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: SDML grammar for tree-sitter
5
5
  License: Copyright 2023 Simon Johnston <johnstonskj@gmail.com>
6
6
 
@@ -39,20 +39,22 @@ information on the language, see the [documentation](https://sdml.io/).
39
39
  ## Example
40
40
 
41
41
  ```sdml
42
- module campaign base <https://advertising.amazon.com/api-model> is
42
+ module campaign <https://advertising.amazon.com/api-model> is
43
43
 
44
- import [dc skos xsd]
44
+ import [dc rdfs skos]
45
45
 
46
46
  @skos:prefLabel = "Campaign sub-domain"@en
47
47
  @skos:version = xsd:decimal(2)
48
48
 
49
- datatype Name <- xsd:string is
50
- @xsd:minLength = 5
51
- @xsd:maxLength = 25
52
- end
49
+ datatype Name <- string {
50
+ minLength = 5
51
+ maxLength = 25
52
+ }
53
53
 
54
- datatype Identifier <- opaque xsd:string is
55
- @xsd:length = 20
54
+ datatype Identifier <- opaque string {
55
+ length = 20
56
+ } is
57
+ @dc:description = "An opaque, general, entity identifier."@en
56
58
  end
57
59
 
58
60
  property CampaignId -> Identifier is
@@ -60,12 +62,12 @@ module campaign base <https://advertising.amazon.com/api-model> is
60
62
  "Campaign Identifier"@en
61
63
  "Identified de campagne"@fr
62
64
  ]
63
- @skos:description = "The globally unique identifier for a Campaign entity"@en
65
+ @dc:description = "The globally unique identifier for a Campaign entity"@en
64
66
  end
65
67
 
66
68
  structure Tag is
67
- key -> xsd:NMTOKEN
68
- value -> {0..} rdfs:langStrings
69
+ key -> token
70
+ value -> {0..} rdfs:langString
69
71
  end
70
72
 
71
73
  entity Campaign is
@@ -75,7 +77,7 @@ module campaign base <https://advertising.amazon.com/api-model> is
75
77
  @skos:definition = "the name of the campaign"@en
76
78
  end
77
79
 
78
- tag -> {0..} Tag
80
+ tag -> {unordered unique 0..} Tag
79
81
 
80
82
  target -> {1..} Target
81
83
  end
@@ -125,5 +127,6 @@ See [CHANGES.md](CHANGES.md).
125
127
 
126
128
  * Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)
127
129
  * Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)
130
+ * Python bindings -- [PyPi.org](https://pypi.org/project/tree-sitter-sdml/)
128
131
  * Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)
129
132
  * Command-line tool -- [rust-sdml](https://github.com/johnstonskj/rust-sdml)
@@ -8,20 +8,22 @@ information on the language, see the [documentation](https://sdml.io/).
8
8
  ## Example
9
9
 
10
10
  ```sdml
11
- module campaign base <https://advertising.amazon.com/api-model> is
11
+ module campaign <https://advertising.amazon.com/api-model> is
12
12
 
13
- import [dc skos xsd]
13
+ import [dc rdfs skos]
14
14
 
15
15
  @skos:prefLabel = "Campaign sub-domain"@en
16
16
  @skos:version = xsd:decimal(2)
17
17
 
18
- datatype Name <- xsd:string is
19
- @xsd:minLength = 5
20
- @xsd:maxLength = 25
21
- end
18
+ datatype Name <- string {
19
+ minLength = 5
20
+ maxLength = 25
21
+ }
22
22
 
23
- datatype Identifier <- opaque xsd:string is
24
- @xsd:length = 20
23
+ datatype Identifier <- opaque string {
24
+ length = 20
25
+ } is
26
+ @dc:description = "An opaque, general, entity identifier."@en
25
27
  end
26
28
 
27
29
  property CampaignId -> Identifier is
@@ -29,12 +31,12 @@ module campaign base <https://advertising.amazon.com/api-model> is
29
31
  "Campaign Identifier"@en
30
32
  "Identified de campagne"@fr
31
33
  ]
32
- @skos:description = "The globally unique identifier for a Campaign entity"@en
34
+ @dc:description = "The globally unique identifier for a Campaign entity"@en
33
35
  end
34
36
 
35
37
  structure Tag is
36
- key -> xsd:NMTOKEN
37
- value -> {0..} rdfs:langStrings
38
+ key -> token
39
+ value -> {0..} rdfs:langString
38
40
  end
39
41
 
40
42
  entity Campaign is
@@ -44,7 +46,7 @@ module campaign base <https://advertising.amazon.com/api-model> is
44
46
  @skos:definition = "the name of the campaign"@en
45
47
  end
46
48
 
47
- tag -> {0..} Tag
49
+ tag -> {unordered unique 0..} Tag
48
50
 
49
51
  target -> {1..} Target
50
52
  end
@@ -94,5 +96,6 @@ See [CHANGES.md](CHANGES.md).
94
96
 
95
97
  * Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)
96
98
  * Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)
99
+ * Python bindings -- [PyPi.org](https://pypi.org/project/tree-sitter-sdml/)
97
100
  * Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)
98
101
  * Command-line tool -- [rust-sdml](https://github.com/johnstonskj/rust-sdml)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tree-sitter-sdml
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: SDML grammar for tree-sitter
5
5
  License: Copyright 2023 Simon Johnston <johnstonskj@gmail.com>
6
6
 
@@ -39,20 +39,22 @@ information on the language, see the [documentation](https://sdml.io/).
39
39
  ## Example
40
40
 
41
41
  ```sdml
42
- module campaign base <https://advertising.amazon.com/api-model> is
42
+ module campaign <https://advertising.amazon.com/api-model> is
43
43
 
44
- import [dc skos xsd]
44
+ import [dc rdfs skos]
45
45
 
46
46
  @skos:prefLabel = "Campaign sub-domain"@en
47
47
  @skos:version = xsd:decimal(2)
48
48
 
49
- datatype Name <- xsd:string is
50
- @xsd:minLength = 5
51
- @xsd:maxLength = 25
52
- end
49
+ datatype Name <- string {
50
+ minLength = 5
51
+ maxLength = 25
52
+ }
53
53
 
54
- datatype Identifier <- opaque xsd:string is
55
- @xsd:length = 20
54
+ datatype Identifier <- opaque string {
55
+ length = 20
56
+ } is
57
+ @dc:description = "An opaque, general, entity identifier."@en
56
58
  end
57
59
 
58
60
  property CampaignId -> Identifier is
@@ -60,12 +62,12 @@ module campaign base <https://advertising.amazon.com/api-model> is
60
62
  "Campaign Identifier"@en
61
63
  "Identified de campagne"@fr
62
64
  ]
63
- @skos:description = "The globally unique identifier for a Campaign entity"@en
65
+ @dc:description = "The globally unique identifier for a Campaign entity"@en
64
66
  end
65
67
 
66
68
  structure Tag is
67
- key -> xsd:NMTOKEN
68
- value -> {0..} rdfs:langStrings
69
+ key -> token
70
+ value -> {0..} rdfs:langString
69
71
  end
70
72
 
71
73
  entity Campaign is
@@ -75,7 +77,7 @@ module campaign base <https://advertising.amazon.com/api-model> is
75
77
  @skos:definition = "the name of the campaign"@en
76
78
  end
77
79
 
78
- tag -> {0..} Tag
80
+ tag -> {unordered unique 0..} Tag
79
81
 
80
82
  target -> {1..} Target
81
83
  end
@@ -125,5 +127,6 @@ See [CHANGES.md](CHANGES.md).
125
127
 
126
128
  * Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)
127
129
  * Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)
130
+ * Python bindings -- [PyPi.org](https://pypi.org/project/tree-sitter-sdml/)
128
131
  * Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)
129
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.4.2"
8
+ version = "0.4.4"
9
9
  keywords = ["incremental", "parsing", "tree-sitter", "sdml"]
10
10
  classifiers = [
11
11
  "Intended Audience :: Developers",