-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.cpp
More file actions
33 lines (23 loc) · 1.06 KB
/
make.cpp
File metadata and controls
33 lines (23 loc) · 1.06 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
#include <stdlib.h>
#include <string.h>
// #include "./CheckFile.h"
// const char DATABASE_FILENAME_DEFAULT[] = "./Expression.txt";
// const char* DATABASE_FILENAME = nullptr;
int main() //const int argc, const char** argv
{
// if (!CheckFile(argc, argv, &DATABASE_FILENAME))
// DATABASE_FILENAME = DATABASE_FILENAME_DEFAULT;
// -fsanitize=leak
// -pedantic
// -Wall -fsanitize=leak -O0
// ./Differentiation.cpp
// system("g++ -g -fsanitize=address ./main.cpp ./Stack/Stack.cpp ./Stack/Log.cpp ./Tree.cpp ./TreeDump.cpp ./FrontEnd/SyntaxAnalyzator.cpp ./FrontEnd/LexicalAnalyzator.cpp ./BackEnd.cpp -o main");
// system("cd ./Processor;"
// "./make;"
// "cd ../");
system("g++ -g -fsanitize=address ./main.cpp ./Stack/Stack.cpp ./Stack/Log.cpp ./Tree/Tree.cpp ./Tree/TreeDump.cpp ./FrontEnd/LexicalAnalyzator.cpp ./FrontEnd/SyntaxAnalyzator.cpp ./FrontEnd/VarTable.cpp ./BackEnd/BackEnd.cpp -o main");
char cmd[100] = "./main";
// strcat(cmd, DATABASE_FILENAME);
system(cmd);
return 1;
}