tree-sitter-c-sharp
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,#endifblocks - 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,varandawaitcannot be used as identifiers everywhere they are valid
References
- Official C# 8 Draft Language Spec provides chapters that formally define the language grammar.
- Roslyn C# language grammar export
- SharpLab (web-based syntax tree playground based on Roslyn)
Metadata
Release files for tree-sitter-c-sharp 0.23.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tree_sitter_c_sharp-0.23.5.tar.gz | 1.1 MB | Details |
Built distributions (wheels)
Total release size: 4.0 MB
Release files / tree_sitter_c_sharp-0.23.5.tar.gz
| Download URL | tree_sitter_c_sharp-0.23.5.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2635c7d5ec93e59f2e831b571bed99c4cc68a5d183a0994020aa769e1b990a71
|
|
BLAKE2b-256 checksum How to use checksums |
9ffb7e2962bc1901daf264e7ce263b168e0139304a5f8f66c9b2baf20e550f87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / tree_sitter_c_sharp-0.23.5-cp310-abi3-win_arm64.whl
| Download URL | tree_sitter_c_sharp-0.23.5-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 337.3 kB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2de4ebf95ddc2e92cd3105c8a8e0e7ec646bc82f52bfaf2f3acec0fa2401ec09
|
|
BLAKE2b-256 checksum How to use checksums |
7ffb114ff43fdd256d0befed32f77c1dadee9517867181c70794571f718ed05c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / tree_sitter_c_sharp-0.23.5-cp310-abi3-win_amd64.whl
| Download URL | tree_sitter_c_sharp-0.23.5-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 338.8 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
41a28cfa3d9ea50f5629e44550a03188c8fbd5079803dfc03554b6fd594b33fa
|
|
BLAKE2b-256 checksum How to use checksums |
2be0bd287b092d611df95a9149117fd27b5947ce75527113d6898a4b4e2c8858
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / tree_sitter_c_sharp-0.23.5-cp310-abi3-musllinux_1_2_x86_64.whl
| Download URL | tree_sitter_c_sharp-0.23.5-cp310-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 357.5 kB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
8636dc70b5a373c35c1036ed5de98e801f2e4d105ae41e2e20b6804c36e3bf33
|
|
BLAKE2b-256 checksum How to use checksums |
de2a6c3e12ef0cf09138717fcc02e1de8b76a3928d1bed65c7e3c2bd3172bcef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / tree_sitter_c_sharp-0.23.5-cp310-abi3-musllinux_1_2_aarch64.whl
| Download URL | tree_sitter_c_sharp-0.23.5-cp310-abi3-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 358.1 kB |
| Tags | CPython 3.10 Linux musl 1.2+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
05a9256415e7f24d4f133133794a9c224c60d19f677a04e2f6a94c25090b6d65
|
|
BLAKE2b-256 checksum How to use checksums |
6ffc10f807ac79f928241c5e0d827fdaf91e97dfba662fc7e07d7bd664140ec1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / tree_sitter_c_sharp-0.23.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
| Download URL | tree_sitter_c_sharp-0.23.5-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 359.4 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
3ea38fb095d85d360dc5a0bec2fa605e496228876f798c9e089d5f0e72bcef46
|
|
BLAKE2b-256 checksum How to use checksums |
0ac8e0f391e343f5424d0627e3b6886c77baeb1249a3f10986be00b0b64ecdab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / tree_sitter_c_sharp-0.23.5-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | tree_sitter_c_sharp-0.23.5-cp310-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 358.3 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
aa88a780204cd153c4c1ae2d59c654cee1402212fa0d069823d6d34301587438
|
|
BLAKE2b-256 checksum How to use checksums |
415aa8855cbb5bbab28adb29c2c7f0e7be5a9f1d21450c13b3c3e613190d9b8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / tree_sitter_c_sharp-0.23.5-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | tree_sitter_c_sharp-0.23.5-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 376.3 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a75994a11f6fed3f5b8c36ad6a00e5dc43205bd912c43af3a2a54fdf649664eb
|
|
BLAKE2b-256 checksum How to use checksums |
c813593c8603f834eaf15082b81e079289fc9f062b4c0ab5b9489134084eec06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / tree_sitter_c_sharp-0.23.5-cp310-abi3-macosx_10_9_x86_64.whl
| Download URL | tree_sitter_c_sharp-0.23.5-cp310-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 333.7 kB |
| Tags | CPython 3.10 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
61e1981cf21b09ee547b9c4c68e64fb4394325f8fc8d5f6d50d41471eba923ea
|
|
BLAKE2b-256 checksum How to use checksums |
ecc486d8d469400a856757a464a6ac01af97d8cdacbb595e62bdb98bf1e9db90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|