ObserverOfTime

Results 75 issues of ObserverOfTime

## Problem Bindings have no way of retrieving the name of the language. The only exception is Node which wraps it in a N-API object. ## Solution Add a `name`...

The python bindings currently segfault instead of raising an error so that needs to be fixed first. **Test commands:** ```bash node --test python -m unittest discover bindings/python/tests swift test ```

Needs the next py-tree-sitter version because the [files] API does not exist in 3.8 and I'm not adding a fallback. [files]: https://docs.python.org/3/library/importlib.resources.html#importlib.resources.files

### Problem Lexical precedence is currently achieved by wrapping `prec()` with `token()`. The problem is that if the rule is hidden and contains a string literal, it can no longer...

bug
documentation
parser-generation

See https://github.com/python/cpython/issues/109562. `types.CapsuleType` was added in https://github.com/python/cpython/pull/109600 but cannot be used before 3.13.

## Problem The `generate` command currently only supports Node out of the box and Bun via a shim that calls `bun -`. ## Solution * Replace the Node-specific `global` with...

This PR rewrites the project to make it work with py-tree-sitter 0.22. - The user-facing API is still the same. - Each language is compiled into a separate module. -...

[Capsules](https://docs.python.org/3/c-api/capsule.html) ensure we won't try to load random locations in memory if users pass any random integer. Using `object` in the type stub for now, since `CapsuleType` is only available...

- Separate official and third-party bindings - Remove links to outdated bindings - Move parser list to the wiki --- We can more or less copy the list from [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/wiki/List-of-parsers).