void avengersAssemble(AST_NODE* astTree, TAC* tacList) { DEST_ASM = fopen("assembly.s", "w"); printHeaders(); parseGlobalVariables(astTree); parseStrings(); fprintf(DEST_ASM, "\t.text\n"); parseTAC(tacList); printFooter(); fclose(DEST_ASM); }
Param_t *parseParams(char **strings, Param_t *param) { char *t; int i; for(i = 0; i < param->argumentCount; i++) { t = strings[i]; param = parseStrings(t, param); //parse each string command to see what it does } //param = setArgV(param); return param; }