Skip to contents

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

if (FALSE) { # \dontrun{
header <- "struct point { double x; double y; };"
tcc_treesitter_structs(header)
} # }