py-tree-sitter
py-tree-sitter copied to clipboard
Type Providers
Just wanted to point you to wenkokke/py-tree-sitter-type-provider, which:
- generates dataclasses from a
node-types.jsonfile, - provides a conversion from
tree_sitter.Nodeto those dataclasses, and - provides a generic visitor and transformation patterns.
For an example of how to use it, see wenkokke/py-tree-sitter-talon.