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

Uploaded CPython 3.8+Windows ARM64

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

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-1.0.1-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.1-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.1-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.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: tree_sitter_rsm-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a22f68cdf0fa2505054acdb2dafa8cfc532cb9b8d6fb8f9d56b025eba4b66b6d
MD5 a8cf4819bcef9c3549d5004876c866f1
BLAKE2b-256 05464df382e31f2e096c7551e2afca33a563ce84c05f80109325947124ad8509

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.1-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 244e6e92bfa7277b632a2d4844f9c70e9c5dbeb6613efb032c45080f111e636e
MD5 ad47810ec1900388e061c7971f219d4c
BLAKE2b-256 75bd2f92b2fb715c052c5c941fcb1e80fd569947d1bd427f3579a26e42dbd615

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 35bf193da1ed454f6e4276f65a4793ef28bc07b89e6e24f52ac575efc646b936
MD5 60f7772356477a7741a10154042f1c16
BLAKE2b-256 05abbe129a6fe216531f7531d531ebcd947ca0efb2d427a847326eacf7d3e7e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.1-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 86c7bf95126eed2be41f0572349771e60855462a8893887d3b72380034d2aedf
MD5 9120b43d01cc204b826c2368da695e0e
BLAKE2b-256 b348bae1ad0d3740856cc13c53ae2cbbc3c0a89e21d954eb7ab9e1c085da4808

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 33cb33c012e8ec90503a411ff95b09c91db00c6d6ee3a68d057ae61148dcce3f
MD5 79e0ff7e3318c69c53b00fad9fa62550
BLAKE2b-256 9ceca4dade9d511228e933cc11884aced64dab43486e66bd80bd9596880df2d7

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.0.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-1.0.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa467b53e035e0fbdd0b50823c9b141aab797f46b4934cf2f8ce057dc8413906
MD5 d50ca1e1ed97338f8c08e919998181f2
BLAKE2b-256 403b7177940def35ee830955d986cbf7f9f3d49f89f1421b8e2a4991b545eb15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b8bb54489893fa491c9a43f54aab1917acf289567254fd06274533173ba633d
MD5 5db126cb1184ed1049a9ad8a7074029a
BLAKE2b-256 146f1e72ce7440d1e5425a075ed01862adfb92a77110d419772012aceee02969

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-1.0.1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2a9fadc95391cfee162b433c348561f44abdc5a11a4ec8b2aac5a85d1f909ad5
MD5 6283804c9431f99e996076cb5ea630ca
BLAKE2b-256 e6a7963266c406f0d8d7a29d69b4211c5d7b0c5c5824072e479e265234621e1a

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