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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.8+ Windows x86-64

tree_sitter_c_sharp-0.21.1-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.1-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.1-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.1-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.1-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.1-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.1.tar.gz.

File metadata

  • Download URL: tree-sitter-c-sharp-0.21.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e0cc3a35820e508f64385bda507ee501919338f60d9c3b06cafdeb3221c634c4
MD5 0d293c3a503bd9317a12a551b3ccdb9c
BLAKE2b-256 39532c51153277f4578b3934e7729784377eb84134d69d15ea29fbab0180e534

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 841725534f92b90f10e4dc8c6f97a7543fbc7bc9de3f3f2ae35c361456a89bed
MD5 0179d8fd4f6a55bef3301890e647f2cc
BLAKE2b-256 6d16f74d850cd33bbfd372be70ab5fe539577f156fda1d8258aabd630bb86896

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.1-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 18ef1cf3a031857f058916e5d9b3abd1909d3e11fe05310c7f31f4549d78d496
MD5 d9d48066e4f7bc0cb0ed3da9d546ba26
BLAKE2b-256 2f44c10a94b23ac8540557d98128bfb0412af3d38ef7b2c6278186647ed9992a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.1-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 773e424a19eebaa47c44fad34a21819876b23c5c7b65d9091db226502c2a63eb
MD5 78c33dc8d4e676dcdeb10e82a04235b6
BLAKE2b-256 4d1b3ad81261bc38658a232b319928d8e30f70f299fb89a25cff1adf936dbd10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 803aa9267921389ade91ebe584168b58bf26d9ab90f602eaba3603c533af31e8
MD5 acb08898a8971bdf5890967f3b8c94b1
BLAKE2b-256 ca2a4497860b545d825fbe454f5e622e4cabf45f5d1a9ffbc0c02c86690fd7e0

See more details on using hashes here.

File details

Details for the file tree_sitter_c_sharp-0.21.1-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.1-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0f04dd00c3666ce4d41edf2c9e79255635a52245f68f1616a19f46ee441ca67a
MD5 fd81dc423ef86dd5f30ae0f60742847c
BLAKE2b-256 b69e85972e4a723f545a66ec61bddd1ebf8ba920e3659efa5299b01a1e8086bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab1df88ef0c9c1e95144e656235316f8c8d30a9b23a2116b6a681e60db9c3d93
MD5 4743052bde80e4fd28e72e07f6ac85da
BLAKE2b-256 ced14c074e1a59b4df95f801eca488326f7dfb7fef3e535b38c0005b4b9f9b93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tree_sitter_c_sharp-0.21.1-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3dfb1c1cbc6a846ad988275f245e8944e42a9b2da67822bd196b708bb7ade6b3
MD5 ebc46d5c09039cf770807bd669aecafd
BLAKE2b-256 353d1ae437fff6d429aa0fc637a890d2d8dad6e56c52b8b691c01bf12d623130

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