Adiciona tinyblocks-blueprint e libraries json/xml/csv; abrir/salvar/exportar projeto

- 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.
This commit is contained in:
mguinhos committed 2026-10-20 19:51:48 -03:00
1 parent dc23b92d15
commit 1199d2d7c7
39 files changed
+3462 -24

No files matched your search

+8
View File
@@ -26,6 +26,10 @@
#include <tb_pen.h>
#include <tb_fs.h>
#include <tb_toml.h>
#include <tb_json.h>
#include <tb_xml.h>
#include <tb_csv.h>
#include <tb_blueprint.h>
int main(int argc, char** argv) {
TinyBlocks* rt = NULL;
@@ -49,6 +53,10 @@ int main(int argc, char** argv) {
tb_library_register(rt, tb_pen_get_library());
tb_library_register(rt, tb_fs_get_library());
tb_library_register(rt, tb_toml_get_library());
tb_library_register(rt, tb_json_get_library());
tb_library_register(rt, tb_xml_get_library());
tb_library_register(rt, tb_csv_get_library());
tb_library_register(rt, tb_blueprint_get_library());
/* Interface gráfica: o editor mede texto e cria o palco ao nascer */
tb_library_register(rt, tb_graphics_get_library());