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.8.0.tar.gz (61.8 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.8.0-cp38-abi3-win_arm64.whl (33.4 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_rsm-0.8.0-cp38-abi3-win_amd64.whl (34.6 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-0.8.0-cp38-abi3-musllinux_1_2_x86_64.whl (49.3 kB view details)

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

tree_sitter_rsm-0.8.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (59.8 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-0.8.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (52.8 kB view details)

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

tree_sitter_rsm-0.8.0-cp38-abi3-macosx_11_0_arm64.whl (33.4 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tree_sitter_rsm-0.8.0-cp38-abi3-macosx_10_9_x86_64.whl (31.4 kB view details)

Uploaded CPython 3.8+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_rsm-0.8.0.tar.gz
  • Upload date:
  • Size: 61.8 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.8.0.tar.gz
Algorithm Hash digest
SHA256 f48f7e623e8deb1ce6826fda70111ec3b186d5d97a5f4e350a8c78aae90be72c
MD5 744f15f30e3056b4bb4a85d54aee5c2d
BLAKE2b-256 0197cb0cd84fd66399a32585aa672145d147accbd98b0b96968e0ee396caf25c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.8.0-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 115ad70cb17b5f1d36898e6070ca90c8fda9d80a85c7da524083030af076c32f
MD5 200484cdb61ee236d7c49948d6da8a61
BLAKE2b-256 9b5bee6348f82c933633818169c232ed55fdbe65b1962f61c0035bbb7fc5f83b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.8.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 780557a6cdf44b417b9c465a331a97285d40cef2da4b4dfab5f586ae00720af2
MD5 0d280ec4aea869de982d9f0d32d96ab1
BLAKE2b-256 11076e98e8fe68dbe125975bcd6782a0cf6e2935281adb4bad2e5f75b75589f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.8.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 86add12dd2234ce593f51d6c62239847aee42c2c3b55dbbd99b268c68f60cb62
MD5 4f6e956cc9cbf480e231b956dd3e86fa
BLAKE2b-256 dda73fffe5623df3b8218c30db3ee025de115d0645832e8aa8ba00d240ec1c22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.8.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bf62b76437c08fad8728eb442d6be07ddc94d811773a51deff202f86a9862d39
MD5 94ea29f2caa7697be98a5bf73ceab99f
BLAKE2b-256 ad0f37492d1976980b050cb710839ef3968e5b209fb7328cb86754f3850fc7db

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.8.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.8.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2479d91f63fb266b795f78ad786746bbddc61731e01e2b094edad97fb13b89f7
MD5 3803cb63b68bd0536eb07b8feb87b090
BLAKE2b-256 2d77f35fdfc220a11ca3399db708d81e343695929a3fc2ad25cdc3011fa524ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.8.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b609059c249b77093bc7b22b372471247502b2e389b8c9a19b69ce5194b59054
MD5 e485e5f80fa32d35890798bca1cac30b
BLAKE2b-256 3650fc0016d9425b45a39d7a3e5ccfb8cf59ce4a80cd68f6955e7e6e97ecb7b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.8.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e8ce8fe3598de7f7f4f217ad40f1d2d7412acac3e10b5f2f61ed1851ef3c9c7a
MD5 72fb560dcd1dff7f523cfbde3682c6fc
BLAKE2b-256 a85eaf464814deec0cbbc5d79c73eba4d24856ee2f36c00b060d040746d9be4e

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