Skip to main content

Parser for Strudel, a Tidal Cycles base live coding tool

Project description

tree-sitter-strdl

Tree-sitter parser for Strudel, a Tidal Cycles based live coding tool.


Usage

To install the parser in Neovim:

  • Create a file strudel-integration.lua in your ~/.config/nvim/lua/ directory:
---@class ParserConfig
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.strudel = {
  install_info = {
    -- url = "https://github.com/pedrozappa/tree-sitter-strdl", -- local path or git repo
    url = "~/tree-sitter-strdl/", -- local path to this repo
    files = { "src/parser.c" }, -- note that some parsers also require src/scanner.c or src/scanner.cc
    -- optional entries:
    branch = "main", -- default branch in case of git repo if different from master
    generate_requires_npm = false, -- if stand-alone parser without npm dependencies
    requires_generate_from_grammar = false, -- if folder contains pre-generated src/parser.c
  },
  filetype = "strdl", -- if filetype does not match the parser name
}

vim.api.nvim_create_autocmd("BufRead", {
  pattern = { "*.strdl", "*.strudel" },
  callback = function()
    vim.bo.filetype = "strdl"
  end,
})
  • On your ~/.config/nvim/init.lua:
require("strudel-integration")

Run the following to install the parsers schemas:

npm run local_install

Docs

Learning Resources

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_strudel-1.1.8.tar.gz (34.0 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_strudel-1.1.8-cp310-abi3-win_arm64.whl (27.1 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_strudel-1.1.8-cp310-abi3-win_amd64.whl (28.1 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_strudel-1.1.8-cp310-abi3-musllinux_1_2_x86_64.whl (34.8 kB view details)

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

tree_sitter_strudel-1.1.8-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (36.0 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

tree_sitter_strudel-1.1.8-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (35.9 kB view details)

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

tree_sitter_strudel-1.1.8-cp310-abi3-macosx_11_0_arm64.whl (26.1 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_strudel-1.1.8-cp310-abi3-macosx_10_9_x86_64.whl (25.5 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_strudel-1.1.8.tar.gz.

File metadata

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

File hashes

Hashes for tree_sitter_strudel-1.1.8.tar.gz
Algorithm Hash digest
SHA256 a568affc7155ccccc545e351469dc707c5fe85352df15977499bb00ca7feab7e
MD5 45271a5104cf362bbbcb650518b289e7
BLAKE2b-256 5951f29b8eeaa55fad5ca7f26c27165f405063af790fc202a84b0b0d7cb178ce

See more details on using hashes here.

File details

Details for the file tree_sitter_strudel-1.1.8-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_strudel-1.1.8-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 5c6a8fa38e89cc00f7095f4874d35004572bb4e2d1c2e521bcd0a12ddb4d6746
MD5 e98fea30c6e20e3eaf1be0961accebc2
BLAKE2b-256 b45deaa0630f63900fc1e826399eb4977170ea425a4f1c8b76467226cdd85a0e

See more details on using hashes here.

File details

Details for the file tree_sitter_strudel-1.1.8-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_strudel-1.1.8-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 cb0d4ac7dbab796c9cefc043fad2ce6f1a0fbb8de6fe23b8cb1fdbfb3cd79fed
MD5 fe5a7ff5d97804038e2cfc611da9b55d
BLAKE2b-256 b08b00d37f67924dcc5b1cc41b36c9f60f58821fe9a3a69573059b7f8f6e5ea1

See more details on using hashes here.

File details

Details for the file tree_sitter_strudel-1.1.8-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_strudel-1.1.8-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9be150a92c6208de0851b7cb2ba81bc4e208085a323aae907de23a4594dce08e
MD5 6ec53d22bcb53d0ff50e25f844805ac5
BLAKE2b-256 0393cbdae426d9916f20d93836793fdb28db721588ee95d4c20d8f8e2311b307

See more details on using hashes here.

File details

Details for the file tree_sitter_strudel-1.1.8-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_strudel-1.1.8-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 03278b89923b58d8bfc0a982bd5673f1ad316ce486798388b81a26f55aeff1b8
MD5 80d9e820d21d06c32bca586fbf6ef547
BLAKE2b-256 3c9022a4de2d1eb201875acb415af98f2c400ba3222a0c331771598742560ab2

See more details on using hashes here.

File details

Details for the file tree_sitter_strudel-1.1.8-cp310-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_strudel-1.1.8-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1c3b8af51cf4ce31fa157942e8e4845b40de434bb4ed1d4239afee849a618bd3
MD5 763a8eb85c9336f52ec4c37041fec3e1
BLAKE2b-256 c18fd122c69369a026b4d67716db6897046f4636743d2e4f8c65a48d4cb33bb4

See more details on using hashes here.

File details

Details for the file tree_sitter_strudel-1.1.8-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_strudel-1.1.8-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee702051b6c7267692d4fceccaf03986638947a469990be9c2aa98a49fed04e3
MD5 1d01d220dcbecce14c3578e4310ef6ae
BLAKE2b-256 76668611ca692ff47878be15a36190faf0020a1a023c1dd762eb2b4dae65b866

See more details on using hashes here.

File details

Details for the file tree_sitter_strudel-1.1.8-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_strudel-1.1.8-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1c82fd2b4a737cd4692ae1acfe8961231d6da4d681b04ff04d0e6c28ef098619
MD5 c0a8911194e2603a7d81994b368c7460
BLAKE2b-256 b6b53dca242ad5b0dfe3fa07a3ffb0d00167fb211f348d377d0b34baa0866326

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