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.0.tar.gz (60.3 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.0-cp38-abi3-win_arm64.whl (32.5 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_rsm-0.6.0-cp38-abi3-win_amd64.whl (34.0 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-0.6.0-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.0-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.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (49.6 kB view details)

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

tree_sitter_rsm-0.6.0-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.0-cp38-abi3-macosx_10_9_x86_64.whl (30.7 kB view details)

Uploaded CPython 3.8+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_rsm-0.6.0.tar.gz
  • Upload date:
  • Size: 60.3 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.0.tar.gz
Algorithm Hash digest
SHA256 9e20e43cd90a4d522a0c43baefb763c23b25e9a1e68befabb83c5316040e0e1e
MD5 66ee17e885f320e1bc9735b32d905781
BLAKE2b-256 ebe7ebafe05e035f46e48fd1aa5249d2c0d7ff013190579e8d14bd61611982cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.0-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 24e0c3927e74516b265f38b3563ba72af8168d0eb57d651a85fc1afdabe4cd90
MD5 25546c73142640024500da5aa2fdb6ee
BLAKE2b-256 ef1cc7c49b04489eaee7bead28187ad5250f6bd38fdba8666d9753cb326bf700

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 67a50cec80f904c2f3c71c38b28259e02aa75c522bdb381ca18d45c6495cba27
MD5 a9c458206ea92bc55e5ce34e84659d40
BLAKE2b-256 3d0ee58283f8846036d754530cb6d8fb82c65f5a1751bfd4001f28c5170299b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e4d4e68b7e6c5134bf9d8c1279637f600b8b1f4fb9e25a29fc938d611996ee78
MD5 91d6de32d19cb261c512cacbf67ec8a2
BLAKE2b-256 a999373da834cd12820dc74636b7e678cbd0b5cbd58c0328d776ea905d15d7c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f6b639bbbcb82f87082c2956103944d01cb1d4c79d2fc357dab3dec5eb77c4bf
MD5 e3a55fa6f916e6e03feff6e41033aa75
BLAKE2b-256 64c4cce408b7d6c9caee04b55d00682a8740b73b0819e5878cbcbc191b5c89a9

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.6.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.6.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 272d7fb359ea6fe126c497b169cc5614e70a3e2c0faa24df66296b8d4cae4a72
MD5 6397f65d1c4aa595db2e2b7a522568c6
BLAKE2b-256 9d0ad05ed98781baccf7d6e2043c9bbbcdc9a7416949df99b0358153728ca4bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9a7c3091835e2f202a76c870b7929b7e99abbe217d383e3d62a571912a5c90a
MD5 eaa56794c01d5c65112c08e3808c9d77
BLAKE2b-256 ed89baa0ef366aa2d836147610ee452661b3648d745f7929887b962ffc6e9f53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.6.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d656131888b58eea6dce795417668abbc9553d3c0bb95962e6ef921aa1a3b877
MD5 edab706a1958bb4f768b03d6d60dda64
BLAKE2b-256 5fbaa71be13512e37bd81114fb7852a9e9be1a85895d831a9293a27b86e280db

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