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.3.1.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.3.1-cp313-cp313-win_arm64.whl (37.6 kB view details)

Uploaded CPython 3.13Windows ARM64

tree_sitter_rsm-1.3.1-cp313-cp313-win_amd64.whl (39.1 kB view details)

Uploaded CPython 3.13Windows x86-64

tree_sitter_rsm-1.3.1-cp313-cp313-musllinux_1_2_x86_64.whl (54.6 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

tree_sitter_rsm-1.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (66.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-1.3.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (58.1 kB view details)

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

tree_sitter_rsm-1.3.1-cp313-cp313-macosx_11_0_arm64.whl (38.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tree_sitter_rsm-1.3.1-cp313-cp313-macosx_10_13_x86_64.whl (35.7 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

tree_sitter_rsm-1.3.1-cp39-cp39-win_arm64.whl (37.6 kB view details)

Uploaded CPython 3.9Windows ARM64

tree_sitter_rsm-1.3.1-cp39-cp39-win_amd64.whl (39.1 kB view details)

Uploaded CPython 3.9Windows x86-64

tree_sitter_rsm-1.3.1-cp39-cp39-musllinux_1_2_x86_64.whl (54.2 kB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

tree_sitter_rsm-1.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (66.1 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-1.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (57.8 kB view details)

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

tree_sitter_rsm-1.3.1-cp39-cp39-macosx_11_0_arm64.whl (38.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

tree_sitter_rsm-1.3.1-cp39-cp39-macosx_10_9_x86_64.whl (35.7 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_rsm-1.3.1.tar.gz
  • Upload date:
  • Size: 64.8 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.3.1.tar.gz
Algorithm Hash digest
SHA256 7ddf00434f6648601f60789f192f1718f0bf5ba196911f197bc07b12c019fd6a
MD5 c5275b1b83758a7371ef03853f97d62b
BLAKE2b-256 ccaed6a5a420bc4f4dccb18422d60bb9e2e2bfdf0f5fb61681a7ab2a99ee9d0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp313-cp313-win_arm64.whl
Algorithm Hash digest
SHA256 eb1d0b8c6d270a88beedf816d12a1408d626dd12cd937e1e49d5eb2bb5d2b0d2
MD5 8529bb4db37206e4ea51ad0f26ca07b7
BLAKE2b-256 77b33ec97d056b25cb5d1784d51326149982f071df0009c5083342f39176ce98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c542ad16e653416ce18c2d8202b9114468e6507ef857d19c6bd8573ba6f0cb6f
MD5 86ca5f3b3f4deb3a36873aac82c9d0a5
BLAKE2b-256 fd07adac9bc16bd7ff0c5656573fd0913190605bdd58a21c5f5e730015be3efa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 650571506a98e8e8f3aabd407a43749b7e3e184a1fd71141bda1a632141d1f2b
MD5 370235294ceb414c701fbd8f4c8249e7
BLAKE2b-256 41d4f74aa8d5ebfbc50575639924bc158b27473d076c76df369d5641e55b755d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 82174f9932761ba23f86cc4482a94ebd081c32070f00142fd590d921c3e8640b
MD5 162dbce1f8cd62b581944deb55faf2f1
BLAKE2b-256 15b4a195107619c98eddfa8bc0f99c6650d9afc90e257eae4db0ea9672653e10

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.3.1-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.3.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2ecc6736e6768b68581be55bc8b9a58572c105a2f1da6d064964774a7c9b6cad
MD5 64e6effc2d5303fdea7585626887d2d7
BLAKE2b-256 5b5e6b7aaf643bf2580c75faa2becbbb3c734f768b9f4f29eaf8bc4a03813171

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 265a6b6acb6a50537a40833dc972303fbe3d4adedfa7a28bbdb5eae74a81c171
MD5 defca734e145026fe4d3a88520c80090
BLAKE2b-256 0b81267281bd90d13df0b13d6e8afd1f3f908279d54424a3a68bb80cd9703d68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 10f9f9a426708bb81429582cd0beb9687ef8d1c6fb729a81259b84bd0c74cfc3
MD5 06dbc440532ae4c38b862d7b82fb22a1
BLAKE2b-256 d8fc2dc595e6277304d003b92f0a776897a6d9711902944deac8c8a975eddeee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp39-cp39-win_arm64.whl
Algorithm Hash digest
SHA256 c8b5932883ecaa4a8bf6ad29672ff1e1ce61edb7ea6849fb467775255328a387
MD5 4e5e4b62632aefb88e9f667c261f14b7
BLAKE2b-256 66df683a16dfebb88c86c76242814dbe6edf00ec1f93543f6f0d6e75f9b8fbc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 82fa22af3751c69b2f6bdaa35b7282ec8f3751525e504a4bd00cbc50c6800af3
MD5 81a4a01ecefce022b1a84c6dd0eb2c0e
BLAKE2b-256 464efe99604bedd96e280cc0f1a60cca88143a6674886b9e8fbc7544c2475b0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e8d02cc202d2276d97bf3693fad12d8089b555c414da1f085b1cd0a856327c13
MD5 ca531d030902bcd364cf5652c08392b9
BLAKE2b-256 8e410901c3d80fc612c3cbbfd0520a06e0fbe690552ab5d9a22809f5194c481a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 083322dee4873b1a40f1c08f8bf0a09cb124d202d9d71deeaa61fde2bfa1e061
MD5 1df880382cf2815ed5aaf8a968f5b392
BLAKE2b-256 3e56cf9c7a20242520685395ca3b3ba63168e0df34b5c44267e8bd13ccc2fc49

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.3.1-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.3.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 73cc340b89cd1044104179f89a32148aa8380c2f42317ec36314b2afe94eb970
MD5 4facdca7fcabbd3b13dfa37a6b770b84
BLAKE2b-256 0da557bc3931c734e083e45fd7529cb2584831420d069be3de1c2db46a339c26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a67899b03fe78fb312d61cc4521cc78b2c98c8d2728fc9f01d3bb1e2469d4838
MD5 f0d63c8efd618fbd48bdbfdb1290e900
BLAKE2b-256 60b61ce19a3061f449eaebd263f9e6bc8fb6d635129a192130eabfbe621129b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.3.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5bd5121445af7bf8505e07b1b65ee3a61ebc985aa48a2550311c90cbfa6cf770
MD5 c468213ce26483793fec2f73c685c5e7
BLAKE2b-256 354ded64ed60c492286640ec3d97501f280d77038cad7a1fce0016afcd17bd07

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