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.21.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distributions

tree_sitter_c_sharp-0.21.0-cp38-abi3-win_amd64.whl (361.8 kB view details)

Uploaded CPython 3.8+ Windows x86-64

tree_sitter_c_sharp-0.21.0-cp38-abi3-musllinux_1_1_x86_64.whl (387.8 kB view details)

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

tree_sitter_c_sharp-0.21.0-cp38-abi3-musllinux_1_1_aarch64.whl (401.0 kB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ ARM64

tree_sitter_c_sharp-0.21.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (400.8 kB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

tree_sitter_c_sharp-0.21.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (387.6 kB view details)

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

tree_sitter_c_sharp-0.21.0-cp38-abi3-macosx_11_0_arm64.whl (402.7 kB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

tree_sitter_c_sharp-0.21.0-cp38-abi3-macosx_10_9_x86_64.whl (358.2 kB view details)

Uploaded CPython 3.8+ macOS 10.9+ x86-64

File details

Details for the file tree-sitter-c-sharp-0.21.0.tar.gz.

File metadata

  • Download URL: tree-sitter-c-sharp-0.21.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for tree-sitter-c-sharp-0.21.0.tar.gz
Algorithm Hash digest
SHA256 4a47a652265fb31e8b1b5a4034c6e5e775ad1c086968074a25f9fb834d810c1d
MD5 9045987a7cdfc1e4bda6c3d1cf7b15ab
BLAKE2b-256 add59ec5e70acbbcb3be8ff76693a5837b688cfa64056c8d741c68dc01fee11e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 eb4b170d971a311bdc07023aa73d98977d28abafec04197e67f0c7bb6f047237
MD5 23bbeb0cbf8dee2ccb498463fc4e3acd
BLAKE2b-256 b17e55cced8c37260a52c061daac3794e12cb1c8d148fb8a9a6696eaea72249d

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.21.0-cp38-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.0-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 9cd84ca28d2cb8b8103b49aa6453bc568ffc519b6bcb6dcf3eb51062cb51f564
MD5 785c0231dd65dcf0349c23891e852dc7
BLAKE2b-256 7a1f8c31bcb6e6b94d1c0b75ffd26fd847f5811c9f7d041c49987a567b16a4bb

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.21.0-cp38-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.0-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 a3ea28ff95d2e9dfa84e787adacb476f448446b3c2ba38b78372aa330c2f3630
MD5 97ace977cae2791d3d8db744811cc127
BLAKE2b-256 9bc12e7d68949021bcd17ded4e5be13579daf03842308940d1c6da4f9a2c6805

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a3ad7a3ec17a6ba1d4f23c28a4948142e6a044bbe27ecfe5ae565099f7abdcdd
MD5 ccb67ff6d5fad820ea9dec810779c30a
BLAKE2b-256 a47a5b943af6a68967cc1a351b567ae514e9b8d91ea83f497e7df83f57d85ecd

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.21.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.21.0-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88ee6994255eb9652e2fc01e0731706d55498616aabe3730c50370539e596ea7
MD5 da6fb207568781a6b29ffa7b50d2232f
BLAKE2b-256 5c19cc2bf1d58939d87531dae00b3f60f55878fec5ec4bfbb225bdcee12626de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6509de2edd315cff48f7bcb93862673631e5d96871e4d33e474a00c40416c012
MD5 280c9ef400b23448c98158b5c7ad9185
BLAKE2b-256 391cae91a25160727b00a526752b4e923631c85f22ac4d6509ab398b52e9a304

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ff982bb7ba164cf6f6bf7e19d100567ca2281f78dd350931c80ab72214431cd3
MD5 8d131fb34bc5cac72a56f9758ad5bb2b
BLAKE2b-256 35d671e12bd19fc366ef708e77d892cce5807cbe969e8f1a64883bf1d22804fe

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