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

Uploaded Source

Built Distributions

tree_sitter_c_sharp-0.21.2-cp38-abi3-win_amd64.whl (367.7 kB view hashes)

Uploaded CPython 3.8+ Windows x86-64

tree_sitter_c_sharp-0.21.2-cp38-abi3-musllinux_1_1_x86_64.whl (394.7 kB view hashes)

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

tree_sitter_c_sharp-0.21.2-cp38-abi3-musllinux_1_1_aarch64.whl (406.4 kB view hashes)

Uploaded CPython 3.8+ musllinux: musl 1.1+ ARM64

tree_sitter_c_sharp-0.21.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (406.8 kB view hashes)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

tree_sitter_c_sharp-0.21.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (394.4 kB view hashes)

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

tree_sitter_c_sharp-0.21.2-cp38-abi3-macosx_11_0_arm64.whl (408.4 kB view hashes)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

tree_sitter_c_sharp-0.21.2-cp38-abi3-macosx_10_9_x86_64.whl (364.0 kB view hashes)

Uploaded CPython 3.8+ macOS 10.9+ x86-64

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