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.0.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-0.2.0-cp38-abi3-win_arm64.whl (32.2 kB view details)

Uploaded CPython 3.8+Windows ARM64

tree_sitter_rsm-0.2.0-cp38-abi3-win_amd64.whl (33.8 kB view details)

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-0.2.0-cp38-abi3-musllinux_1_2_x86_64.whl (45.3 kB view details)

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

tree_sitter_rsm-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (55.4 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-0.2.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (48.2 kB view details)

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

tree_sitter_rsm-0.2.0-cp38-abi3-macosx_11_0_arm64.whl (32.7 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

tree_sitter_rsm-0.2.0-cp38-abi3-macosx_10_9_x86_64.whl (30.9 kB view details)

Uploaded CPython 3.8+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: tree_sitter_rsm-0.2.0.tar.gz
  • Upload date:
  • Size: 62.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tree_sitter_rsm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0ac5151c683ac87c4cc08332e666a7d316844cb1c52c6fdc978a39305dc8aaef
MD5 c51aef7cad6378420051926cd1711991
BLAKE2b-256 b9df33aef4636d90757bde2ba7b96ccd104b89ab0ee744b2656606e07664d6f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.0-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 c6143c4a080f325f72f34c8174f07b40b34bc075c090f4ad0914687fa09ae3b2
MD5 fa9b79f6443d460167886471b3625a78
BLAKE2b-256 43930ba5753c969cbc0e269e3487b5db44ea08152d5fedbdca9f1b63d1fd6871

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 58e6b2db6d2cd746d2477237c312b39f35ef7f33e123b1a3751f028e7f8804ee
MD5 c0a767725a5d9ec793ba7d04abc07d54
BLAKE2b-256 45a439aabe33bed2a6cf4cf93cae378453e65c6620181625c79f8ecdbcccf3c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b5460a195e8a6af6d8fb1a7ab748f6bdc6e7b0862c5149f441504c099cead70e
MD5 6576618c0e01f7e8e3fa8068855a5a21
BLAKE2b-256 85b6a1561022a2e0377a21e5f0996c04de51ff68728ebd0f4940ab0d0741ee47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bdd3c3287e18a2fa5a6e4a7e031ea9a3714ec16251722a0349b574bc227641a2
MD5 eb00a4e5d2658e39f7cbf0a8dbc90179
BLAKE2b-256 6507e12ac80956700a99c1a33c080f2ef834fa42572439fa009a5e651377b09b

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.2.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.2.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b0da85c32f473db3e9d7a91b389bcf094d67d0247501a7126106f996d1ecd33
MD5 df5dab8d22896358487723e6543e539f
BLAKE2b-256 a7279582d3a99c73842b923a1bac6ade270c493fe6083877c25fa4e68eae1ef3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c395f8e592e936ab670599f1740c4dc4640e1556d7c7ff3cfe110c0a2ad6f29
MD5 5299f091bdf4c462e32e97a2cf2fef54
BLAKE2b-256 e8d870be851d70eb13767bbf37c838df887d56f39ea6379c922936f2ef307572

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a84d9c30c639d14e00b5cb6d1fd2a59610e01855d0163738fe0b6cabe48b1c2a
MD5 66f963f0b2351df42f9b295e7044668f
BLAKE2b-256 363a2fdeac32485dd2f492614f7eca865456785b5f8dec2b4dbfcd23902cb1b5

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