C# grammar for tree-sitter
Project description
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
,#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
andawait
cannot be used as identifiers everywhere they are valid
References
- Official C# 6 Language Spec provides chapters that formally define the language grammar.
- Roslyn C# language grammar export
- SharpLab (web-based syntax tree playground based on Roslyn)
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
Built Distributions
Close
Hashes for tree-sitter-c-sharp-0.21.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5afcc6bedd5b95065955f86858ecf623ac2d5f94e51c7b4fd5e80ceb2f3e375a |
|
MD5 | 4d859982284d2aa85a3cf8bde3e9de03 |
|
BLAKE2b-256 | fb75f2a186374f308170ce26de15c0c1d27970041c7df8f8b5f5b2b4b1a2614a |
Close
Hashes for tree_sitter_c_sharp-0.21.3-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7cde252d28ddde0ec6e0afdb0acb655cfe9884fc9fbcde3a16160a68b8ad08d |
|
MD5 | f882751874b4c7d3cfb23a46558fc017 |
|
BLAKE2b-256 | 927f439723485d5b398875b4fc402a8a5977201baa1c65c5bf30967295ada965 |
Close
Hashes for tree_sitter_c_sharp-0.21.3-cp38-abi3-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b11024c4ac2123a46972e51d22e7960f80dc65f53d3b6bad897f20db8f1d37e0 |
|
MD5 | 9a900db2e6cd05753a0e11fadc5974f9 |
|
BLAKE2b-256 | af916e8cbf298c1d9f2acb6883cbac6d2a82bce99d91581f4074f0ddb6afeb46 |
Close
Hashes for tree_sitter_c_sharp-0.21.3-cp38-abi3-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40a6f775b71ff4f8d9d74c6d8ce66542e312ceff42ab7195a5c8dbdcc6196837 |
|
MD5 | 70019e0a26d69350cd0444100d94eef0 |
|
BLAKE2b-256 | 8ce1c745cc68021afc84e1217a635e0a9508c020f1d1a521d2719c580e4ffc61 |
Close
Hashes for tree_sitter_c_sharp-0.21.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb9c8d911a10f3d48534f798880d7756e6b82a5e1d20fdafaaa2acb91cb413a |
|
MD5 | 0918ada1dd1c894ed3ad65ae9b2b82fd |
|
BLAKE2b-256 | 6dc99536e982486a237d82bb57b5718eaa4a1f3a0498cd4aa4a74695158303cc |
Close
Hashes for tree_sitter_c_sharp-0.21.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99cc01b65022cbbc1165a55df8cfa898aec2562fe3304fca1ccbee0daa4554bf |
|
MD5 | 9df1e298cb56cafdd36a61eab1c60b29 |
|
BLAKE2b-256 | acd75c30179800de03f94c04f05e57ad98c35bcefd94614190fdb64efbf14eec |
Close
Hashes for tree_sitter_c_sharp-0.21.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c07e4bceb6b80d1074275f57b390426b69ee48664909c112bc359bf27466cdd |
|
MD5 | 5580c795ece6923bbbed0b624748361e |
|
BLAKE2b-256 | f9ff69fd8162d54ac84d3c304e6f61d8e857cfc6f4c03656de5d4b4a551c104c |
Close
Hashes for tree_sitter_c_sharp-0.21.3-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 740ac4ab8eeb9d3912b99c21e205932a08674f0fbe55063ba4adbc7283a50e90 |
|
MD5 | d4ff7a1a59ec550b33e4a6c5ff09eab2 |
|
BLAKE2b-256 | 4708c7363ec5fb5c20720ae382d9c81f20eebeaa8add8f19c4046497b6a096e9 |