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.5.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.5-cp310-abi3-win_arm64.whl (337.3 kB view details)

Uploaded CPython 3.10+Windows ARM64

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

Uploaded CPython 3.10+Windows x86-64

tree_sitter_c_sharp-0.23.5-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.5-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.5-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.5-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.5-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.5-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.5.tar.gz.

File metadata

  • Download URL: tree_sitter_c_sharp-0.23.5.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.5.tar.gz
Algorithm Hash digest
SHA256 2635c7d5ec93e59f2e831b571bed99c4cc68a5d183a0994020aa769e1b990a71
MD5 b1863edbedf582566af7f43bae005e23
BLAKE2b-256 9ffb7e2962bc1901daf264e7ce263b168e0139304a5f8f66c9b2baf20e550f87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.5-cp310-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 2de4ebf95ddc2e92cd3105c8a8e0e7ec646bc82f52bfaf2f3acec0fa2401ec09
MD5 f658475d86f912e9fbe581918e6906d1
BLAKE2b-256 7ffb114ff43fdd256d0befed32f77c1dadee9517867181c70794571f718ed05c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.5-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 41a28cfa3d9ea50f5629e44550a03188c8fbd5079803dfc03554b6fd594b33fa
MD5 fd58de0096549bd31cbadcc2836bca1d
BLAKE2b-256 2be0bd287b092d611df95a9149117fd27b5947ce75527113d6898a4b4e2c8858

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.5-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8636dc70b5a373c35c1036ed5de98e801f2e4d105ae41e2e20b6804c36e3bf33
MD5 4a90e75ba1233332fb960154e334fac1
BLAKE2b-256 de2a6c3e12ef0cf09138717fcc02e1de8b76a3928d1bed65c7e3c2bd3172bcef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.5-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 05a9256415e7f24d4f133133794a9c224c60d19f677a04e2f6a94c25090b6d65
MD5 47befbdc841ea5e62bc264a8f74f4c19
BLAKE2b-256 6ffc10f807ac79f928241c5e0d827fdaf91e97dfba662fc7e07d7bd664140ec1

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.5-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.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3ea38fb095d85d360dc5a0bec2fa605e496228876f798c9e089d5f0e72bcef46
MD5 bf362dbccc2803ceda842390232175c5
BLAKE2b-256 0ac8e0f391e343f5424d0627e3b6886c77baeb1249a3f10986be00b0b64ecdab

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.23.5-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.5-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aa88a780204cd153c4c1ae2d59c654cee1402212fa0d069823d6d34301587438
MD5 3823a4fba8f39594908d0e87b5caad2e
BLAKE2b-256 415aa8855cbb5bbab28adb29c2c7f0e7be5a9f1d21450c13b3c3e613190d9b8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.5-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a75994a11f6fed3f5b8c36ad6a00e5dc43205bd912c43af3a2a54fdf649664eb
MD5 d6dec8292e436ead9b05e2b7e1af58b4
BLAKE2b-256 c813593c8603f834eaf15082b81e079289fc9f062b4c0ab5b9489134084eec06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.23.5-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 61e1981cf21b09ee547b9c4c68e64fb4394325f8fc8d5f6d50d41471eba923ea
MD5 de70c0151ccddddd0bcdd03334e861b8
BLAKE2b-256 ecc486d8d469400a856757a464a6ac01af97d8cdacbb595e62bdb98bf1e9db90

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