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.1.0.tar.gz (64.8 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.1.0-cp313-cp313-win_arm64.whl (36.9 kB view details)

Uploaded CPython 3.13Windows ARM64

tree_sitter_rsm-1.1.0-cp313-cp313-win_amd64.whl (38.3 kB view details)

Uploaded CPython 3.13Windows x86-64

tree_sitter_rsm-1.1.0-cp313-cp313-musllinux_1_2_x86_64.whl (53.8 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

tree_sitter_rsm-1.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (65.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-1.1.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (57.2 kB view details)

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

tree_sitter_rsm-1.1.0-cp313-cp313-macosx_11_0_arm64.whl (37.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tree_sitter_rsm-1.1.0-cp313-cp313-macosx_10_13_x86_64.whl (34.9 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

tree_sitter_rsm-1.1.0-cp39-cp39-win_arm64.whl (36.9 kB view details)

Uploaded CPython 3.9Windows ARM64

tree_sitter_rsm-1.1.0-cp39-cp39-win_amd64.whl (38.3 kB view details)

Uploaded CPython 3.9Windows x86-64

tree_sitter_rsm-1.1.0-cp39-cp39-musllinux_1_2_x86_64.whl (53.4 kB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

tree_sitter_rsm-1.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (65.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-1.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (57.0 kB view details)

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

tree_sitter_rsm-1.1.0-cp39-cp39-macosx_11_0_arm64.whl (37.3 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

tree_sitter_rsm-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl (34.9 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_rsm-1.1.0.tar.gz
  • Upload date:
  • Size: 64.8 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-1.1.0.tar.gz
Algorithm Hash digest
SHA256 48d2514e2f597789677dc19ded9396bfb4bc0862055e0df045697734ff93465e
MD5 8435e4da782d0c8814954d8362d50206
BLAKE2b-256 c4d9618179e64fa50d4019c0d4c3c138fbb527edcd4908ba6a79139466368a13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp313-cp313-win_arm64.whl
Algorithm Hash digest
SHA256 d67a20544d79f0f9f7d16b7524f4575df6e78cc2d74109389656541d6ea6b56e
MD5 b0a28a1f67c79324adfb0802a3fe700e
BLAKE2b-256 f84f62fb3836cdd8e9310ac41c566fee346e9dbb13e9439a1cd747b7dd9e5111

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 11508d109fffe6f9a31caa1485a634a6cc4726a2f0b0c996752f9a464eea5f9b
MD5 619373be6f5f4bda799db59c8b40901e
BLAKE2b-256 c0e9c647a715211b43edb00e723f89f217f9c2f83fa2fbe0ce6888d41aab58bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 df9b39733d376fe8b86214e83e106238b713ad013c9b2e7e8265c26e675fbd47
MD5 15cb926fe39487b2445242c2a34e6aef
BLAKE2b-256 16f85d9e443f53b33e0d23cc56a5d229731a61c769242d13bf01f93f2f813da2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0eb8cd5788a11e04f71b848cf7f6c012d9307346c2aa24291e5552348e295413
MD5 e8f597e14ece0f53e90035c4e0db687d
BLAKE2b-256 9fb952c0bd0fb7416b2593d345de854f5e78df8d48b62a3ac034f48c49528d0b

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.1.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.1.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2536694887eae947c95bc7423ab85419a5ddf17e8de00563cacf607a653a3f19
MD5 78a1c1aafe4b11a0395ea3301d2e541f
BLAKE2b-256 01478afb0f83f7381b5f8a5447f14115664dd263fa2cdb266cab52c45f270cdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 284889aaac4237fe22566f583aed9796638e07aa273435b9d73095ee36476b60
MD5 a7b167d4669b58ada0b2651a64cce331
BLAKE2b-256 d140de5cc84b82a51ebd4a350f4a41850ed985e6b7154cd394903bab3eaac82b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 6b91e59a5c339238903a82c216ca6cd5e36de8ef4cde578c852f6eef61f66878
MD5 307fe760e944aff9e8161126993493c0
BLAKE2b-256 fd75d8d6e31332161d31f4e2c0a7e0b92db3d17ac6dc7046efef515a22ff01a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp39-cp39-win_arm64.whl
Algorithm Hash digest
SHA256 238089c4c8abf3770262ec2ff6d6f642e818731c50dc60ffe4f0228a35477ccc
MD5 87a237c6f56097fb5239663f31bec160
BLAKE2b-256 b0b2b757fc6285f0000ae99e68cbba51c5a112633d62fcaec91086e003044650

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d68e79f96b055c48de9628d494d31f215dc93da0b42e6de5af7b87d470ad234f
MD5 40105803fecbdf54547bc558013295d3
BLAKE2b-256 233cae5fdd0ac9ef698b98afe13a6ea8778786e9c1ae87fef09d9a78bbf25c0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 462197ee9415447fbb40980bb803b19efb54ac16b34cd7ed05a760a67813b02c
MD5 f50acd2a2026950986cee20d42235fab
BLAKE2b-256 5b62b6e967d3f0211954d896df207e3be0a16ad04d5bad84a27a9741e49dc298

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ea3e22b405bbd37206b88d85def3bc23507e3392fa2ba2132e897de8a04fb96f
MD5 353cdec60965610e9758db176561caa3
BLAKE2b-256 b1bcff685d969ea392682c1616dd15d5ac0a71b4acac776de2badb01c8a6ed6c

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.1.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.1.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 52c545a7bf5a3f9b249e6676dfbe3591a204e285490dc9da651c80de8155f711
MD5 5996a3dfc179e1a3d8e01f84ba2a5008
BLAKE2b-256 136a52106a4f39f2df0b711655819b49a10c2366cb47c4941ab16761c6e7962a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11cfe68aeba5df4c67e1ddf66e023ec4202872c46fa44a6bb347024de32570d7
MD5 3fe02b1012364f4f128e2bac5e2d7fdf
BLAKE2b-256 7337be284027e9e435f92bf3e091d1097025a2487f01e97656f24c3900f1ad1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4c3419c8f1ac4db233d30fc125c9c179c53b773cbf5090a6174a6b9c216c8a9c
MD5 8108c7aba92d16719bd40f74b5c3fdf0
BLAKE2b-256 fa9a9e4c182312ed50cd3744bc542f4291e65a5bb0e5fa80b8826cf7ffce1890

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