Tree sitter grammar for VB.NET
Maintained. Last release 3 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install tree-sitter-vb-dotnettree‑sitter‑vb‑dotnet
Tree‑sitter grammar for Visual Basic .NET (VB.NET) – incremental parsing for editors, code‑intel, refactoring tools and static‑analysis pipelines.
Status
| Feature | Support |
|---|---|
| Modules / Classes / Structures / Interfaces | ✅ |
| Subs & Functions (incl. overloads, generics) | ✅ |
| Properties (auto / get‑set) | ✅ |
| Events & Delegates | ✅ |
Control‑flow (If…Else, Select Case, loops, Try…Catch) | ✅ |
| LINQ / XML literals | ⚠️ planned |
| Preprocessor directives | ⚠️ parses as trivia only |
| Error recovery | ⚠️ basic |
The grammar aims to cover VB 16.9 / .NET 5 syntax.
Bug reports / PRs are very welcome!
Installation
npm install tree-sitter tree-sitter-vb-dotnet # parser + runtime
Python package
pip install tree-sitter-vb-dotnet
import tree_sitter
import tree_sitter_vb_dotnet
language = tree_sitter.Language(tree_sitter_vb_dotnet.language())
This fork of rrangraj/tree-sitter-vb-dotnet
carries the binding fix and the real-world VB.NET grammar fixes contributed by
@sloemo01, and renames the Python module from the
generator's doubled tree_sitter_tree_sitter_vb_dotnet to tree_sitter_vb_dotnet.