tcc_treesitter_helpers: Treesitter helpers for header-driven bindings

tcc_treesitter_helpersR Documentation

Treesitter helpers for header-driven bindings

Description

Convenience wrappers around treesitter.c that map C types to the Rtinycc FFI type system and return tcc_bind()-ready specs.

Arguments

header

Character scalar containing C declarations.

...

Additional arguments passed to treesitter.c helpers.

Value

A data frame of nodes or a named list of binding specs.

treesitter.c

These helpers require the optional treesitter.c package.

Examples

## Not run: 
header <- "double sqrt(double x);\nint add(int a, int b);"
tcc_treesitter_functions(header)
tcc_treesitter_bindings(header)

## End(Not run)


Rtinycc documentation built on April 28, 2026, 1:07 a.m.