added return statement

This commit is contained in:
Francesco Cozzuto
2021-10-31 16:05:43 +01:00
parent 88efd9515c
commit 7f37c51f98
5 changed files with 108 additions and 5 deletions
+6
View File
@@ -8,6 +8,7 @@ typedef enum {
NODE_EXPR,
NODE_IFELSE,
NODE_COMP,
NODE_RETURN,
} NodeKind;
typedef enum {
@@ -86,4 +87,9 @@ typedef struct {
Node base;
Node *head;
} CompoundNode;
typedef struct {
Node base;
Node *val;
} ReturnNode;
#endif