'R' Bindings to the 'C' Grammar for Tree-Sitter


[Up] [Top]

Documentation for package ‘treesitter.c’ version 0.0.4.2

Help Pages

fake_libc_path Get the path to the installed fake_libc headers
get_defines_from_file This function will use the configured C compiler to list macro definitions ('-dM -E') if 'use_cpp = TRUE' and a compiler is available; otherwise, a simple scan of #define lines is used as a fallback.
get_enum_members_from_root Extract enum members from a parsed header
get_enum_nodes Extract enum names from a parsed header
get_function_nodes Extract function names (declarations and definitions) from a root
get_globals_from_root Extract global variable names from a parsed tree root
get_globals_with_types_from_root Extract global variables with types from a parsed tree root
get_struct_members Extract members of structs (including nested anonymous struct members)
get_struct_nodes Extract struct names from a parsed tree root
get_union_members_from_root Extract members of unions
get_union_nodes Extract union names from a parsed header
language tree-sitter language for C
parse_headers_collect Parse a directory of headers and return named list of data.frames with
parse_header_text Convert character content of a header file into a tree-sitter root
parse_r_include_headers Parse C header files for function declarations using tree-sitter
preprocess_header Run the C preprocessor on 'file' using the provided compiler
preprocess_headers Preprocess a set of header files found under 'dir'
r_cc Return the default R-configured C compiler (possibly with flags)