hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-19 15:47:03 +0200
committerhachem <im@hachem.wtf>2026-09-19 15:47:03 +0200
commit6d8b0392bb0c0df82285eec1b0f692113e66eb1a (patch)
treec08fde36b934b759b1255bac33dc69ae1adf7169 /ast.h
parente5cc80fb6a608aa1fbd0d6fabd1cf614a0fc004a (diff)
feat: enable_if
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ast.h b/ast.h
index aaa5f7a..4a5db15 100644
--- a/ast.h
+++ b/ast.h
@@ -33,6 +33,7 @@ enum NodeKind
COND_LESS,
STMT_DECLARE,
STMT_UNDECLARE,
+ STMT_ENABLE_IF,
STMT_EMIT,
STMT_STATIC_ASSERT
};
@@ -52,6 +53,7 @@ struct Node
struct Node* first;
struct Node* second;
struct Node* third;
+ struct Node* body;
struct Node* next;
};
@@ -65,6 +67,7 @@ struct Node* node_binary(enum NodeKind kind, struct Node* first, struct Node* se
struct Node* node_ternary(enum NodeKind kind, struct Node* first, struct Node* second,
struct Node* third);
struct Node* node_named(enum NodeKind kind, const struct Name* name, struct Node* first);
+struct Node* node_block(enum NodeKind kind, struct Node* first, struct Node* body);
struct Node* node_append(struct Node* list, struct Node* node);
void node_free(struct Node* node);