tree-sitter-sdml 0.4.14__cp38-abi3-macosx_11_0_arm64.whl

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.
@@ -0,0 +1,5 @@
1
+ "Sdml 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_sdml(void);
6
+
7
+ static PyObject* _binding_language(PyObject *self, PyObject *args) {
8
+ return PyLong_FromVoidPtr(tree_sitter_sdml());
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,31 @@
1
+ [
2
+ (datatype_def)
3
+ (dimension_def)
4
+ (entity_def)
5
+ (enum_def)
6
+ (event_def)
7
+ (property_def)
8
+ (rdf_def)
9
+ (structure_def)
10
+ (type_class_def)
11
+ (union_def)
12
+ ;; ----------------
13
+ (annotation_only_body)
14
+ (dimension_body)
15
+ (entity_body)
16
+ (enum_body)
17
+ (event_body)
18
+ (structure_body)
19
+ (type_class_body)
20
+ (union_body)
21
+ (datatype_type_restrictions)
22
+ ;; ----------------
23
+ (formal_constraint)
24
+ (sentence_with_environment)
25
+ (function_body)
26
+ (constraint_sentence)
27
+ (sequence_builder)
28
+ ;; ----------------
29
+ (sequence_of_values)
30
+ (sequence_of_predicate_values)
31
+ ] @fold
@@ -0,0 +1,377 @@
1
+ ;; ---------------------------------------------------------------------------
2
+ ;; Comments
3
+ ;; ---------------------------------------------------------------------------
4
+
5
+ (line_comment) @comment
6
+
7
+ ;; ---------------------------------------------------------------------------
8
+ ;; Global Reserved Keywords
9
+ ;; ---------------------------------------------------------------------------
10
+
11
+ [
12
+ "as"
13
+ "assert"
14
+ "class"
15
+ "datatype"
16
+ "dimension"
17
+ "end"
18
+ "entity"
19
+ "enum"
20
+ "event"
21
+ "from"
22
+ "group"
23
+ "import"
24
+ "is"
25
+ "metric"
26
+ "module"
27
+ "of"
28
+ "property"
29
+ "rdf"
30
+ "structure"
31
+ "union"
32
+ (unknown_type)
33
+ ] @keyword
34
+
35
+ ;; ---------------------------------------------------------------------------
36
+ ;; Global Operators
37
+ ;; ---------------------------------------------------------------------------
38
+
39
+ [
40
+ ;; has_type
41
+ "->" "→"
42
+ ;; has_base_type
43
+ "<-" "←"
44
+ ;; cardinality_range
45
+ ".."
46
+ "="
47
+ (op_equality)
48
+ ] @operator
49
+
50
+ ;; ---------------------------------------------------------------------------
51
+ ;; Global Punctuation
52
+ ;; ---------------------------------------------------------------------------
53
+
54
+ [
55
+ "["
56
+ "]"
57
+ "("
58
+ ")"
59
+ "{"
60
+ "}"
61
+ ] @punctuation.bracket
62
+
63
+ ;; ---------------------------------------------------------------------------
64
+ ;; Module & Imports
65
+ ;; ---------------------------------------------------------------------------
66
+
67
+ (module name: (identifier) @module.definition)
68
+ (module_version "version" @keyword)
69
+
70
+ ;; ---------------------------------------------------------------------------
71
+ ;; Module ❱ Imports
72
+ ;; ---------------------------------------------------------------------------
73
+
74
+ (module_path_absolute "::" @punctuation.separator)
75
+ (module_path_absolute segment: (identifier) @module)
76
+
77
+ (module_path_relative "::" @punctuation.separator)
78
+ (module_path_relative segment: (identifier) @module)
79
+
80
+ (member_import name: (qualified_identifier) @type)
81
+ (member_import rename: (identifier) @type)
82
+
83
+ (module_import name: (identifier) @module)
84
+ (module_import rename: (identifier) @module)
85
+
86
+ ;; ---------------------------------------------------------------------------
87
+ ;; Annotation ❱ Properties
88
+ ;; ---------------------------------------------------------------------------
89
+
90
+ (annotation_property "@" @property name: (identifier_reference) @property)
91
+
92
+ (annotation_property value: (value (identifier_reference) @type))
93
+
94
+ ;; ---------------------------------------------------------------------------
95
+ ;; Annotation ❱ Constraints
96
+ ;; ---------------------------------------------------------------------------
97
+
98
+ (constraint name: (identifier) @property)
99
+
100
+ (informal_constraint (quoted_string) @embedded)
101
+ (informal_constraint language: (controlled_language_tag) @property)
102
+
103
+ ;; ---------------------------------------------------------------------------
104
+ ;; Annotation ❱ Constraints ❱ Formal
105
+ ;; ---------------------------------------------------------------------------
106
+
107
+ (inequation
108
+ (inequality_relation) @operator)
109
+
110
+ (unary_boolean_sentence
111
+ (logical_op_negation) @operator)
112
+
113
+ (binary_boolean_sentence
114
+ (logical_connective) @operator)
115
+
116
+ (quantified_variable_binding
117
+ (logical_quantifier) @operator)
118
+
119
+ (quantified_variable (set_membership) @operator)
120
+
121
+ (set_expression_sentence
122
+ (set_operator) @operator)
123
+
124
+ (arithmetic_expression_sentence
125
+ (math_operator) @operator)
126
+
127
+ (sentence_with_environment [ "with" "for" ] @keyword)
128
+
129
+ (keyword_function_def "def" @keyword)
130
+
131
+ (function_signature name: (identifier) @function.definition)
132
+ (function_signature target: (_) @type)
133
+
134
+ (function_parameter name: (identifier) @variable.parameter)
135
+ (function_parameter target: (_) @type)
136
+
137
+ (cardinality_reference_expression (sequence_ordering) @keyword)
138
+ (cardinality_reference_expression (sequence_uniqueness) @keyword)
139
+
140
+ (function_body [ ":=" "≔" ] @operator)
141
+
142
+ (atomic_sentence
143
+ predicate: (term (identifier_reference) @function.call))
144
+ (atomic_sentence
145
+ argument: (term (identifier_reference (identifier) @variable)))
146
+
147
+ (equation (term (identifier_reference) @variable))
148
+ (inequation (term (identifier_reference) @variable))
149
+
150
+ (set_expression_sentence (term (identifier_reference) @variable))
151
+ (arithmetic_expression_sentence (term (identifier_reference) @variable))
152
+
153
+ (quantified_sentence "," @punctuation.separator)
154
+ (variable (identifier) @variable)
155
+ (variable range: (identifier_reference) @type)
156
+
157
+ (sequence_builder
158
+ (seq_builder_separator) @punctuation.separator)
159
+
160
+ (functional_term
161
+ function: (term (identifier_reference) @function.call))
162
+ (functional_term
163
+ argument: (term (identifier_reference (identifier) @variable)))
164
+
165
+ (function_composition subject: [ (reserved_self) (reserved_event) ] @variable.builtin)
166
+ (function_composition subject: (identifier) @variable)
167
+ (function_composition name: (identifier) @function.call)
168
+ (function_composition [ "." "∘" ] @operator)
169
+
170
+ (term [ (reserved_self) (reserved_event) ] @variable.builtin)
171
+ (reserved_event "event" @variable.builtin)
172
+
173
+ (sequence_of_predicate_values (sequence_ordering) @keyword)
174
+ (sequence_of_predicate_values (sequence_uniqueness) @keyword)
175
+ (sequence_of_predicate_values (identifier_reference) @type)
176
+
177
+ ;; ---------------------------------------------------------------------------
178
+ ;; Types
179
+ ;; ---------------------------------------------------------------------------
180
+
181
+ [
182
+ (builtin_types)
183
+ (unknown_type)
184
+ ] @type.builtin
185
+
186
+ ;; ---------------------------------------------------------------------------
187
+ ;; Definition
188
+ ;; ---------------------------------------------------------------------------
189
+
190
+ (mixin_with_members "with" @keyword)
191
+ (mixin_with_members wildcard: (_) @type.builtin)
192
+ (mixin_without_members "without" @keyword)
193
+ (mixin_member member: (identifier) @variable.field)
194
+ (mixin_member rename: (identifier) @variable.field)
195
+
196
+ (from_definition_clause "from" @keyword from: (identifier_reference) @type)
197
+ (source_entity "source" @keyword from: (identifier_reference) @type)
198
+
199
+ ;; ---------------------------------------------------------------------------
200
+ ;; Definition ❱ Datatype
201
+ ;; ---------------------------------------------------------------------------
202
+
203
+ (datatype_def
204
+ "datatype" @keyword
205
+ name: (identifier) @type.definition)
206
+ (datatype_def opaque: (opaque) @keyword)
207
+ (datatype_base_type_reference (identifier_reference) @type)
208
+ (datatype_base_type_reference (builtin_types) @type.builtin)
209
+
210
+ (length_restriction_facet
211
+ [ "length" "maxLength" "minLength" ] @property)
212
+ (digit_restriction_facet
213
+ [ "fractionDigits" "totalDigits" ] @property)
214
+ (value_restriction_facet
215
+ [ "maxExclusive" "maxInclusive" "minExclusive" "minInclusive" ] @property)
216
+ (tz_restriction_facet
217
+ "explicitTimezone" @property
218
+ (tz_restriction_value) @keyword)
219
+ (pattern_restriction_facet
220
+ "pattern" @property
221
+ (quoted_string) @string)
222
+
223
+ (kw_is_fixed) @keyword
224
+
225
+ ;; ---------------------------------------------------------------------------
226
+ ;; Definition ❱ Dimension
227
+ ;; ---------------------------------------------------------------------------
228
+
229
+ (dimension_def name: (identifier) @type.definition)
230
+
231
+ ;; ---------------------------------------------------------------------------
232
+ ;; Definition ❱ Entity
233
+ ;; ---------------------------------------------------------------------------
234
+
235
+ (entity_def name: (identifier) @type.definition)
236
+
237
+ ;; ---------------------------------------------------------------------------
238
+ ;; Definition ❱ Enum
239
+ ;; ---------------------------------------------------------------------------
240
+
241
+ (enum_def name: (identifier) @type.definition)
242
+
243
+ ;; ---------------------------------------------------------------------------
244
+ ;; Definition ❱ Event
245
+ ;; ---------------------------------------------------------------------------
246
+
247
+ (event_def name: (identifier) @type.definition)
248
+
249
+ ;; ---------------------------------------------------------------------------
250
+ ;; Definition ❱ Metrics
251
+ ;; ---------------------------------------------------------------------------
252
+
253
+ (metric_group_def "group" @keyword)
254
+ (metric_group_def name: (identifier) @type.definition)
255
+ (metric_event_binding "on" @keyword)
256
+ (metric_event_binding (identifier_reference) @type)
257
+
258
+ (metric_ref "ref" @keyword)
259
+
260
+ ;; ---------------------------------------------------------------------------
261
+ ;; Definition ❱ Rdf
262
+ ;; ---------------------------------------------------------------------------
263
+
264
+ (rdf_def "rdf" @keyword name: (identifier) @type.definition)
265
+ (rdf_def [ "a" "type" ] @keyword)
266
+ (rdf_def type: (identifier_reference) @type)
267
+
268
+ ;; ---------------------------------------------------------------------------
269
+ ;; Definition ❱ Structure
270
+ ;; ---------------------------------------------------------------------------
271
+
272
+ (structure_def name: (identifier) @type.definition)
273
+
274
+ ;; ---------------------------------------------------------------------------
275
+ ;; Definition ❱ Type Class
276
+ ;; ---------------------------------------------------------------------------
277
+
278
+ (type_class_def "class" @keyword name: (identifier) @type.definition)
279
+
280
+ (type_parameter name: (identifier) @type.definition)
281
+ (type_parameter (type_op_combiner) @operator)
282
+
283
+ (type_parameter_restriction class: (identifier_reference) @type)
284
+
285
+ (type_restriction_argument (identifier) @type.definition)
286
+
287
+ (wildcard) @type.builtin
288
+
289
+ ;; ---------------------------------------------------------------------------
290
+ ;; Definition ❱ Union
291
+ ;; ---------------------------------------------------------------------------
292
+
293
+ (union_def name: (identifier) @type.definition)
294
+
295
+ ;; ---------------------------------------------------------------------------
296
+ ;; Members
297
+ ;; ---------------------------------------------------------------------------
298
+
299
+ (member_def
300
+ name: (identifier) @variable.field
301
+ target: (type_reference) @type)
302
+
303
+ (annotation_member_def
304
+ "@" @property.definition
305
+ (member_def name: (identifier) @property.definition))
306
+
307
+ (property_ref
308
+ "ref" @keyword
309
+ property: (identifier_reference) @variable.field)
310
+
311
+ ;; ---------------------------------------------------------------------------
312
+ ;; Members ❱ Specials
313
+ ;; ---------------------------------------------------------------------------
314
+
315
+ (entity_identity "identity" @keyword)
316
+
317
+ (dimension_parent
318
+ "parent" @keyword
319
+ name: (identifier) @variable.field
320
+ parent: (identifier_reference) @type)
321
+
322
+ ;; ---------------------------------------------------------------------------
323
+ ;; Members ❱ Variants
324
+ ;; ---------------------------------------------------------------------------
325
+
326
+ (value_variant name: (identifier) @constant)
327
+
328
+ (type_variant name: (identifier_reference) @type.definition)
329
+ (type_variant rename: (identifier) @type)
330
+
331
+ ;; ---------------------------------------------------------------------------
332
+ ;; Members ❱ Cardinality
333
+ ;; ---------------------------------------------------------------------------
334
+
335
+ (cardinality_expression (sequence_ordering) @keyword)
336
+ (cardinality_expression (sequence_uniqueness) @keyword)
337
+
338
+ ;; ---------------------------------------------------------------------------
339
+ ;; Values
340
+ ;; ---------------------------------------------------------------------------
341
+
342
+ (string (quoted_string) @string)
343
+ (string language: (language_tag) @property)
344
+
345
+ [
346
+ (binary)
347
+ (iri) ] @string.special
348
+
349
+ [
350
+ (rational)
351
+ (decimal)
352
+ (double)
353
+ (integer)
354
+ (unsigned)
355
+ ] @number
356
+
357
+ (boolean) @boolean
358
+
359
+ (value_constructor name: (identifier_reference) @function.call)
360
+
361
+ (value (identifier_reference) @type)
362
+
363
+ (sequence_of_values (sequence_ordering) @keyword)
364
+ (sequence_of_values (sequence_uniqueness) @keyword)
365
+ (sequence_of_values (identifier_reference) @type)
366
+
367
+ ;; ---------------------------------------------------------------------------
368
+ ;; Errors
369
+ ;; ---------------------------------------------------------------------------
370
+
371
+ ;; Highlight errors in red. This is not very useful in practice, as text will
372
+ ;; be highlighted as user types, and the error could be elsewhere in the code.
373
+
374
+ (
375
+ (ERROR) @error
376
+ (#set! "priority" 110)
377
+ )
@@ -0,0 +1,38 @@
1
+ [
2
+ "is"
3
+ "of"
4
+ ] @indent
5
+
6
+ [
7
+ "end"
8
+ ] @indent.end
9
+
10
+ [
11
+ (string)
12
+ (line_comment)
13
+ (function_body)
14
+ ] @indent.auto
15
+
16
+ (import_statement "[" @indent "]" @indent.end)
17
+
18
+ (datatype_type_restrictions "{" @indent "}" @indent.end)
19
+
20
+ (mixin_with_members "[" @indent "]" @indent.end)
21
+ (mixin_without_members "[" @indent "]" @indent.end)
22
+
23
+ (sentence_with_environment [ "with" "for" ] @indent) @indent.end
24
+
25
+ (function_signature "(" @indent ")" @indent.end)
26
+
27
+ (constraint_sentence "(" @indent ")" @indent.end)
28
+
29
+ (sequence_builder "{" @indent "}" @indent.end)
30
+
31
+ (atomic_sentence "(" @indent ")" @indent.end)
32
+ (functional_term "(" @indent ")" @indent.end)
33
+
34
+ (sequence_of_predicate_values "[" @indent "]" @indent.end)
35
+
36
+ (sequence_of_values "[" @indent "]" @indent.end)
37
+
38
+ (sequence_builder (seq_builder_separator) @indent.branch)
File without changes
File without changes
@@ -0,0 +1,128 @@
1
+ ;; ---------------------------------------------------------------------------
2
+ ;; Modules and Imports
3
+ ;; ---------------------------------------------------------------------------
4
+
5
+ (module
6
+ name: (identifier) @name) @definition.module
7
+
8
+ (module_import name: (identifier) @name) @reference.module
9
+ (module_import rename: (identifier) @name) @reference.module
10
+
11
+ (member_import
12
+ name: (qualified_identifier
13
+ module: (identifier) @name)) @reference.module
14
+
15
+ (module_path_absolute
16
+ segment: (identifier) @name) @reference.module
17
+
18
+ (module_path_relative
19
+ segment: (identifier) @name) @reference.module
20
+
21
+ (member_import
22
+ name: (qualified_identifier
23
+ member: (identifier) @name)) @reference.type
24
+ (member_import rename: (identifier) @name) @reference.type
25
+
26
+ ;; ---------------------------------------------------------------------------
27
+ ;; Types
28
+ ;; ---------------------------------------------------------------------------
29
+
30
+ (datatype_def name: (identifier) @name) @definition.datatype
31
+ (datatype_def base: (_) @name) @reference.datatype
32
+ (length_restriction_facet
33
+ ["length" "maxLength" "minLength"] @name) @reference.facet
34
+ (digit_restriction_facet
35
+ ["fractionDigits" "totalDigits"] @name) @reference.facet
36
+ (value_restriction_facet
37
+ ["maxExclusive" "maxInclusive" "minExclusive" "minInclusive"] @name)
38
+ @reference.facet
39
+ (tz_restriction_facet
40
+ ["explicitTimezone" ] @name) @reference.facet
41
+ (pattern_restriction_facet
42
+ ["pattern"] @name) @reference.facet
43
+
44
+ (dimension_def name: (identifier) @name) @definition.dimension
45
+
46
+ (entity_def name: (identifier) @name) @definition.entity
47
+
48
+ (enum_def name: (identifier) @name) @definition.enum
49
+
50
+ (event_def name: (identifier) @name) @definition.event
51
+
52
+ (rdf_def name: (identifier) @name) @definition.rdf
53
+
54
+ (structure_def name: (identifier) @name) @definition.structure
55
+
56
+ (type_class_def name: (identifier) @name) @definition.class
57
+ (type_parameter name: (identifier) @name) @definition.class
58
+ (type_parameter_restriction class: (identifier_reference) @name) @reference.class
59
+
60
+ (type_restriction_argument (identifier) @name) @definition.class
61
+
62
+ (union_def name: (identifier) @name) @definition.union
63
+
64
+ (mixin_member member: (identifier) @name) @reference.field
65
+ (mixin_member rename: (identifier) @name) @definition.field
66
+
67
+ (from_definition_clause from: (identifier_reference) @name) @reference.type
68
+ (source_entity from: (identifier_reference) @name) @reference.entity
69
+
70
+ ;; ---------------------------------------------------------------------------
71
+ ;; Members
72
+ ;; ---------------------------------------------------------------------------
73
+
74
+ (dimension_parent name: (identifier) @name) @definition.field
75
+ (dimension_parent parent: (identifier_reference) @name) @reference.dimension
76
+
77
+ (member_def name: (identifier) @name) @definition.field
78
+
79
+ (type_reference (identifier_reference) @name) @reference.type
80
+ (type_reference (builtin_types) @name) @reference.type
81
+
82
+ (property_ref property: (identifier_reference) @name) @reference.field
83
+
84
+ (type_variant (identifier_reference) @name) @reference.type
85
+ (type_variant rename: (identifier) @name) @definition.type
86
+
87
+ (value_variant name: (identifier) @name) @definition.constant
88
+
89
+ ;; ---------------------------------------------------------------------------
90
+ ;; Annotations, Constraints, and Values
91
+ ;; ---------------------------------------------------------------------------
92
+
93
+ (annotation_property
94
+ name: (identifier_reference) @name) @reference.type
95
+
96
+ (value (identifier_reference) @name) @reference.type
97
+
98
+ (value_constructor
99
+ name: (identifier_reference) @name) @reference.type
100
+
101
+ (constraint name: (identifier) @name) @definition.constraint
102
+
103
+ (term (identifier_reference) @name) @reference.variable
104
+
105
+ (term (reserved_self) @name) @reference.variable
106
+
107
+ (functional_term function: (term (identifier_reference) @name)) @reference.call
108
+
109
+ (function_composition
110
+ subject: (reserved_self) @name) @reference.variable
111
+ (function_composition
112
+ subject: (identifier) @name) @reference.call
113
+ (function_composition
114
+ name: (identifier) @name) @reference.call
115
+
116
+ (variable (identifier) @name) @definition.variable
117
+
118
+ (value (identifier_reference) @name) @reference.type
119
+
120
+ ;; ---------------------------------------------------------------------------
121
+ ;;Methods/Functions
122
+ ;; ---------------------------------------------------------------------------
123
+
124
+ (function_signature name: (identifier) @name) @definition.function
125
+ (function_signature (function_type_reference) @name) @reference.type
126
+ (function_parameter name: (identifier) @name) @definition.variable
127
+
128
+
@@ -0,0 +1,119 @@
1
+ Metadata-Version: 2.4
2
+ Name: tree-sitter-sdml
3
+ Version: 0.4.14
4
+ Summary: SDML grammar for tree-sitter
5
+ License-Expression: Apache-2.0
6
+ Project-URL: Homepage, https://github.com/tree-sitter/tree-sitter-sdml
7
+ Keywords: incremental,parsing,tree-sitter,sdml
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Topic :: Software Development :: Compilers
10
+ Classifier: Topic :: Text Processing :: Linguistic
11
+ Classifier: Typing :: Typed
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Provides-Extra: core
16
+ Requires-Dist: tree-sitter~=0.24; extra == "core"
17
+ Dynamic: license-file
18
+
19
+ # Tree-Sitter grammar for SDML
20
+
21
+ ![SDML Logo Text](https://raw.githubusercontent.com/sdm-lang/.github/main/profile/horizontal-text.svg)
22
+
23
+ A [tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar for the Simple Domain Modeling Language (SDML). For more
24
+ information on the language, see the [documentation](https://sdml.io/).
25
+
26
+ ## Example
27
+
28
+ ```sdml
29
+ module campaign <https://advertising.amazon.com/api-model> is
30
+
31
+ import [dc rdfs skos]
32
+
33
+ @skos:prefLabel = "Campaign sub-domain"@en
34
+ @skos:version = xsd:decimal(2)
35
+
36
+ datatype Name <- string {
37
+ minLength = 5
38
+ maxLength = 25
39
+ }
40
+
41
+ datatype Identifier <- opaque string {
42
+ length = 20
43
+ } is
44
+ @dc:description = "An opaque, general, entity identifier."@en
45
+ end
46
+
47
+ property CampaignId -> Identifier is
48
+ @skos:prefLabel = [
49
+ "Campaign Identifier"@en
50
+ "Identified de campagne"@fr
51
+ ]
52
+ @dc:description = "The globally unique identifier for a Campaign entity"@en
53
+ end
54
+
55
+ structure Tag is
56
+ key -> token
57
+ value -> {0..} rdfs:langString
58
+ end
59
+
60
+ entity Campaign is
61
+ identity ref CampaignId
62
+
63
+ name -> Name is
64
+ @skos:definition = "the name of the campaign"@en
65
+ end
66
+
67
+ tag -> {unordered unique 0..} Tag
68
+
69
+ target -> {1..} Target
70
+ end
71
+
72
+ entity Target
73
+
74
+ end
75
+ ```
76
+
77
+ ## Bindings
78
+
79
+ The following bindings are built and released along with any version upgrade of
80
+ the source version. The tree-sitter tool also generates bindings for C, Go, and
81
+ Swift that are not built and released to any repository.
82
+
83
+ [Node](https://www.npmjs.com/package/tree-sitter-sdml) bindings are published to npmjs and can be installed using the
84
+ npm command directly, or by making it a project dependency.
85
+
86
+ ```sh
87
+ 〉npm install -g tree_sitter_sdml
88
+ ```
89
+
90
+ [Python](https://pypi.org/project/tree-sitter-sdml/) bindings are published to PyPI and can be installed using any
91
+ standard tool, such as `pip`.
92
+
93
+ ```sh
94
+ 〉pip3 install tree_sitter_sdml
95
+ ```
96
+
97
+ [Rust](https://crates.io/crates/tree-sitter-sdml) bindings are published to crates.io and can be installed via cargo in
98
+ the usual manner.
99
+
100
+ ```sh
101
+ 〉cargo install tree_sitter_sdml
102
+ ```
103
+
104
+ ## License
105
+
106
+ This package is released under the Apache License, Version 2.0. See LICENSE file
107
+ for details.
108
+
109
+ ## Changes
110
+
111
+ See [CHANGES.md](CHANGES.md).
112
+
113
+ ## Additional Links
114
+
115
+ * Node bindings -- [npm.js](https://www.npmjs.com/package/tree-sitter-sdml)
116
+ * Rust bindings -- [crates.io](https://crates.io/crates/tree-sitter-sdml)
117
+ * Python bindings -- [PyPi.org](https://pypi.org/project/tree-sitter-sdml/)
118
+ * Emacs -- [sdml-mode](https://github.com/johnstonskj/emacs-sdml-mode)
119
+ * Command-line tool -- [rust-sdml](https://github.com/johnstonskj/rust-sdml)
@@ -0,0 +1,16 @@
1
+ tree_sitter_sdml/__init__.py,sha256=g0qr3eU5qacqFg6h3LRXWM-gR6DWB_2reNaa2e3YHGg,87
2
+ tree_sitter_sdml/__init__.pyi,sha256=8xf7bY1szgDY9HRJ7FJ326So4SFgMiSRfCB4LADkTpU,27
3
+ tree_sitter_sdml/_binding.abi3.so,sha256=oJ2aNjh5mK4fDHQ9Svf1cE5WdAF1kGj3t6BVSI9Zhys,334288
4
+ tree_sitter_sdml/binding.c,sha256=hIOIfEB_EZtSOw-YXhtUC6hrjVcWu1dprH4Mqr_mQgA,632
5
+ tree_sitter_sdml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ tree_sitter_sdml/queries/folds.scm,sha256=EVxryE6mnvAaqcVk22558Yu_CZP9v2KuUz_riZULd-g,550
7
+ tree_sitter_sdml/queries/highlights.scm,sha256=lIRp8I2FA-KFkhrni2cMnsyGVsQ1754jHpxHVGNIBAk,11681
8
+ tree_sitter_sdml/queries/indent.scm,sha256=deoc6ympjOkPAJs7icybMz-UjsHGF155Zo_LMkkaMZA,797
9
+ tree_sitter_sdml/queries/injections.scm,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ tree_sitter_sdml/queries/locals.scm,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ tree_sitter_sdml/queries/tags.scm,sha256=qO3FuV8HSx9KsarJHPRvY7HnIKJ0VFgxLmOQYHaqbus,4487
12
+ tree_sitter_sdml-0.4.14.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
13
+ tree_sitter_sdml-0.4.14.dist-info/METADATA,sha256=NQXIthZ00h-cw_1z1JPs7vgIO-HhNwCixluFRK085cM,3240
14
+ tree_sitter_sdml-0.4.14.dist-info/WHEEL,sha256=RxUjDmAUOiM8G0eRef23tQUtC5E-_2HJ9D_sESI72Ns,107
15
+ tree_sitter_sdml-0.4.14.dist-info/top_level.txt,sha256=mjYcPEFKBqOfnZnvfs53_iiNcwLJ4gnYmgtQmFeY0i4,26
16
+ tree_sitter_sdml-0.4.14.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp38-abi3-macosx_11_0_arm64
5
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,2 @@
1
+ _binding
2
+ tree_sitter_sdml