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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

tree_sitter_c_sharp-0.23.0-cp38-abi3-win_amd64.whl (375.2 kB view details)

Uploaded CPython 3.8+ Windows x86-64

tree_sitter_c_sharp-0.23.0-cp38-abi3-musllinux_1_2_x86_64.whl (395.3 kB view details)

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

tree_sitter_c_sharp-0.23.0-cp38-abi3-musllinux_1_2_aarch64.whl (395.5 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.2+ ARM64

tree_sitter_c_sharp-0.23.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (412.9 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

tree_sitter_c_sharp-0.23.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (400.4 kB view details)

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

tree_sitter_c_sharp-0.23.0-cp38-abi3-macosx_11_0_arm64.whl (416.6 kB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

tree_sitter_c_sharp-0.23.0-cp38-abi3-macosx_10_9_x86_64.whl (369.9 kB view details)

Uploaded CPython 3.8+ macOS 10.9+ x86-64

File details

Details for the file tree_sitter_c_sharp-0.23.0-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bbfb1b5679bb0f76912741969c7ab8bb33f2482d5e24a33ce11e3291a1309110
MD5 ae8f894a5d41c5da442c36979d9f4005
BLAKE2b-256 002a157849b6e0e8325fdd862339710bb535a8f174aca4311d9ddacf0ca69af8

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.0-cp38-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.0-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 596eb9ee60c55beed0885700dc085e573f053f3179fe0b4240c62a23c470a869
MD5 98cd9115454e277761f99a16f1ecfc5f
BLAKE2b-256 0d14fc8a881e6738b532a5b6ac01d534f529379c4d701859df002eb04f9b3c26

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.0-cp38-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.0-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 382add46deaea95e4c233c21a8f555f70b4f5c0a28d4a2fa56ea34e25979af64
MD5 6648c4d7e9d3f33543a2d873eea24932
BLAKE2b-256 172f695aba99aa2d565c5bbfa8603fa7608e23bd56885fc058d44f4890f28ab8

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8b10c4670747fcaf5276355c7aec4b8d189b02f3efbf8b9cf81d3814514048fe
MD5 7adb5a228fabe7579657160c3c574d7d
BLAKE2b-256 1bb34098be7360af74d9603d0ce264c4d52ca4ef2f5fcef8daa96910208bec68

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.0-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_c_sharp-0.23.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cbcb8b5cb498a19ff48c03828b0ab08d3778fdbbdee72ce6436b2de270b21d4b
MD5 d61d8011a13d17c5fea906a459c5288c
BLAKE2b-256 56bee20bb812af1ea4c35d901b3a6bf95a6c18cfb8710c5a4d26d250053e615e

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 715a2a70869a8dc845a408a2758a1c7d958fd6d1db3205ee116a1c8c3f1b5b96
MD5 de8d521cce15c41355217d224e190948
BLAKE2b-256 4fac917e31a7f100b438320d425b453def4c663640c0bc0c36abb7eadae371ef

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.0-cp38-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c3db2a24a5cee7800473a12bb15ef38c95131c89ae4c76fd1ebf0339227a1ee2
MD5 5bfc28e2d297285fd9010c67bd92a88c
BLAKE2b-256 a111a1be9a4531e3fc766ba2e0634b7c6ba68388ccbbc85792080c8ff26a9b14

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page