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.2.1.tar.gz (62.9 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.2.1-cp38-abi3-win_arm64.whl (32.6 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_rsm-0.2.1-cp38-abi3-win_amd64.whl (34.1 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-0.2.1-cp38-abi3-musllinux_1_2_x86_64.whl (45.4 kB view details)

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

tree_sitter_rsm-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (55.6 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-0.2.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (48.4 kB view details)

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

tree_sitter_rsm-0.2.1-cp38-abi3-macosx_11_0_arm64.whl (32.6 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tree_sitter_rsm-0.2.1-cp38-abi3-macosx_10_9_x86_64.whl (30.8 kB view details)

Uploaded CPython 3.8+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_rsm-0.2.1.tar.gz
  • Upload date:
  • Size: 62.9 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.2.1.tar.gz
Algorithm Hash digest
SHA256 3c9b9cbec79fd34fcdf0411833b7319f47cd66b3841e85201cc85c42b697808e
MD5 dfc5119bc5975bbabe3d69123c7a8e32
BLAKE2b-256 2237f038997900549f033035a23bb64ae3e34a2500cf4b4cf6973a16a2095549

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.1-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 5415ea1b1f068ed209d1083dacf07a0b1638857a628bc0e50370b922af5d2638
MD5 f62af3c2aaf7da042a94c5492b1911dc
BLAKE2b-256 b664069fb5496b064bd9b99a7e3eb49b1a9992e3e04bb589203e9d31138a1d24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1f9009f4fc0c8f66b64b9a59b7778e9afb25bf6d51515f07e649a82c294d4df7
MD5 e4ad02c4ef4f46d87df29520e69e9eb6
BLAKE2b-256 234cfc8ff4997a8984c19ea245d54285ea790dd90f5efb207614df07af28f6a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 81926f03a7da59888dcc7025b3e2de5c2560edb0ff36a21cb7137a45b9caea52
MD5 e242522292dff5333c790a7043c7f7ca
BLAKE2b-256 d0a95948f90d9364385829b0357ab9110e02758f118e0e215cb40e3e82631469

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cec7543b71b559ba358826f9e379ba60dac2096e79a181d8b5a0542afa6ae18b
MD5 e9d0ed326e2cbfb6d55a370c88164530
BLAKE2b-256 a029ad3a455a994fc89b1e2d9fb1fd6d2de2abd6be3a1a900bdbdd5f1d6017a2

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.2.1-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.2.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77eb4a1cf57feaeccc4a3fce7a58520c384f8e3d254d233185674963e73667ff
MD5 1762db387ca380b3132c8b1289281eb4
BLAKE2b-256 746bf1482c6035717dbde16ccca0baa95914558be44072bdc90fab06cf86621e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4be53e59a452550ff6294c0a88eed75ad15ea78f7666bde8583e41ee7e6481fb
MD5 752fea21dfb11f2d499e49a8afb1c5ce
BLAKE2b-256 7898899fc0e453f6c4109aeba46ba27e8c8ee9a0fde8e3d94948ddfc3bc711c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9b77f97f393a0cea78fdd2ce695b4b08aab5ad51d7ea15d39c3f1db7a53abb5c
MD5 10330e5ca7f98954e479a8fc17cfccf0
BLAKE2b-256 5c2881fa44bb2e6661395c3fc45e8f5130411c1794293e82ea87cb623ed2baad

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