diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 12:43:34 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 12:43:34 -0400 |
| commit | 3e2c911ce260907e3f8f4a4278a7c0ec4793e78a (patch) | |
| tree | 93a3d7a8bb469df926e4407ac996aa606692039f /src/formatter.h | |
| parent | 55479cbf9e4a8f36afe41d84df687f05fc7661f0 (diff) | |
First pass at formatter
Diffstat (limited to 'src/formatter.h')
| -rw-r--r-- | src/formatter.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/formatter.h b/src/formatter.h index c3941de9..dd4c7815 100644 --- a/src/formatter.h +++ b/src/formatter.h @@ -5,5 +5,7 @@ #include "ast.h" #include "stdlib/datatypes.h" -Text_t code_format(ast_t *ast, Table_t *comments); -OptionalText_t code_format_inline(ast_t *ast, Table_t *comments); +Text_t format_file(const char *path); +Text_t format_code(ast_t *ast, Table_t comments); +OptionalText_t format_inline_code(ast_t *ast, Table_t comments); +OptionalText_t next_comment(Table_t comments, const char **pos, const char *end); |
