mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-11 01:18:46 +00:00
18 lines
378 B
C++
18 lines
378 B
C++
#include "sources_manager.hpp"
|
|
|
|
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];
|
|
|
|
//
|
|
|
|
SourcesManager sources_manager;
|
|
|
|
sources_manager.add_file(filename);
|
|
sources_manager.print(std::cout);
|
|
}
|