fix operations not performing correctly and trying to fix cached code not executing correctly

This commit is contained in:
William Bell
2025-09-02 02:59:47 +01:00
parent fd5b237dfe
commit f5ee0f6fc8
7 changed files with 272 additions and 268 deletions

View File

@@ -12,8 +12,6 @@
#include <stdlib.h>
#include <string.h>
struct operation {};
ParsedValue convert_to_operation(DArray *to_operate_on, DArray *operations) {
if (to_operate_on->size == 1) {
return *((ParsedValue *)darray_get(to_operate_on, 0));
@@ -31,7 +29,9 @@ ParsedValue convert_to_operation(DArray *to_operate_on, DArray *operations) {
operation = *current_operation;
darray_init(&positions, sizeof(size_t));
}
darray_push(&positions, &i);
if (operation_type == current_operation->type) {
darray_push(&positions, &i);
}
}
ParsedValue parsedValue;
parsedValue.type = AST_OPERATION;