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

Uploaded CPython 3.8+Windows ARM64

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

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-0.2.3-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.3-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.3-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.3-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.3-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.3.tar.gz.

File metadata

  • Download URL: tree_sitter_rsm-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 57f5d067602bcd0b5bb6cc78506ca9c83fd61fff5bf700ff5f2054cf9d1fbf7c
MD5 d4922c00c0f75524e96bfa2bc0ea59c7
BLAKE2b-256 211f9a4f870c798638f0f0d5551d860a42c28599a6ba59bd592c1211f74c5a7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.3-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 e5410cba7d323baa7937b9a3e7f1d8acf8f22a80d4f80c4278e921d87e4552dc
MD5 ae91d610058902ee7f2a188f49009af9
BLAKE2b-256 23f9b04458749383f99d42a2e4f7c4221eae1a96d04a18fad93f71fbdf7cdf19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d28503ad244ee9153fbba15d9c87333b1945bb3c301ffa51dcce3551a6f76cb0
MD5 93c6a0b2a40620787fffe776aef86ea4
BLAKE2b-256 8336b1bc7a8f155957f68a8b4e439266110c756bdeeea84026fdec89d8f9f4ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.3-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b7b387a54c264d3a1a3cbf9abf337380024bea40a60c822889eb3d0c44da6cee
MD5 74205198a5c0a835b146b243a4ea32fe
BLAKE2b-256 9faa82f4f887d4e6fd9f0911ec8258d47a27689dabf7d89ee028a0d7c68af812

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 963ce76bbf3b7ffcc099ef0f6d13cb06f7f7a5cefd718d17ed4035135f21106e
MD5 4a9e1a042fb03c4056f1c4f0c8d9dee3
BLAKE2b-256 2e4fca0a5f8ecfe5c9328c19713113ef02c6547f31fc32d2bd171b123594ca4f

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.2.3-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.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef21ecb54b3ff1570d60ba9297cfe101eb555941fd1d4a5bd38fe7755180c0e5
MD5 66ddf5c280fb60b140da7481166da1d1
BLAKE2b-256 2cb63db28eb6e173870ca2fe95a3ff4147b6d4ec8b90fa15a56e11ecd1a8978a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4c4442c43f5bdc3d529395c33d0b74a44f22218b55e2ce96880cdef0f677aa5
MD5 cdb74babccc93efacc9d48ac41dcdf09
BLAKE2b-256 e5677e6abf4d5e4dc2ed674fedc5fb74d6408e461a9f84649c02fc544553751b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.3-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 81edee343268a5ee6d4df4630e1630aa97001eedcf1c72160752c595bedb57d1
MD5 72d5e864fa1f39d4370557ca5684dafa
BLAKE2b-256 b135a66efbb5afd19818d98cdba83e4702968f2fd031330599237b121ca32a41

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