Skip to main content

RSM grammar for tree-sitter

Project description

tree-sitter-rsm

This is the reference implementation of the Readable Science Markup (RSM) language, written as a tree-sitter grammar. RSM is one of the cornerstone components of the Aris system. For more information see here.

Development

The two main files are grammar.js and src/scanner.c which implement the language grammar and the external scanner, respectively. The tests are defined in test/corpus/*.txt, and can be executed via tree-sitter test.

Compile the grammar locally by executing

tree-sitter generate --abi 14

and build locally by executing

tree-sitter build

Once development of a feature is complete, submit a PR.

Publishing

The grammar is released as a PyPI package by following these intructions. At the time of writing, a summarized version of the instructions are the following:

  • Bump the grammar version with tree-sitter <version> and commit the changes generated.
  • Tag the commit with git tag -- v<version>.
  • Push the commit and tag with git push --tags origin main.
  • The publish.yml GitHub workflow will take care of the rest.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tree_sitter_rsm-0.4.0.tar.gz (63.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tree_sitter_rsm-0.4.0-cp38-abi3-win_arm64.whl (33.1 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_rsm-0.4.0-cp38-abi3-win_amd64.whl (34.3 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-0.4.0-cp38-abi3-musllinux_1_2_x86_64.whl (45.9 kB view details)

Uploaded CPython 3.8+musllinux: musl 1.2+ x86-64

tree_sitter_rsm-0.4.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (56.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-0.4.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (48.9 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

tree_sitter_rsm-0.4.0-cp38-abi3-macosx_11_0_arm64.whl (33.1 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tree_sitter_rsm-0.4.0-cp38-abi3-macosx_10_9_x86_64.whl (31.0 kB view details)

Uploaded CPython 3.8+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_rsm-0.4.0.tar.gz.

File metadata

  • Download URL: tree_sitter_rsm-0.4.0.tar.gz
  • Upload date:
  • Size: 63.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tree_sitter_rsm-0.4.0.tar.gz
Algorithm Hash digest
SHA256 56a6d4e28983255368aa47b834e5380745988fb64a4d807025e04cdf906da7db
MD5 0418a86d268745d3df55da4e313d7b23
BLAKE2b-256 85647e9535266084de8e628e05c0b7482e06ca9eb8c9d06ed3d3f34b5b9a74fa

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.4.0-cp38-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-0.4.0-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 47504ae4ed0e642fc98a5562f209b8ff25110dc37cc2943c4f171d67129a577b
MD5 8f4d98362da96137ce1cda33d235defd
BLAKE2b-256 971f8fdab25518df5d3842950be9042feae715b442983956309b29333abed53b

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.4.0-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-0.4.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b01e1bef18078a124a185aa46e127e558a511f0f9bce405162aa145e90010582
MD5 f3dbbb1757d3ef9c225b055fb2d8e1e8
BLAKE2b-256 e3757e3cf390d6b1c758867acaf0a41bea1fe749aeb0f3524f8af0660a2ec13f

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.4.0-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-0.4.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8dcdf5f69863a290bafd1534d74fb1c78be386eb8170f65b91f7e0be2ad3fc51
MD5 d8a836987ac1631a2e51945e3f560130
BLAKE2b-256 e2e21d738b502c7fb847f3bca4e334a03869338de31ce46972972da1db7497c5

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.4.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-0.4.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 83e645051caa84a647468d18cf4b39f8d3f6b381ae53133cd97a56ccb155dea9
MD5 b1c9c0d447da610650a0c0a4e2222bdb
BLAKE2b-256 5e04554444bea3e3a29a2bb2ab57bd6620d42a5e3b7d4b92908ccfd6a5d3b5d3

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.4.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-0.4.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2f49ee21fe1c9ac4f5eb603e789437f37ea121c5500d7520b643fdb9ab2b285c
MD5 94bb5c93169ec5dcdf7d1a36fb3a24e8
BLAKE2b-256 8a9367ff8fa7b29ab88310efbefee9e30f7a422f8bcd61d129c3e4dbae056035

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.4.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-0.4.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c64c4ce65c9c11757f8d17528adf223aa035d9955b9179a8304202b6d03b4242
MD5 c69de0a423f249122b6e044f5264c604
BLAKE2b-256 631553fa5c8e29b71a819dc3feb35cec5f6e4c89f9ead36c51396b4897dd8667

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.4.0-cp38-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-0.4.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2fd0d42ecba6df8a18cd876a99caee512feb38f97d5994865017ff47838286c9
MD5 1c0ef370bdc161267142365afd5171dd
BLAKE2b-256 3f27f8d57873b611945b21b386b1753f2c9e77f71de4d4899f8dde287e7b6046

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page