py-tree-sitter
py-tree-sitter copied to clipboard
Python bindings to the Tree-sitter parsing library
## Feature request: visitor pattern This PR represents a feature request for the visitor pattern to be included in the Tree-sitter Python API. The visitor pattern is well-established method for...
https://github.com/tree-sitter/tree-sitter-haskell uses `c++17` language features, so needs to be built with that flag. Test output: ``` ........... ---------------------------------------------------------------------- Ran 11 tests in 0.012s OK ```
This comes from PR #57 which I just merged. With start_point/end_point in `test_byte_range_captures`, we're getting a capture result outside the point range `(1,0) - (2,0)`: ``` [(, 'func-def'), (, 'func-call')]...
Version 0.20.0, Python 3.8 on Ubuntu 20.04.4 I use tree-sitter to parse a lot of python files during which I've found myself running out of memory trying to traverse the...
There are several common use cases where the user wants to serialize a `Tree` object for later use. I was wondering, why aren't `Tree` and `Node` serializable? Thanks!
Is it possible to build this for Windows with gcc instead of downloading the big Microsoft package?
expected result: `node.children_by_field_name('')` should return an empty list actual result: `node.children_by_field_name('')` returns all unnamed children ```py ipdb> node.text b'Foo: A = 1' ipdb> node.children_by_field_name('left') [] ipdb> node.children_by_field_name('') [, ] ipdb>...
would the ts api support getting the name of a node?
While trying to invoke `build_library` with typescript is resulting in missing src/parser.c error. Is there any documentation on which languages are supported with the python binding?
Hello, Firstly, thank you a lot for your work ! I tried to use tree-sitter to make a text editor for graphviz language with real time graphic rendering. I tried...