lang: fix lots of compiler warnings/errors

This commit is contained in:
2024-12-01 13:25:36 +00:00
parent bb34e46c69
commit b5cb87e8df
8 changed files with 90 additions and 52 deletions

View File

@@ -1,11 +1,14 @@
#include "ctx.h"
#include "node.h"
#include <stdio.h>
static void print(struct ivy_ast_node *node)
{
struct ivy_ast_ident_node *ident = (struct ivy_ast_ident_node *)node;
printf("%s (%s)\n", ivy_ast_node_type_to_string(node->n_type), ident->n_content->t_str);
printf("%s (%s)\n", ivy_ast_node_type_to_string(node->n_type),
ident->n_content->t_str);
}
struct ast_node_type ident_node_ops = {