TreeSitter.Nif (treesitter_elixir v0.1.1)

View Source

Summary

Functions

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

Return the start and end index of the bytestring

Set the langage given a full name of the language and the path.

Functions

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, full_path)

Set the langage given a full name of the language and the path.

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")

so_contents()

tree_root_node(_)