Skip to main content

C# grammar for tree-sitter

Project description

tree-sitter-c-sharp

CI discord matrix crates npm pypi

C# grammar for tree-sitter based upon the Roslyn grammar with changes in order to:

  • Deal with differences between the parsing technologies
  • Work around some bugs in that grammar
  • Handle #if, #else, #elif, #endif blocks
  • Support syntax highlighting/parsing of fragments
  • Simplify the output tree
  • Reduce parser state count and complexity
  • Be in-line with tree-sitter's convention where applicable

Status

Comprehensive supports C# 1 through 13.0 with the following exception:

  • async, var and await cannot be used as identifiers everywhere they are valid

References

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_c_sharp-0.23.4.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tree_sitter_c_sharp-0.23.4-cp310-abi3-win_arm64.whl (337.3 kB view details)

Uploaded CPython 3.10+Windows ARM64

tree_sitter_c_sharp-0.23.4-cp310-abi3-win_amd64.whl (338.8 kB view details)

Uploaded CPython 3.10+Windows x86-64

tree_sitter_c_sharp-0.23.4-cp310-abi3-musllinux_1_2_x86_64.whl (357.5 kB view details)

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

tree_sitter_c_sharp-0.23.4-cp310-abi3-musllinux_1_2_aarch64.whl (358.1 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

tree_sitter_c_sharp-0.23.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (359.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

tree_sitter_c_sharp-0.23.4-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (358.3 kB view details)

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

tree_sitter_c_sharp-0.23.4-cp310-abi3-macosx_11_0_arm64.whl (376.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

tree_sitter_c_sharp-0.23.4-cp310-abi3-macosx_10_9_x86_64.whl (333.7 kB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

Details for the file tree_sitter_c_sharp-0.23.4.tar.gz.

File metadata

  • Download URL: tree_sitter_c_sharp-0.23.4.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tree_sitter_c_sharp-0.23.4.tar.gz
Algorithm Hash digest
SHA256 03186bfe0fd1d043c8c72c5851160960feb80185589e4b2be3bfa36873dbbb6e
MD5 821dc77912e16f9633a7bc71f0409a98
BLAKE2b-256 58baffaec0704b5eaf78a1ae2f4668f3db033c9148148d9ef2561aa1af897168

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.4-cp310-abi3-win_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.4-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 cb8a2c7ea5071814ec819efdb20b1f4051750b0ef52ad046df6f8c6248888de9
MD5 aaf082a28a6588e0fa6f2419bd4cbef3
BLAKE2b-256 51a01b4eee4281aaa2d05f8ae6707b78477eccbe0f96fd3a28bc3bdf7fe43d0c

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.4-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d668e7fee6bae100787cc80a67a750e4e6b1f2792bbcbe3e10606a4077541fc1
MD5 2df101909dd752a9945a0f1f55d0a8cd
BLAKE2b-256 dd134b859186437c0ab7e5bfe3381fb538829cf97a968dc9ece96ffbfd0f4263

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.4-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.4-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7b6c513ce53808199aab0fab63b7358b49eb3ac18abcd03594f00d086ca649cd
MD5 aa9dd5779373bc3bde6e2b92327c1900
BLAKE2b-256 d9dbfd415381d447389b7fd441d58cafc6d0ec123a88f0b6b9cbdf973518a735

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.4-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.4-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e8baed59663b3ce519744bd33417e5bfe600094e4a7d6051c050a8058a4e3c72
MD5 c16a0be09723ac6019afa012061795b1
BLAKE2b-256 388471bc789a87b22e0db88cfcba5ea0cfa51a886954c12c5a340c81be21df59

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.4-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f11f1db94c1a13bd2ff2826d7cf7ffcda868e23e657b97053c1b5c98066608ad
MD5 13b663c2ec3dc8ecda0cf01a8767abb8
BLAKE2b-256 ef3aadeedf5ac2b3d698cffbc4d773d2a85673c0c607e94d3ee8202df83f9164

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.4-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.4-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10ac32a7ce434f3a6e8b9f427fd4581e27b1f247c24f841b78fbc5a5648ceda8
MD5 0617c66834edc907bfd25be1847b1036
BLAKE2b-256 e83e86979554a10b5230e272ce8ea6ff7596eab54dc85b0c754cdf8cc6ac1594

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.4-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a95c95835032832f1ff1ff95f872732f2e5a836f61f6b8b7b5c2f0d6558c086
MD5 48fc4de36901af218619424df2840285
BLAKE2b-256 8b3066eb26fab3d354bc4ad7f0c879d8d055d4649bb3bd7e332ac30b895b374d

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.4-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.4-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8bc19713c6d5e77bc3d1fea029c721d9e40b86718efd6ea47190c558e8a04419
MD5 e6cae8e82dfc085137317f1d0209292e
BLAKE2b-256 fa760283375fbd96283a51897000890cd70fd3ba8a4af9456f90243d6d6bd2d7

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