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.0.2.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.2-cp38-abi3-win_arm64.whl (34.9 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_rsm-1.0.2-cp38-abi3-win_amd64.whl (36.3 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-1.0.2-cp38-abi3-musllinux_1_2_x86_64.whl (51.1 kB view details)

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

tree_sitter_rsm-1.0.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (61.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-1.0.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (54.6 kB view details)

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

tree_sitter_rsm-1.0.2-cp38-abi3-macosx_11_0_arm64.whl (35.0 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tree_sitter_rsm-1.0.2-cp38-abi3-macosx_10_9_x86_64.whl (33.0 kB view details)

Uploaded CPython 3.8+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_rsm-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c05352546ded01bd10b4c21cd50e002476d1edf36b2446dd5963dd8a84355ce8
MD5 107611637dfd772d314f7cb8b200ae43
BLAKE2b-256 23701b00336bdafa6b17d7bc9670b701a95d7b742c756bb0730a2f47c014ece6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.2-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 1d54d4c9da2a303543c3bc3e5723c069f9637c0df1d49b5e10d1aecd1a69c32e
MD5 393ce319a9aba0a4848fc558cb6b5a87
BLAKE2b-256 2adba3bba10a2fae8b8f3beea633da452a990199ee788f0f63736ea41de10c84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 68b7afd1fd85414df2837fbbde7150c37ef9667557b93ce403020be575c6f03b
MD5 7e360653c15ac32a5d8c413a993c30e9
BLAKE2b-256 50e1ccd5abbbc1ec49174f7d2ba5da26d190638ad9f4c6457c8e682c7574862b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.2-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 759852bbba9d58e6245a60c44e442a4e33bf404048043269a60495781cd6feb1
MD5 b27cc6bd56c777a6fd673f11775a0a86
BLAKE2b-256 656785b68cd967419679dcf8b82fb6f69ebdb6fff046f5f2e88a3adacf3e1237

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a823050986c0a4be17f74fbd2bc125480d1726acb89effec6b519355dad3a81e
MD5 d4ea48810cfbb62bb903170f24822547
BLAKE2b-256 4730844582177de1a0eefea0a1766aabed5fa2b8a8c8c8031c45d840de946360

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.0.2-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.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3eecf35dc3719d7580fc9151e762684fa4f290981ae78dd7a7442b06d0caa9f8
MD5 35bc06b3ebaf040b247b709123828701
BLAKE2b-256 85ad730769ccb59a9359a94c9e9a4d04985d76917f769939c78d0d53b37a2225

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae2e8f085d1aa35881e7592d23c4e9d2d99435f93e6f61539328fc3adcb7bde6
MD5 7c300ce2d7b8536f3119201cb4af9b9d
BLAKE2b-256 ef78dfadadad4b40d8e42e05c3fff1b272f0e95882c0925bb8008ed1a837de0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.2-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f44b990560965af33fdf178d370d10ed2fdcef67fa4a66ca04555c845d784fc2
MD5 4ec2ddcdc4d864d812a3dad0c2f9d2a8
BLAKE2b-256 e8880c318bee54f02221f480537b7e61e3f079f7d0bafe079686e2a50280286b

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