- tinyblocks-blueprint: dona do estado de edicao (abas, pool de blocos, vinculos parent/prel/next/sub/args, blocos compostos e variaveis) e da serializacao. JSON nativo (to/from) usando a AST JSON do core e export JSON/XML/CSV. Testado com round-trip (test-blueprint). - tinyblocks-json: lexer + parser + emissor JSON independentes. - tinyblocks-xml: lexer + parser de XML -> AST JSON do core + emissor. - tinyblocks-csv: divisor de linhas/campos + parser/emissor sobre a AST JSON. - Editor: botoes Abrir / Salvar / Exportar JSON XML CSV no menu; converte Ed <-> TbBlueprint; barra de caminho com modo; .json pode ser arrastado. - Variaveis: tb_variables_clear e tb_variables_set_text. - Harness: teste de salvar/abrir projeto; tests/blueprint_test.c.
26 lines
596 B
C
26 lines
596 B
C
/*
|
|
* TinyBlocks - tb_json.h
|
|
* Library tinyblocks-json: parser/emissor de JSON e blocos de consulta.
|
|
*/
|
|
#ifndef TINYBLOCKS_JSON_H
|
|
#define TINYBLOCKS_JSON_H
|
|
|
|
#include <tinyblocks/tinyblocks.h>
|
|
#include "ast.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
TB_API const TinyBlocks_LibraryDescriptor* tb_json_get_library(void);
|
|
|
|
/* Le um valor escalar de um texto JSON (caminho "a.b[0].c").
|
|
* Devolve em buffer estatico; util para metadados/UI. */
|
|
TB_API const char* tb_json_get_path(const char* text, const char* dotted, const char* def);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* TINYBLOCKS_JSON_H */
|