tcc_treesitter_globals: Parse global declarations with treesitter.c

View source: R/treesitter_helpers.R

tcc_treesitter_globalsR Documentation

Parse global declarations with treesitter.c

Description

Parse global declarations with treesitter.c

Usage

tcc_treesitter_globals(header, ...)

Arguments

header

Character scalar containing C declarations.

...

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

Value

A data frame of global names.

Examples

## Not run: 
header <- "int global_counter;"
tcc_treesitter_globals(header)

## End(Not run)

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