Implemented the 2 operation functions #t51

This commit is contained in:
Meyer Simon
2025-04-02 11:28:23 -04:00
parent 05b641a32e
commit 1c7cdbb4da
2 changed files with 39 additions and 7 deletions

View File

@ -19,13 +19,14 @@ typedef struct {
TableNode * operand1;
TableNode * operand2;
int label;
int instruction;
int index;
Instruction * prev;
Instruction * next;
} Instruction;
Instruction * start = NULL;
Instruction * current = NULL;
Instruction * start;
Instruction * current;
void emit_binary_op(char* result, char* op, char* arg1, char* arg2);
void emit_unary_op(char* result, char* op, char* arg);