| tcc_treesitter_helpers | R Documentation |
Convenience wrappers around treesitter.c that map C types to the
Rtinycc FFI type system and return tcc_bind()-ready specs.
header |
Character scalar containing C declarations. |
... |
Additional arguments passed to treesitter.c helpers. |
A data frame of nodes or a named list of binding specs.
These helpers require the optional treesitter.c package.
## Not run:
header <- "double sqrt(double x);\nint add(int a, int b);"
tcc_treesitter_functions(header)
tcc_treesitter_bindings(header)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.