diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-09 15:16:27 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-09 15:16:27 -0400 |
| commit | 57154250c71aee7d7827afd3c608ba876f51206a (patch) | |
| tree | 00a6e6b7a24107c7c95dde5405989c4b1b2c44a0 /src/ast.h | |
| parent | d1f967ffb4dc099a34f54434be10a58eb33b81f7 (diff) | |
Deprecate cords from the gc library in favor of dogfooding Text from the
Tomo standard library.
Diffstat (limited to 'src/ast.h')
| -rw-r--r-- | src/ast.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -3,7 +3,6 @@ // Logic defining ASTs (abstract syntax trees) to represent code #include <err.h> -#include <gc/cord.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> @@ -176,7 +175,7 @@ struct ast_s { double n; } Num; struct { - CORD cord; + Text_t text; } TextLiteral; struct { const char *lang; @@ -353,9 +352,9 @@ struct ast_s { const char *ast_source(ast_t *ast); -CORD ast_to_sexp(ast_t *ast); +Text_t ast_to_sexp(ast_t *ast); const char *ast_to_sexp_str(ast_t *ast); -CORD type_ast_to_sexp(type_ast_t *ast); +Text_t type_ast_to_sexp(type_ast_t *ast); PUREFUNC bool is_idempotent(ast_t *ast); void visit_topologically(ast_list_t *ast, Closure_t fn); |
