aboutsummaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'node.h')
-rw-r--r--node.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/node.h b/node.h
index b6489d0..63575f8 100644
--- a/node.h
+++ b/node.h
@@ -1,6 +1,7 @@
#pragma once
#include "type.h"
+#include "ir.h"
enum node_type {
@@ -19,6 +20,7 @@ enum node_type {
N_BINOP, // [left] oper [right]
N_UNOP, // oper [arg]
N_CALL, // name [args]
+ N_IRINS, // irins
};
enum operator {
@@ -38,6 +40,7 @@ struct node {
char *name;
int value;
enum operator oper;
+ struct irins *irins;
struct type *valuetype; // filled in by type checker
};