tcc_treesitter_structs: Parse struct declarations with treesitter.c

View source: R/treesitter_helpers.R

tcc_treesitter_structsR Documentation

Parse struct declarations with treesitter.c

Description

Parse struct declarations with treesitter.c

Usage

tcc_treesitter_structs(header, ...)

Arguments

header

Character scalar containing C declarations.

...

Additional arguments passed to treesitter.c::get_struct_nodes().

Value

A data frame of struct nodes.

Examples

## Not run: 
header <- "struct point { double x; double y; };"
tcc_treesitter_structs(header)

## End(Not run)

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