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 npx tree-sitter test.

Compile the grammar locally by executing

npx tree-sitter generate --abi 14

and build locally by executing

npx 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 npx tree-sitter version <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-1.5.0.tar.gz (65.4 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-1.5.0-cp313-cp313-win_arm64.whl (38.4 kB view details)

Uploaded CPython 3.13Windows ARM64

tree_sitter_rsm-1.5.0-cp313-cp313-win_amd64.whl (38.5 kB view details)

Uploaded CPython 3.13Windows x86-64

tree_sitter_rsm-1.5.0-cp313-cp313-musllinux_1_2_x86_64.whl (55.0 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

tree_sitter_rsm-1.5.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (67.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-1.5.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (58.6 kB view details)

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

tree_sitter_rsm-1.5.0-cp313-cp313-macosx_11_0_arm64.whl (38.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tree_sitter_rsm-1.5.0-cp313-cp313-macosx_10_13_x86_64.whl (36.2 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

tree_sitter_rsm-1.5.0-cp39-cp39-win_arm64.whl (38.4 kB view details)

Uploaded CPython 3.9Windows ARM64

tree_sitter_rsm-1.5.0-cp39-cp39-win_amd64.whl (38.5 kB view details)

Uploaded CPython 3.9Windows x86-64

tree_sitter_rsm-1.5.0-cp39-cp39-musllinux_1_2_x86_64.whl (54.6 kB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

tree_sitter_rsm-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (66.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-1.5.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (58.3 kB view details)

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

tree_sitter_rsm-1.5.0-cp39-cp39-macosx_11_0_arm64.whl (38.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

tree_sitter_rsm-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl (36.1 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for tree_sitter_rsm-1.5.0.tar.gz
Algorithm Hash digest
SHA256 df71835f8a24f20a60ab5f61c918e388a2e4b7db173201613b75b5198ab2ac34
MD5 4b98a373ee0340a99b29cb46f03fc42e
BLAKE2b-256 f083b31547ff09f589822f801239f1800bc556dd5f9b81d4737a00ef2db63566

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp313-cp313-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp313-cp313-win_arm64.whl
Algorithm Hash digest
SHA256 2b8a7599e8362e1318bf600003a41b139930ad410fc469d8eada5ad0cf74c10d
MD5 8ee39805ddbfe38b93c30c292dc3e807
BLAKE2b-256 1feab6ab57a450cad52d9d94fee366eb689aca1f6e7ef5782c9625210ac3fcd3

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4ebcd130c4e9bf58b0bcbe5c8359a8fd443d9946a61e44b2ce342ec0f1eabc0a
MD5 7f568c0b5a452e77e1ca7207bb006d8e
BLAKE2b-256 76a6e442afdf3915bb5e4b770fff41c25eb70890c210f3a29a5276113d2528d0

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e12a71b7bc0abbc420d59175394ecba6c5fde5404df1e9520402589ff069a13b
MD5 12ebdc3ed601b27946ba9fde4feb50fb
BLAKE2b-256 b09b6978e3e8bd0accd13285a35d6b867f2fe01a3cb0c3b77126dc81eb3ea450

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 69a6870b1c472aabdd0c2805f10d5c510e3f34fdbecfc86376537cd571d6c590
MD5 738a7792ead6220dc5189f46da24253a
BLAKE2b-256 969a234f6ea9b17ae2fd6c0fb1ded1920ed65f9803ce8397af16b9ab6f6202c0

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp313-cp313-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-1.5.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d3f8e0c5c3ddcc701876de558699c3dc792f27107544a338c8f266fc0c875259
MD5 b485050fa27cea7acd5f266370097184
BLAKE2b-256 a0e76eadbfd759da12ae3d71e601cd5a7506650e0d2cdc1deb62c4f6a22154ce

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42560f08f6aa825db1763fd2be87623a3fac426243e7391d90fe0f0c0177a52a
MD5 43b4082ecb54e25596b87c092b947c97
BLAKE2b-256 2ea55865f8a5e304889ff5ca3339e4b3a23445261f9d939bab8cf31c58766534

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5f357c3da3608d57f85fc0a53e5d8315240865ffb6bd3c1410b3ebbb8ef0f2e5
MD5 803076689c12588b01a7026cec0ceb97
BLAKE2b-256 19e75a3b54bde025d0c14117bd35dfc3ded05fe1a6794ead411b3399a92a81a4

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp39-cp39-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp39-cp39-win_arm64.whl
Algorithm Hash digest
SHA256 1007fbdec1e14800e85c4f700e24f04db01954320f57006784100322ae438737
MD5 f973857c0c052b022402f0a2aa190fe5
BLAKE2b-256 8deb5ad9f733ef22ca421550ac205fc579c0b86aa99d53850ce41c6f32678c67

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c03a364b494eebef09ef5031b242af78e7ec55ee18b2d642f886f65ea0757f57
MD5 02fa448d6ea367c98d6da678bda1a6c8
BLAKE2b-256 92d4dff197a7f442342e4ecedde98797686088dde07205467153a941a33747ee

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 019c8089eee9a390ac2989e55a60680e18a138f2cb54044766f029c56decc34b
MD5 0c4f174d416b7026f95cb736cd53543f
BLAKE2b-256 3451636e8cb67072bcbc43efc967aee6cc035455b7c44ae38212250f7fc24f0a

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2b502066da4364e41e2d99de20716ac74c4e16a16218eb6ceda22c7b9ae1f05c
MD5 f832e3d7d336640ff70782b9b0154196
BLAKE2b-256 c993ad0f74ac48b71628920f472c054fa78981c4b11f39f597ddb9d93f3e1be1

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp39-cp39-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-1.5.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6bb2fccd4ef70053effbd2e2cdcea91db6bb8662dacfa6f705b4c9016091dda8
MD5 b894bbf42e1b264af0685e773e71b00a
BLAKE2b-256 400dae24e0a540c58cb352691b3e574392ad747d7b98864e8463cae922141749

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d7d8df61b900b339f9381131927a744b0f7661a4d70ada047b3e2acdb98999b
MD5 89a6a6a9dc6db466a5c00b8e4cde9cef
BLAKE2b-256 bb9cd1eac042d67d8c7dbe5cb9c2bb9686a14cb6745d42157a2017347d7dac97

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.5.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f9aec72c9b5e0331b5c5b5845bf24eb1ae7a76c81bfe706287e7db44f71bcb22
MD5 94787cdb319df76cc03882dafcc37764
BLAKE2b-256 4890b9d07ce5bdb66943d0b2fe3c26939869f33b38c986be01e3cce5ae5e079d

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