aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-03 18:15:45 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-03-03 18:15:45 -0500
commit8fab88c56f95c03ffcb4be178f5dbb21b239d95e (patch)
tree3c2e721b8ea55d43b94fa9f315659580652573c5 /ast.h
parent07f0a18136a7883d1f3edd3e08253bd3020294a8 (diff)
Rename Str -> Text
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ast.h b/ast.h
index 3cc93f43..b80aeb61 100644
--- a/ast.h
+++ b/ast.h
@@ -13,7 +13,7 @@
.tag=ast_tag, .__data.ast_tag={__VA_ARGS__}))
#define FakeAST(ast_tag, ...) (new(ast_t, .tag=ast_tag, .__data.ast_tag={__VA_ARGS__}))
#define WrapAST(ast, ast_tag, ...) (new(ast_t, .file=(ast)->file, .start=(ast)->start, .end=(ast)->end, .tag=ast_tag, .__data.ast_tag={__VA_ARGS__}))
-#define StringAST(ast, _str) WrapAST(ast, StringLiteral, .str=heap_str(_str))
+#define TextAST(ast, _str) WrapAST(ast, TextLiteral, .str=heap_str(_str))
struct binding_s;
typedef struct type_ast_s type_ast_t;
@@ -91,7 +91,7 @@ typedef enum {
Unknown = 0,
Nil, Bool, Var,
Int, Num,
- StringLiteral, StringJoin,
+ TextLiteral, TextJoin,
Declare, Assign,
BinaryOp, UpdateAssign,
Length, Not, Negative, HeapAllocate, StackReference,
@@ -139,10 +139,10 @@ struct ast_s {
} Num;
struct {
CORD cord;
- } StringLiteral;
+ } TextLiteral;
struct {
ast_list_t *children;
- } StringJoin;
+ } TextJoin;
struct {
ast_t *var;
ast_t *value;