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.4.0.tar.gz (65.2 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.4.0-cp313-cp313-win_arm64.whl (38.5 kB view details)

Uploaded CPython 3.13Windows ARM64

tree_sitter_rsm-1.4.0-cp313-cp313-win_amd64.whl (38.6 kB view details)

Uploaded CPython 3.13Windows x86-64

tree_sitter_rsm-1.4.0-cp313-cp313-musllinux_1_2_x86_64.whl (54.9 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

tree_sitter_rsm-1.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (66.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-1.4.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (58.5 kB view details)

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

tree_sitter_rsm-1.4.0-cp313-cp313-macosx_11_0_arm64.whl (38.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

tree_sitter_rsm-1.4.0-cp313-cp313-macosx_10_13_x86_64.whl (36.1 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

tree_sitter_rsm-1.4.0-cp39-cp39-win_arm64.whl (38.5 kB view details)

Uploaded CPython 3.9Windows ARM64

tree_sitter_rsm-1.4.0-cp39-cp39-win_amd64.whl (38.5 kB view details)

Uploaded CPython 3.9Windows x86-64

tree_sitter_rsm-1.4.0-cp39-cp39-musllinux_1_2_x86_64.whl (54.6 kB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

tree_sitter_rsm-1.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (66.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

tree_sitter_rsm-1.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (58.2 kB view details)

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

tree_sitter_rsm-1.4.0-cp39-cp39-macosx_11_0_arm64.whl (38.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

tree_sitter_rsm-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl (36.1 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for tree_sitter_rsm-1.4.0.tar.gz
Algorithm Hash digest
SHA256 6dd0fae4dfcf0a71387880038c687eb8989b0b6e2a438e5691890af8d5a71b3f
MD5 278ea1c250e0ea4eb48a2b64c12429e7
BLAKE2b-256 0bf17e74a2693151d0cdce0e096681d82d8236872d6fe977a1545b96f1c1f8d7

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp313-cp313-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp313-cp313-win_arm64.whl
Algorithm Hash digest
SHA256 92223d12ca745555bc27cbaa74c2f895efae2995e360a59d2203a830fd67efec
MD5 401793d87f8ad8aa0b05af7980f1b65f
BLAKE2b-256 2021d77a7f09c30d8fe5ec87a26556b5b9daec949fc22bd9bacc85b867f7d804

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9f31bfad450df98e5f4d231e3ecf6aab7d7ac312ee8d0bef1e95ddec50cd6e39
MD5 168c0704aec3426153236417109af383
BLAKE2b-256 b497f109fc6225ccfce784220ba4451e77987553c17d6e08dcad37845c09f691

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bf6e7de99ac6e1aef58f3f87d9d4e87440613902796caa95af4110dab68675a5
MD5 f79c693ec988daff7d1dbb012f773145
BLAKE2b-256 16a7776dda3512c119b7a190b7389ecdc0be8a9e86680469c7ac185da09426a8

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c6f6d3a6d3b00a030263084db005bf7086e2ccccdbc80b88c8f78871c38bc86e
MD5 ca7190ba8630218e4787505f440b3dde
BLAKE2b-256 8295f46ed92540eba5f9b9ae79340dce850131e078af9627e66d60a84d374e8d

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp313-cp313-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.4.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 108e3cdb69832b34caed04b653526d8143264114087a115e580601d2e0e3be41
MD5 b9096cdc0ccef69e8fe0aac87c756ef5
BLAKE2b-256 6f8f57f8ba6833d321c81d11ed54e78062bec6b7f99c6eefdfb58005ef66dd93

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75049232d500ec9e934468200fb141b62348c7b81eb089be5865d934ed310682
MD5 1406751746d7c8ea9a4b2c4bee07aa78
BLAKE2b-256 f0d2901f4cc6e3bae21a8830d3fdf0a33906214e6863f4e31a0fdf10a64b08d1

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2cb216b2cf23ee45118824b477f36d5801e91bb1a2c684e5927c3a4386b778ce
MD5 4e176494897a22905f76cf6e1b27dd0b
BLAKE2b-256 932c9fba6c5425e605000d580af55f0cb1ab2e7567b377ab49a06dd974ee9d90

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp39-cp39-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp39-cp39-win_arm64.whl
Algorithm Hash digest
SHA256 90a0ee668b128e4f71ac13e10263a9b4f41d095d452e50f836ca357e8daf2081
MD5 2f7aee19cff1a2084664ceca24a2bcf6
BLAKE2b-256 7560932b427669c3230f618fa2ad0a024ef3dbf29b2b368cbca9b1f693241c84

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3885a735cf3fa89a4366f02fbd07955f145e85ae501c14d47a6bb9f114ced472
MD5 3dce932285819d2e393c9627e436090c
BLAKE2b-256 50c207097c64e1e273b0932891ce0ad736a926903019ef056337832e9d9549f7

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e5e5a4aa34e005cf640f395a4abf3f2f44a2e42ccaca1d5cff121b06a46ffe80
MD5 7b1161d6aef3d1f6138419a2f1b512d1
BLAKE2b-256 80917a94c63cad60371f38a51762febe6fc4d066c1dc81e88501a785661c5a5d

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 678d3438a930738cf00f9def0e35630f0864a29771b44c9620cb64489235f932
MD5 96ddb8be7261a6483daf9ac45828d8f6
BLAKE2b-256 b5f19c3e448e5e5c7f2725729f047e1e682897ffd5007204fb9aadfc20ff55c7

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp39-cp39-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.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bb35c9e7bc122e2dfb30403db065bde32993dcfb8648af6cbc69b0aecae40cf7
MD5 0de2d17dc3b255c694241c2e0aabdd81
BLAKE2b-256 5cb996165e49e3f78b92d7c24ed8f9694edafeda4e426106c137826d5a197840

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fbdab2b9aa19c9c41902e139ee5f9b18d938b0f7479f221298f2bedb897ca50
MD5 d4ea9b4e543797fdd4513210a73b645e
BLAKE2b-256 c88197d811e2a67008d2ce8a3f0d0f9b6b732941382604474f561b463f8f3f28

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_rsm-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d276ebe68c953e7891e76ebe5f5ccc0181cbf6efd821ffb937dcae06230e3f9c
MD5 9e292992813e8ef0e096df410b574a3f
BLAKE2b-256 9dbdcdd5d3bb7a1a14673eb128f689aee36d47ea0e9e9ac33e9392833ff69f22

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