/* * TinyBlocks - tinyblocks-csv / include/ast.h * * A AST do CSV e a arvore JSON do core: * - sem cabecalho -> array de arrays de strings (linhas); * - com cabecalho -> array de objetos { coluna: "valor", ... }. */ #ifndef TB_CSV_AST_H #define TB_CSV_AST_H #include #include #include #include "lexeme.h" TinyBlocks_JsonValue* csv_parse(const char* text, char delim, bool header, char* err, size_t errcap); TinyBlocks_JsonValue* csv_parse_file(const char* path, char delim, bool header, char* err, size_t errcap); char* csv_to_string(const TinyBlocks_JsonValue* data, char delim); bool csv_write_file(const TinyBlocks_JsonValue* data, const char* path, char delim); #endif /* TB_CSV_AST_H */