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
File details
Details for the file tree_sitter_c_sharp-0.23.1.tar.gz
.
File metadata
- Download URL: tree_sitter_c_sharp-0.23.1.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 322e2cfd3a547a840375276b2aea3335fa6458aeac082f6c60fec3f745c967eb |
|
MD5 | 96b8ad9f3927630062232753b8daf1c3 |
|
BLAKE2b-256 | 2285a61c782afbb706a47d990eaee6977e7c2bd013771c5bf5c81c617684f286 |
File details
Details for the file tree_sitter_c_sharp-0.23.1-cp39-abi3-win_arm64.whl
.
File metadata
- Download URL: tree_sitter_c_sharp-0.23.1-cp39-abi3-win_arm64.whl
- Upload date:
- Size: 375.2 kB
- Tags: CPython 3.9+, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c81548347a93347be4f48cb63ec7d60ef4b0efa91313330e69641e49aa5a08c5 |
|
MD5 | f9a4d80773a8720bf36d5d330392ae93 |
|
BLAKE2b-256 | d8883cf6bd9959d94d1fec1e6a9c530c5f08ff4115a474f62aedb5fedb0f7241 |
File details
Details for the file tree_sitter_c_sharp-0.23.1-cp39-abi3-win_amd64.whl
.
File metadata
- Download URL: tree_sitter_c_sharp-0.23.1-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 377.6 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae9a9e859e8f44e2b07578d44f9a220d3fa25b688966708af6aa55d42abeebb3 |
|
MD5 | e5f4707789f61cadd29e94b77e705c42 |
|
BLAKE2b-256 | 47d24facaa34b40f8104d8751746d0e1cd2ddf0beb9f1404b736b97f372bd1f3 |
File details
Details for the file tree_sitter_c_sharp-0.23.1-cp39-abi3-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: tree_sitter_c_sharp-0.23.1-cp39-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 397.9 kB
- Tags: CPython 3.9+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f9bf876866835492281d336b9e1f9626ab668737f74e914c31d285261507da7 |
|
MD5 | d46f16e4345851aa734da74336a740c1 |
|
BLAKE2b-256 | fe3ab6028c5890ce6653807d5fa88c72232c027c6ceb480dbeb3b186d60e5971 |
File details
Details for the file tree_sitter_c_sharp-0.23.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: tree_sitter_c_sharp-0.23.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 416.0 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 986e93d845a438ec3c4416401aa98e6a6f6631d644bbbc2e43fcb915c51d255d |
|
MD5 | 5b1ab8bbf60076b33dcc08d39d84300b |
|
BLAKE2b-256 | 0f2113df29f8fcb9ba9f209b7b413a4764b673dfd58989a0dd67e9c7e19e9c2e |
File details
Details for the file tree_sitter_c_sharp-0.23.1-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: tree_sitter_c_sharp-0.23.1-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 402.8 kB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8024e466b2f5611c6dc90321f232d8584893c7fb88b75e4a831992f877616d2 |
|
MD5 | 300c8fb33c842c26386ef031a8eb5859 |
|
BLAKE2b-256 | ca72fc6846795bcdae2f8aa94cc8b1d1af33d634e08be63e294ff0d6794b1efc |
File details
Details for the file tree_sitter_c_sharp-0.23.1-cp39-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: tree_sitter_c_sharp-0.23.1-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 419.0 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a8b98f62bc53efcd4d971151950c9b9cd5cbe3bacdb0cd69fdccac63350d83e |
|
MD5 | 2b4e083020e967fccb08d4efc87c9da5 |
|
BLAKE2b-256 | 99101aa9486f1e28fc22810fa92cbdc54e1051e7f5536a5e5b5e9695f609b31e |
File details
Details for the file tree_sitter_c_sharp-0.23.1-cp39-abi3-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: tree_sitter_c_sharp-0.23.1-cp39-abi3-macosx_10_9_x86_64.whl
- Upload date:
- Size: 372.2 kB
- Tags: CPython 3.9+, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b612a6e5bd17bb7fa2aab4bb6fc1fba45c94f09cb034ab332e45603b86e32fd |
|
MD5 | ce12c51122bbf4529aa75c1a3b5fbc34 |
|
BLAKE2b-256 | 5804f6c2df4c53a588ccd88d50851155945cff8cd887bd70c175e00aaade7edf |