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_double_node *v = (struct ivy_ast_double_node *)node;
printf("%s (%.2lf)\n", ivy_ast_node_type_to_string(node->n_type), v->n_value->t_double);
printf("%s (%.2lf)\n", ivy_ast_node_type_to_string(node->n_type),
v->n_value->t_double);
}
struct ast_node_type double_node_ops = {