diff options
Diffstat (limited to 'node.h')
-rw-r--r-- | node.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -12,7 +12,8 @@ enum node_type { N_FUNC_DECL, // rtype name [params] [body] N_IF, // [cond] [body] [else-body] N_WHILE, // [cond] [body] - N_RETURN, // [value] + N_RETURN, // -- + N_RETURNV, // [value] N_NUM, // value N_VAR, // name N_BINOP, // [left] oper [right] @@ -53,4 +54,6 @@ int node_list_length(struct node *node); void node_delete_recursive(struct node *node); +const char* node_type_string(enum node_type type); +const char* oper_string(enum operator oper); void node_print(const struct node *node, FILE *f, int indent); |