TreeSitter.Nif (treesitter_elixir v0.1.2)

View Source

Summary

Functions

language(language, full_path)

Get the langage given a full name of the language and the path to the shared library implementing the language.

language_path is a useful helper function to get the full language name and path if needed

Examples:

TreeSitter.Nif.language("tree_sitter_c", "/usr/lib/libtree-sitter-c.so")

language_path(language, path)

Return the full language name and the full path, needed for parser_set_language given the language name and the path to search

Examples:

TreeSitter.Nif.language_path("c", "/usr/lib")

load_nifs()

node_byte_range(_)

Return the start and end index of the bytestring

node_child(_)

node_next_sibling(_)

node_parent(_)

node_point_range(_)

node_prev_sibling(_)

node_string(_)

node_type(_)

parse(_, _)

parser_new()

parser_parse_string(_, _)

parser_set_language(parser, language)

query_capture_name_for_id(query, pattern_index)

query_cursor_exec(query, node)

query_cursor_next_match(cursor)

query_new(language, query_string)

query_pattern_byte_range(query, pattern_index)

so_contents()

tree_root_node(_)