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

Uploaded CPython 3.8+Windows ARM64

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

Uploaded CPython 3.8+Windows x86-64

tree_sitter_rsm-0.2.2-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.2-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.2-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.2-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.2-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.2.tar.gz.

File metadata

  • Download URL: tree_sitter_rsm-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8cdbea6f7b56c2a478d69998161cb0aee4624defbe7def856fc36552d4090744
MD5 69fe460cd163ed28e7f2acd8de174e50
BLAKE2b-256 56731b2c9bc6cfacfc79a563f333afa7e2704512decbb1c96db8c686a9f5320e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.2-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 a11e799f35bc0ebf01eaa0b19015ee7ab08d6c8da79e7cee2f591463e8033d8e
MD5 0762668b347bcd77ead6a01f06a7685a
BLAKE2b-256 a0143dea557a5868e0c69438bfcf0d28e476d30621a8eaf059dd8ef97454c77b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2c08d2c01df8e1b47b59b67c19224342ee8e3e0db343772e205774351af4efc5
MD5 444cf7e1cdb06a1a2432300122d780b3
BLAKE2b-256 a1b76e9ae8b38d9d5a46efcdaf6bc622523897535cf09621c673d7bb745e8645

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.2-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9cc14c807aeeae6a6cc1320dd4611dd5ed999b19b6610c93450e36a717f37a02
MD5 a561e15ff5d819942425b7428f8c01f4
BLAKE2b-256 388e5f7c4d2988c9ed689c5ea78878934dc8a2996c8b0875cbfc02fcd58308e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6e0f48e7267d22e2fdaa6c71b35ddc798e99a0ab9965428afc451d3c5a366754
MD5 4be24b85fa2a163d4011ec3f262b91a7
BLAKE2b-256 4e437c558d0433d9a657b3e3922913bc5b2f5bb8e92a5f1db02c213d655c06c3

See more details on using hashes here.

File details

Details for the file tree_sitter_rsm-0.2.2-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.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 338e8b51c450d961cb1e0ee01153a39cb99ea3501ef2ea5c9828bc89b210da19
MD5 f9f9537107508782e845b0dc42934419
BLAKE2b-256 915c25b83df53baadf4ae954b4e32dfaae7e20c425fe81f538540dab98d22d66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b4f0a7ac625802d183efcbe6a02dd331bb0cb0dc57456705d9cdc20ea49a959
MD5 5cf0cabba9902cbd36ebc6ad14c2d851
BLAKE2b-256 2b03d79c66f0f4e02e40ba623a0a6e1e1733c1a81f7cf4362867d4bd200b395c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_rsm-0.2.2-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dd360d22b05a932b0aeeab5b76905de1ac09ce58a759051e49177f2f47a66ab1
MD5 02b383b84e86c66cecae22e3cb551b4e
BLAKE2b-256 1bfb5fa0edbb2628b1a369e1925750e723489fcda525fcb0c679349bc60a20af

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