hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
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);