SDML grammar for tree-sitter
Project description
Tree-Sitter grammar for SDML
A tree-sitter grammar for the Simple Domain Modeling Language (SDML). For more information on the language, see the documentation.
Example
module campaign <https://advertising.amazon.com/api-model> is
import [dc rdfs skos]
@skos:prefLabel = "Campaign sub-domain"@en
@skos:version = xsd:decimal(2)
datatype Name <- string {
minLength = 5
maxLength = 25
}
datatype Identifier <- opaque string {
length = 20
} is
@dc:description = "An opaque, general, entity identifier."@en
end
property CampaignId -> Identifier is
@skos:prefLabel = [
"Campaign Identifier"@en
"Identified de campagne"@fr
]
@dc:description = "The globally unique identifier for a Campaign entity"@en
end
structure Tag is
key -> token
value -> {0..} rdfs:langString
end
entity Campaign is
identity ref CampaignId
name -> Name is
@skos:definition = "the name of the campaign"@en
end
tag -> {unordered unique 0..} Tag
target -> {1..} Target
end
entity Target
end
Bindings
The following bindings are built and released along with any version upgrade of the source version. The tree-sitter tool also generates bindings for C, Go, and Swift that are not built and released to any repository.
Node bindings are published to npmjs and can be installed using the npm command directly, or by making it a project dependency.
〉npm install -g tree_sitter_sdml
Python bindings are published to PyPI and can be installed using any
standard tool, such as pip.
〉pip3 install tree_sitter_sdml
Rust bindings are published to crates.io and can be installed via cargo in the usual manner.
〉cargo install tree_sitter_sdml
License
This package is released under the Apache License, Version 2.0. See LICENSE file for details.
Changes
See CHANGES.md.
Additional Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tree_sitter_sdml-0.4.14.tar.gz.
File metadata
- Download URL: tree_sitter_sdml-0.4.14.tar.gz
- Upload date:
- Size: 93.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e973f1514811ca02b8d979540131d1930a2548b8b97df59daa05d012fcf4201a
|
|
| MD5 |
ecc754758c4e28fb8279ed5c63a36a33
|
|
| BLAKE2b-256 |
1ce8074eefca79aa79b4a4f71251346cd4372aab5254f8b44c81f79d29fe02c0
|
File details
Details for the file tree_sitter_sdml-0.4.14-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: tree_sitter_sdml-0.4.14-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 70.1 kB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2fcf5c6edecfceab8a59ce0998e4eb84a99196ac0594f04b2c4c55401dd8f92
|
|
| MD5 |
fdbcd6acb00956a6b04178dafb4670a5
|
|
| BLAKE2b-256 |
26d87285fe9b4a4a07a082f433f745e16a31c16327dfda43defb1d2fd3dd1a87
|