lang/src/main.cpp

19 lines
378 B
C++
Raw Normal View History

2023-08-02 17:54:39 +03:00
#include "sources_manager.hpp"
2023-07-23 19:40:27 +03:00
int main(int argc, char **argv) {
if (argc < 2 || argc > 2) {
std::cout << "Wrong argument count (one argument should be provided - "
"source file)\n";
return 0;
}
std::string filename = argv[1];
2023-08-02 17:54:39 +03:00
//
2023-07-23 19:40:27 +03:00
2023-08-02 17:54:39 +03:00
SourcesManager sources_manager;
2023-07-26 14:21:33 +03:00
2023-08-02 17:54:39 +03:00
sources_manager.add_file(filename);
sources_manager.print(std::cout);
2023-07-16 20:55:07 +03:00
}