/* * TinyBlocks - tb_toml.h * Library tinyblocks-toml: parser de TOML (lexer + AST) e metadados de * library. Tambem expoe o bloco Toml.Get para scripts. */ #ifndef TINYBLOCKS_TOML_H #define TINYBLOCKS_TOML_H #include #include "lexeme.h" #include "ast.h" #ifdef __cplusplus extern "C" { #endif TB_API const TinyBlocks_LibraryDescriptor* tb_toml_get_library(void); /* Le um valor escalar de um arquivo .toml (ex.: "library.category"). * Retorna o valor em 'out' ou o default. Util para metadados de library. */ TB_API const char* tb_toml_file_get(const char* path, const char* dotted, const char* def); #ifdef __cplusplus } #endif #endif /* TINYBLOCKS_TOML_H */