18 lines
747 B
C
18 lines
747 B
C
#include "symbol_table.h"
|
|
#include "asm_instructions.h"
|
|
|
|
#ifndef COMPILATOR_2000_YACC_UTIL_H
|
|
#define COMPILATOR_2000_YACC_UTIL_H
|
|
|
|
|
|
void write_affectation(SymbolTable* symbolTable, InstructionTable *instructionTable, char* symbol_dest, SymbolItem* src);
|
|
|
|
const SymbolItem* write_op(SymbolTable* symbol_table, InstructionTable *instruction_table, Instruction instruction, SymbolItem *op1, SymbolItem *op2);
|
|
|
|
const SymbolItem* write_negation(SymbolTable* symbol_table, InstructionTable *instruction_table, SymbolItem *op2);
|
|
|
|
const SymbolItem* init_temp_symbol(SymbolTable* symbol_table, InstructionTable *instruction_table, int constant);
|
|
|
|
void write_print(InstructionTable *instruction_table, SymbolItem *src);
|
|
|
|
#endif //COMPILATOR_2000_YACC_UTIL_H
|