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.6.1.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.6.1-cp38-abi3-win_arm64.whl (32.5 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_rsm-0.6.1-cp38-abi3-win_amd64.whl (33.9 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-0.6.1-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.6.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (56.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-0.6.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (49.5 kB view details)

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

tree_sitter_rsm-0.6.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.6.1-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.6.1.tar.gz.

File metadata

  • Download URL: tree_sitter_rsm-0.6.1.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.6.1.tar.gz
Algorithm Hash digest
SHA256 18206b1c12ac97c09b1fac10628ccdfd90762c04708442403e3b69114f3ed44e
MD5 7e23c7131e3f05529735999d6777f6da
BLAKE2b-256 2fbfc16fbddd513cc554119a6b99a96fcdc56d3888fcb3c1b59046ad8f669040

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.1-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 d25b52c69cbf38d451f2447e2f0730099d53f0798808feb32d5d9703b921a485
MD5 c83b8a6dc44db2606a74e18414aaee70
BLAKE2b-256 b790c63ee8cc35b207321bc84dc3f7ff262d048e18eb7a73ca76311c8f1e9550

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0de7c4f5c984ccf6a72599d7f77cfed1632ce46220f43f086c0a0c4abd14e6a6
MD5 1073a3ef5fd3f9d238c1a732daa195d8
BLAKE2b-256 5d92f1361d9187ca0e1ddb4acb3e90dc62a650c810a4e75146ab744078dd5b9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f491fec40b2351ead5fd469401637dc1cf964b465980e1ca8e3e7669f18eeb76
MD5 4d5cab61fc4d306098952a0c724ab4e6
BLAKE2b-256 9768fe1cb7fee5fbc8af8f938c9bd05474ea810a55387869a3c1aa0d8f73aee4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d92596004d77f74c89727e58224a15f8243a07138366953f48f4f9db0c7f4df9
MD5 ceff07957775b91d9833cfeef457a484
BLAKE2b-256 7fef25a4dc566bf2c65a37d9f841a1322debead07a9d8049b66b7435a2dc9983

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.6.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.6.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4c3c673b9ca1e6e4e4ea5569f1e502415c961b157df3daed9df15010f841a73e
MD5 6086a11b08e226d95fb4b673402d82ac
BLAKE2b-256 d159d9093f2fe694b7568f406c81f13cabe1ae3ca83a1ddab3035d2f8d87ac85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ddcf2c99ca203f36b0c9abf412f08acbf88186c9c997b22b47932f3a2bd31ea
MD5 39070bbbe9abed001a4dd6e2495b6936
BLAKE2b-256 88417f7d51dcf3c964249ed68515a6698803bcd3aae15e4a14af0c9edce0757b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 effcee4159628cae388835feaf63afa40e57b96d329135f5c9347a311ad1bbba
MD5 9609ca526c258b91233992782e668542
BLAKE2b-256 be9cd8c47799ecefb52dee1210941d0d27d2d85b3d90e6c5ddccb3690098bdcb

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