code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(13 lines)
1 // This code defines functions for transforming ASTs back into Tomo source text
3 #pragma once
5 #include <stdbool.h>
7 #include "../ast.h"
8 #include "../stdlib/datatypes.h"
10 Text_t format_file(const char *path);
11 Text_t format_code(ast_t *ast, Table_t comments, Text_t indentation);
12 Text_t format_namespace(ast_t *namespace, Table_t comments, Text_t indent);
13 OptionalText_t format_inline_code(ast_t *ast, Table_t comments);