diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-03 16:00:34 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-03 16:00:34 +0300 |
| commit | 2ca159fb5c2a52f33c499eef1fa50a98a863b0f0 (patch) | |
| tree | c9497ad8372a047bcff366c189c8969ed84f0406 /include/cu/ast.h | |
| parent | 4642bedb436981e92e3312f06bfcb2eb34074596 (diff) | |
| download | ek-2ca159fb5c2a52f33c499eef1fa50a98a863b0f0.tar.gz ek-2ca159fb5c2a52f33c499eef1fa50a98a863b0f0.zip | |
initial union testing
Diffstat (limited to 'include/cu/ast.h')
| -rw-r--r-- | include/cu/ast.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/cu/ast.h b/include/cu/ast.h index f9e8492..44850b6 100644 --- a/include/cu/ast.h +++ b/include/cu/ast.h @@ -115,6 +115,7 @@ enum ast_type_kind { AST_TYPE_LAMBDA, AST_TYPE_PROC, AST_TYPE_STRUCT, + AST_TYPE_GENERIC, AST_TYPE_ENUM, AST_TYPE_SIGN, }; @@ -140,6 +141,7 @@ enum ast_flag { AST_FLAG_INIT = (1 << 10), AST_FLAG_MEMBER = (1 << 11), AST_FLAG_SHARED = (1 << 12), + AST_FLAG_GENERIC = (1 << 13), }; struct ast_node; @@ -310,6 +312,11 @@ struct ast_type { struct { struct ast_node *id; + struct ast_node *args; + } generic; + + struct { + struct ast_node *id; struct ast_node *impls; } struc; |
