blob: bead52ec0a13d1bc883097419892c71e40ff3039 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// This code defines functions for transforming ASTs back into Tomo source text
#pragma once
#include "ast.h"
#include "stdlib/datatypes.h"
Text_t format_file(const char *path);
Text_t format_code(ast_t *ast, Table_t comments, Text_t indentation);
OptionalText_t format_inline_code(ast_t *ast, Table_t comments);
OptionalText_t next_comment(Table_t comments, const char **pos, const char *end);
|