This commit is contained in:
2022-02-21 12:44:43 +01:00
parent 986228c449
commit c61f68540d
21 changed files with 827 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#ifndef IR_H
#define IR_H
/* This is the tree node structure */
typedef struct n {
node_index_t type;
void *data;
struct s *entry;
uint64_t n_children;
struct n **children;
} node_t;
// Export the initializer function, it is needed by the parser
void node_init (
node_t *nd, node_index_t type, void *data, uint64_t n_children, ...
);
#endif