added compound statements

This commit is contained in:
cozis
2021-11-01 03:20:07 +00:00
parent e67231f321
commit 97c3c15ea0
8 changed files with 138 additions and 4 deletions
+5
View File
@@ -7,6 +7,7 @@
typedef enum {
NODE_EXPR,
NODE_IFELSE,
NODE_COMP,
} NodeKind;
typedef enum {
@@ -81,4 +82,8 @@ typedef struct {
Node *false_branch;
} IfElseNode;
typedef struct {
Node base;
Node *head;
} CompoundNode;
#endif