tree-sitter-enforce
Enforce grammar for tree-sitter.
This grammar intends to be a close approximation of the Enforce script "specification".
Getting started
neovim
Neovim doesn't recognize the Enforce filetype, and since it uses .c file
extension, you need to add a custom language filetype; add the following
somewhere in your init.lua
vim.filetype.add({
pattern = {
[".*/scripts/.*/.*%.c"] = "enforce",
},
})
The pattern will match all .c files in a scripts/some_module/ directory.
You may have to modify the pattern to suit your needs.
To install the parser, you can use
nvim-treesitter plugin
and run :TSInstall enforce
VSCode
You can use tree-sitter-vscode plugin.
You'll likely need tree-sitter-enforce.wasm, which you can find in the
releases
or you can clone this repository and build it with tree-sitter
Metadata
Release files for tree-sitter-enforce 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tree_sitter_enforce-0.4.0.tar.gz | 75.3 kB | Without provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| tree_sitter_enforce-0.4.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| tree_sitter_enforce-0.4.0-cp310-abi3-win32.whl | CPython 3.10 | abi3 | Windows x86-32 | Details |
| tree_sitter_enforce-0.4.0-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 | Details |
| tree_sitter_enforce-0.4.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-32, Linux glibc 2.5+ x86-32 | Details |
| tree_sitter_enforce-0.4.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 305.2 kB
Release files / tree_sitter_enforce-0.4.0.tar.gz
| Download URL | tree_sitter_enforce-0.4.0.tar.gz |
|---|---|
| Size | 75.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac400b64fcda86c5cb4c4051b6dcf43c70b114edd9ac8ff632dac531942afeec
|
|
BLAKE2b-256 checksum How to use checksums |
243e75048a72d9cb04affe6de80ea62b11dab28e8ce61fda645fd05f249806de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / tree_sitter_enforce-0.4.0-cp310-abi3-win_amd64.whl
| Download URL | tree_sitter_enforce-0.4.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 39.8 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
208b2133b101546929bb8b720444ff333ffaae21b2321f6bf57f4c0376da737c
|
|
BLAKE2b-256 checksum How to use checksums |
09c79ed33b9dc3a2a503af073f6ffe9cd3d941f754da4ac8a4e19d95a6798314
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / tree_sitter_enforce-0.4.0-cp310-abi3-win32.whl
| Download URL | tree_sitter_enforce-0.4.0-cp310-abi3-win32.whl |
|---|---|
| Size | 39.5 kB |
| Tags | CPython 3.10 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
5eb272d863ff0d92c87680828757a14452cc26f8c6184c321941eeae5a9fe430
|
|
BLAKE2b-256 checksum How to use checksums |
65f0c179704f363990c7b04f432e3270c5bb5c249393638d697080307b2c73dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / tree_sitter_enforce-0.4.0-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | tree_sitter_enforce-0.4.0-cp310-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 55.0 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2badfcbf10eb62a6a7561b60c40f6572b07308cd54f121fb29f049c254fb0dbd
|
|
BLAKE2b-256 checksum How to use checksums |
46c4b708d41187fc13534bbc8ace9324fe53eb8add1267b216360c8d3748a1b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / tree_sitter_enforce-0.4.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
| Download URL | tree_sitter_enforce-0.4.0-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl |
|---|---|
| Size | 56.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-32 Linux glibc 2.5+ x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
b4beaedb736945a52ebd627f33dc00f43ec401604c3d8c0fca4558ae3273fa42
|
|
BLAKE2b-256 checksum How to use checksums |
995c90958099d2ea6e34624088089ded4b13275863d1485e31a05a8e670825e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Release files / tree_sitter_enforce-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | tree_sitter_enforce-0.4.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 39.2 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4d46b8afd96bd237a381598bd0d0f0b2be4425e4f39b36c1f65a03404dda855b
|
|
BLAKE2b-256 checksum How to use checksums |
c8211af7e772bfbb77e15a9b7e7ebe7d76cf8eb5d1dac4b3c3fea95c57952069
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Security for tree-sitter-enforce 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.