Page
Library
Module
Module type
Parameter
Class
Class type
Source
Tree_sitter.LanguageSourceLanguage grammars.
A Language.t describes the grammar rules, symbols, and fields for a particular programming language. Obtain one from a grammar package (e.g. Tree_sitter_json.language ()) rather than calling of_address directly.
The type for Tree-sitter language grammars.
of_address addr is a language from a native pointer addr.
Warning. addr must point to a valid TSLanguage returned by a tree_sitter_<lang>() C function. Prefer grammar-package helpers (e.g. Tree_sitter_json.language ()) instead.
symbol_type lang id is the symbol_type of symbol id.
symbol_for_name lang name ~named is the symbol ID for name, if any. When ~named is true, only named (non-anonymous) symbols are searched.
field_name_for_id lang id is the field name for id, if any.