-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFuncsTest.cpp
More file actions
53 lines (43 loc) · 1.14 KB
/
FuncsTest.cpp
File metadata and controls
53 lines (43 loc) · 1.14 KB
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
//#define FuncsTest
#ifdef FuncsTest
#include <cstdio>
#include <bits/stdc++.h>
#include "Tokenizer.h"
#include "VarManager.h"
#include "OperatorsDefine.h"
#include "Operator.h"
#include "Analyze.h"
#include "BuildinFuncDefine.h"
#include "FuncManager.h"
int main() {
Tokenizer tokenizer;
VarManager globalVars;
VarManager localVars;
OperatorManager operators;
FuncManager funcs;
funcs.load_buildinFuncs(buildinFuncsList);
operators.add_operator(operatorsInitList);
//operators.printAllInfo();
tokenizer.load_map_data(operators.make_keywordsList());
/*
FILE* InputStr;
freopen_s(&InputStr, "VarsTest_InputStr.txt", "r", stdin);
//*/
ifstream InputStr;
InputStr.open("FuncsTest_InputStr.txt");
std::string str;
std::string str_all;
while (str != "EOF") {
getline(InputStr, str);
//calculate(str, operators, tokenizer, funcs, globalVars, localVars);
//std::cout << str << std::endl;
str_all += str;
//analyze(str, operators, tokenizer, funcs, globalVars, globalVars);
//funcs.printAllInfo();
//std::cout << std::endl;
}
analyze(str_all, operators, tokenizer, funcs, globalVars, globalVars);
std::cin.clear();
return 0;
}
#endif