aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-20 14:07:26 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-20 14:26:08 -0400
commitb9a8ddea2c0b5f170e461b9216eb14f2d86588eb (patch)
treecb45901e3046b3d28823df9c85a719a38981804d /src/ast.c
parente937e3056b934c6d426abc3db8de1c99433a434b (diff)
WIP on inline enums
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ast.c b/src/ast.c
index 37c5a514..d59058c9 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -149,6 +149,7 @@ Text_t type_ast_to_sexp(type_ast_t *t) {
T(TableTypeAST, "(TableType ", type_ast_to_sexp(data.key), " ", type_ast_to_sexp(data.value), ")");
T(FunctionTypeAST, "(FunctionType ", arg_defs_to_sexp(data.args), " ", type_ast_to_sexp(data.ret), ")");
T(OptionalTypeAST, "(OptionalType ", type_ast_to_sexp(data.type), ")");
+ T(EnumTypeAST, "(EnumType ", data.name, " ", tags_to_sexp(data.tags), ")");
#undef T
default: return EMPTY_TEXT;
}