You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

tree-sitter-rsm

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-sitter-rsm

RSM grammar for tree-sitter

0.2.0
pipPyPI
Maintainers
1

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.

Keywords

incremental

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts