py-tree-sitter#
Python bindings to the Tree-sitter parsing library.
Constants#
- tree_sitter.LANGUAGE_VERSION = 14#
The latest ABI version that is supported by the current version of the library.
Note
When a
Language
is generated by the Tree-sitter CLI, it is assigned an ABI version number that corresponds to the current CLI version. The Tree-sitter library is generally backwards-compatible with languages generated using older CLI versions, but is not forwards-compatible.
- tree_sitter.MIN_COMPATIBLE_LANGUAGE_VERSION = 13#
The earliest ABI version that is supported by the current version of the library.
Classes#
A class that defines how to parse a particular language. |
|
The type of a log message. |
|
A class that is used to look up symbols valid in a specific parse state. |
|
A single node within a syntax |
|
A class that is used to produce a |
|
A position in a multi-line text document, in terms of rows and columns. |
|
A set of patterns that match nodes in a syntax tree. |
|
An error that occurred while attempting to create a |
|
A custom query predicate that runs on a pattern. |
|
A range of positions in a multi-line text document, both in terms of bytes and of rows and columns. |
|
A tree that represents the syntactic structure of a source code file. |
|
A class for walking a syntax |