diff --git a/foxlang b/foxlang index b943f78..0fc32b9 100755 Binary files a/foxlang and b/foxlang differ diff --git a/src/main.cpp b/src/main.cpp index 35a0b11..1279f6b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,7 +10,7 @@ int main(int argc, char* argv[]) { return 1; } - // 1. Читаем файл + //Читаем файл std::ifstream file(argv[1]); if (!file.is_open()) { std::cerr << "Error: Could not open file " << argv[1] << std::endl; @@ -21,16 +21,16 @@ int main(int argc, char* argv[]) { buffer << file.rdbuf(); std::string code = buffer.str(); - // 2. Запускаем конвейер + //Запускаем конвейер Lexer lexer(code); std::vector tokens = lexer.tokenize(); Parser parser(tokens); - - // ВАЖНО: Передаем имя файла, чтобы парсер знал, где он находится - parser.currentFile = argv[1]; + + //Передаем имя файла, чтобы парсер знал, где он находится + parser.currentFile = argv[1]; parser.run(); return 0; -} \ No newline at end of file +}