AALanguage
The best language for those who have nothing to do
Loading...
Searching...
No Matches
Source.cpp
Go to the documentation of this file.
1#include <iostream>
2#include "Analyzer.h"
3
5#define TESTING_MODE
6
21int main(int argc, char* argv[]) {
22 std::string path, lib_path;
23#ifndef TESTING_MODE
24 if (argc == 2 || argc == 3) {
25 path = argv[1];
26 if (path[0] == '\"') {
27 path = path.substr(1, path.size() - 2);
28 }
29 if (argc == 3) {
30 lib_path = argv[2];
31 if (lib_path[0] == '\"') {
32 lib_path = lib_path.substr(1, lib_path.size() - 2);
33 }
34 }
35 } else {
36 std::cout << "Incorrect AA-arguments (2 or 3 are needed)";
37 }
38#endif // !TESTING_MODE
39#ifdef TESTING_MODE
40 path = "C:\\test.prog";
41 lib_path = "E:\\Github\\AALanguage\\lib";
42#endif // TESTING_MODE
43
44 Analyzer analyzer;
45 analyzer.execute(path, lib_path);
46}