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.3.0.tar.gz (63.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-0.3.0-cp38-abi3-win_arm64.whl (33.0 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_rsm-0.3.0-cp38-abi3-win_amd64.whl (34.3 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-0.3.0-cp38-abi3-musllinux_1_2_x86_64.whl (45.8 kB view details)

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

tree_sitter_rsm-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (56.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-0.3.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (48.8 kB view details)

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

tree_sitter_rsm-0.3.0-cp38-abi3-macosx_11_0_arm64.whl (33.0 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tree_sitter_rsm-0.3.0-cp38-abi3-macosx_10_9_x86_64.whl (31.0 kB view details)

Uploaded CPython 3.8+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_rsm-0.3.0.tar.gz
  • Upload date:
  • Size: 63.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-0.3.0.tar.gz
Algorithm Hash digest
SHA256 becede332f9369670ea2bb36f5bd57baf8a042e4a858d26cd419effc19690faf
MD5 385d9cdebb71238b0e74b4e372130b62
BLAKE2b-256 ad3734a91b92a188de8eee08791168666e6896a98eee1f9fdcd112e9c9276a1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.3.0-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 2b3f937d5a68580d01d855fd033acebac9b3ab0052003893ffa0f3115dcc0347
MD5 35f59dc2d86b0db38d1a88501d71a962
BLAKE2b-256 111a80151499402a5bf2a53fd895b556b3505cc0ba326b31b2a3033c96f8b6ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.3.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 65d705c9a8004f54bf3582f2a26e1df305396ea674d31e3f35e2de4511b0717c
MD5 ae94ab326bcd8c641e9d2e6825461e99
BLAKE2b-256 99d7290fbedebf2c62d4d6723fdd3b60114b7475b033b8e5f2cb4ea65955bc8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.3.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cc6c34bd854f492f87c61c3148f519aeb67a7d62449ce68c39c5c5ae92d704f3
MD5 8d183470c91d338a19eccd8eabd800ec
BLAKE2b-256 a6892a2586f96418cd1a148bfa932ce61258ac2b6fca65bd983308283e720fb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c34d4cfc1cceb6d701e99c4ee236076798eeb30ed69cc1573ec5f9fbf98f33dd
MD5 e5288e4835556a8ff81ca833b61f7295
BLAKE2b-256 3bc01016300dd1be5f9d60e463f389d3e39be315c4b4b63b4ffa6fbc66044df2

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.3.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.3.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7f221af40404ddc11625f70f31be11567b2e0b0b8c6bb38aa53b8518bacf725b
MD5 a2401abdb08cbd96184344970b98d2d8
BLAKE2b-256 ff36d93a179babc249a37854ed5644eb011729b83cdfc68f51c14ff85621423e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.3.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a50e4b99c782738ecbbf461167e2acf3a37ded3f572a9a2311a6552a0e088e2b
MD5 7c4e4bac8c647b61901f850ae58d3be0
BLAKE2b-256 9251da2290afef2a40039cc174ba316bef08ce1baee61ba64ed34b03c57034e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.3.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 94fbf29ccdf3fefba383da6bb9aeed0393ea8201ec0fa8632d52d01f4ea3fce0
MD5 7bea080a99ef43be01cfc93ab1b2d3f2
BLAKE2b-256 d97a967241fe905f9f79f7515135277d81142364c227cfd7243aafe76b536a96

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