-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauxFunctions.h
70 lines (49 loc) · 1.83 KB
/
auxFunctions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef AUXFUNCTIONS_H
#define AUXFUNCTIONS_H
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "global.h"
FILE * fileOut;
int scope;
char * variable_for;
void setVariableFor(char * variable_for);
char * getVariableFor();
char * mallocNewString(char * new_text);
void incrementScope();
void decrementScope();
void printTabs();
void printBlankSpace();
void printIncludesOfProgram();
void printBeginOfProgram();
void printEndOfProgram();
void printDeclaration(char * type, type_values * value);
void printAtribuition(char * variable, type_values * value);
void printIfDeclaration(char * type);
void printElseDeclaration(char * type);
void printWhileDeclaration(char * type);
void printRepeatDeclaration(char * type);
void printForDeclaration(char * type);
void printForAtribuition(type_values * value);
void printForScope(char * type, type_values * expression);
void printForScopeAux1();
void printForScopeAux2(type_values * expression);
void printCondition(type_values * expression1, type_values * expression2, char * condition);
void printConditionValue(type_values * expression);
void printAndOrCondition(char * type);
void printWriteDeclaration(char * type);
void printWriteDeclarationValues(type_values * expression);
void printReadDeclaration(char * type);
void printComment(char * type, char * comment);
void printCalcStatements(type_values * expression1);
void printEndStatements();
void printClrscrStatements();
void printTypeValues(type_values * type_value);
void printTypeValues1(type_values * type_value);
void printTypeValues2(int type, void * type_value);
char * returnTypeValuesString(type_values * type_value);
int returnTypeValuesInt(type_values * type_value);
double returnTypeValuesDouble(type_values * type_value);
int convertTypeStringToTypeInt(char * type);
char * convertTypeIntToTypeString(int type);
#endif