py-tree-sitter icon indicating copy to clipboard operation
py-tree-sitter copied to clipboard

Type Providers

Open wenkokke opened this issue 3 years ago • 0 comments

Just wanted to point you to wenkokke/py-tree-sitter-type-provider, which:

  • generates dataclasses from a node-types.json file,
  • provides a conversion from tree_sitter.Node to those dataclasses, and
  • provides a generic visitor and transformation patterns.

For an example of how to use it, see wenkokke/py-tree-sitter-talon.

wenkokke avatar Jul 15 '22 17:07 wenkokke