File: tree_sitter.Parser.rst

package info (click to toggle)
py-tree-sitter 0.25.1%2Brepack-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,412 kB
  • sloc: ansic: 18,134; python: 1,601; sh: 27; makefile: 13
file content (26 lines) | stat: -rw-r--r-- 576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Parser
======

.. autoclass:: tree_sitter.Parser

   Methods
   -------

   .. automethod:: parse

      .. versionchanged:: 0.25.0
         * ``encoding`` can be one of ``"utf8", "utf16", "utf16le", "utf16be"``.
         * ``progress_callback`` parameter added.
   .. automethod:: print_dot_graphs
   .. automethod:: reset

   Attributes
   ----------

   .. autoattribute:: included_ranges
   .. autoattribute:: language
   .. autoattribute:: logger
   .. autoattribute:: timeout_micros

      .. deprecated:: 0.25.0
         Use the ``progress_callback`` in :meth:`parse`.