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-1.0.0.tar.gz (62.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.0.0-cp38-abi3-win_arm64.whl (33.5 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_rsm-1.0.0-cp38-abi3-win_amd64.whl (34.9 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl (49.7 kB view details)

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

tree_sitter_rsm-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (60.0 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-1.0.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (53.2 kB view details)

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

tree_sitter_rsm-1.0.0-cp38-abi3-macosx_11_0_arm64.whl (33.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tree_sitter_rsm-1.0.0-cp38-abi3-macosx_10_9_x86_64.whl (31.6 kB view details)

Uploaded CPython 3.8+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_rsm-1.0.0.tar.gz
  • Upload date:
  • Size: 62.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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 337643299679fa223f4bdbac5ba80f517aae3e05f56f9fcf246ed67c29026642
MD5 7d2b3350ca22c1540a48851d5ff7693b
BLAKE2b-256 9270382f3207b2f78a42a333d83adfc68e79d61db1ca03efde13d5017b060660

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.0-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 bccaa0a110f3a9ff440a7f679836900cf55eb3d319a4342587e81a7a023d618f
MD5 9b0fab58e043aa3e90911eb78f711fa2
BLAKE2b-256 1c9cc875c9d9299f7cae606a8f636988c3b020c8fbbd29a8a931d1f2e9fc3e4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b07a4b8f76aa96435fc5de22b73a3d57aa01c7e6f139dc6d6b6b1d6e08784a69
MD5 cce37b05b80a45b982b976b9b19bdf78
BLAKE2b-256 f6bbdfa2d7ae7e116e0d28d3801da9f37efec065c19749b9295aa1dda7afa7a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fed868542c7925d80ece08e72ffb721ea7b9ceccba3c8e9c3d82c844044af8b7
MD5 b733d15bb319c5bcac882b5cc4230d1a
BLAKE2b-256 302ac4efcfe0b6a6588735f0f537e60b73973aefba98c85ed98affd8a7e39b15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c1bce02968a8b4438f84b82559f15d038c8b8c062f732120773ad985e7409cb4
MD5 878cb99c1525a1173fcbe076cf08a50c
BLAKE2b-256 b942b2ae95127c589109aab5614c2253b95f98c280507464d2c6296ccff196f9

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.0.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-1.0.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 590f080b65e4627b4f22c54a5300a6439d41841a891c63ded0e074e8b445f0b6
MD5 ce8b51cc34cfae1fd7b5f1ee2a9d1c51
BLAKE2b-256 34311253eccdb4e0dc7c6c06de9cb475f7bd5cd6baf8224dd22cfca201f92891

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbc34b3dd1236832d952eb02f6e780efc55e1468a87045327285302d54b07e80
MD5 ed39a354432c0495348b91fed63f908b
BLAKE2b-256 5d01399db1cf7e5ca0418bb7d39277cb9112811dabf3d428e37895d7608462b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8e675b02ab1ab0ab8ad921d9681ad22db233f13bcc04316e506538ba2a0f9eab
MD5 fd5bf2c167ad4f55ebeee90f3efb4ab6
BLAKE2b-256 7729206db0b8bd679f8d3515777864aa0622f083dd3d4f594663b2f35f48015f

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