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.7.0.tar.gz (60.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-0.7.0-cp38-abi3-win_arm64.whl (32.5 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_rsm-0.7.0-cp38-abi3-win_amd64.whl (33.8 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-0.7.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.7.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (56.7 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-0.7.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (49.4 kB view details)

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

tree_sitter_rsm-0.7.0-cp38-abi3-macosx_11_0_arm64.whl (32.5 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tree_sitter_rsm-0.7.0-cp38-abi3-macosx_10_9_x86_64.whl (30.6 kB view details)

Uploaded CPython 3.8+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_rsm-0.7.0.tar.gz
  • Upload date:
  • Size: 60.4 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.7.0.tar.gz
Algorithm Hash digest
SHA256 70d95c00df3ed34a82e33b386922ae58b13391a08598edb857fd4e74e76bcd68
MD5 da8f9718dabd0d929fc1ccc3cce07bee
BLAKE2b-256 c282787a056d3dbabdee4fc0feb873bc0a8a299e79b68f171ca66c26d7ff5931

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.7.0-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 af33e568d450dcd2ef084a5746f53276284503d462eec00cbf4dcae728986ebf
MD5 28c2df911186670bfa79a331e6c6581d
BLAKE2b-256 f1525b91c683ed4fd731372650ab7c9cd0e35033e7c642e94ee99ee0364978d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.7.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a471f8a4223b24453097db3210147daa34751b2eda83cb2f98ff2ba841898a37
MD5 cf9eccb0370bd24376bf21dcb922f7c9
BLAKE2b-256 afe3a93c91a4e0d5d7e93ddd88e5af3777b076c37ed5d8fc8c4d73236e258e6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.7.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ad1a20832137037fa92bb6d67e78fc6f7623c62782f2238ec055749208f45174
MD5 136db974a60a5f785a77611107986439
BLAKE2b-256 ce5a2be0782662a4f33ef90140bd6a5ac9a1bde0bbbc7a63c50b4e117d764284

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.7.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ad5228753ba4bea5d04ebe45279e78d5b0cb14becbdc1572d4bdee968115edfb
MD5 bf9b3aaf641194cdf1c2c19787e3bb54
BLAKE2b-256 7927188b7fdcc9dfef6b89a9cdf37039bff18c9ef5472c7e3dcc220d972a6248

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.7.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.7.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cd2cb51b4b5f53e96e6082bfebf6c721eed8475d0f85df4d8d20121cb4d9f2a7
MD5 d825edaa92355d7dab814a8479d27655
BLAKE2b-256 24c8258263a702d5f8881957cc14705c3ca4e01b8bac6cc0669262d2971e026c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.7.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5415ffad4fff8066bb3a2e640d11bd82e67c0b2a7ae8ad9c237ccc8e79faf91c
MD5 3a1e736dce400e0ff601ab04d76d4597
BLAKE2b-256 799ee70b4ff5a443c922ab2245c22c95dbb4c5bcfafbf5972dce35b1c74b531d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.7.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b9ca89dffd822d9e1fe2fa749448c3e561e53648cbc94faa2f55dbf623caf065
MD5 51297827a4ca0219e6188af2ddf137f3
BLAKE2b-256 c47381643a146dca2e4abad2aad80c1fe902807aec1b770e57acf5baaa72d904

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