change how numbers are stored so they are in an efficent binary format, able to be quickly read by the runtime

This commit is contained in:
William Bell
2025-08-12 00:13:01 +01:00
parent f851b37f99
commit d4528e44f6
13 changed files with 126 additions and 72 deletions

View File

@@ -22,6 +22,7 @@
#include "operations/operations.h"
#include "return/return.h"
#include "string/string.h"
#include <gmp-x86_64.h>
#include <gmp.h>
#include <stdbool.h>
#include <stddef.h>
@@ -220,6 +221,7 @@ void free_parsed(void *ptr) {
free_identifier(parsed);
break;
case AST_NUMBER:
mpq_clear(*(mpq_t *)parsed->data);
free(parsed->data);
break;
case AST_STRING: