From 3bc2ae19959143b0a1b0fa06a8c6590e1f405474 Mon Sep 17 00:00:00 2001 From: xirzo Date: Sun, 18 Jan 2026 13:27:43 +0300 Subject: [PATCH] fix: add spaces to the "command expected at line"'s --- lib/bytecode_parser/scenarios/FunctionParser.cpp | 2 +- lib/bytecode_parser/scenarios/IfParser.cpp | 8 ++++---- lib/bytecode_parser/scenarios/InitStaticParser.cpp | 2 +- lib/bytecode_parser/scenarios/WhileParser.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/bytecode_parser/scenarios/FunctionParser.cpp b/lib/bytecode_parser/scenarios/FunctionParser.cpp index be2a042..ebe73fe 100644 --- a/lib/bytecode_parser/scenarios/FunctionParser.cpp +++ b/lib/bytecode_parser/scenarios/FunctionParser.cpp @@ -104,7 +104,7 @@ std::expected FunctionParser::Handle(ParsingSessionPt return res; } else if (!res.value()) { return std::unexpected( - BytecodeParserError("Command expected at line" + std::to_string(ctx->Current()->GetPosition().GetLine()))); + BytecodeParserError("Command expected at line " + std::to_string(ctx->Current()->GetPosition().GetLine()))); } } diff --git a/lib/bytecode_parser/scenarios/IfParser.cpp b/lib/bytecode_parser/scenarios/IfParser.cpp index 5f8272e..28959ae 100644 --- a/lib/bytecode_parser/scenarios/IfParser.cpp +++ b/lib/bytecode_parser/scenarios/IfParser.cpp @@ -40,7 +40,7 @@ std::expected IfParser::Handle(std::shared_ptrCurrent()->GetPosition().GetLine()))); + BytecodeParserError("Command expected at line " + std::to_string(ctx->Current()->GetPosition().GetLine()))); } } @@ -73,7 +73,7 @@ std::expected IfParser::Handle(std::shared_ptrCurrent()->GetPosition().GetLine()))); + BytecodeParserError("Command expected at line " + std::to_string(ctx->Current()->GetPosition().GetLine()))); } } @@ -107,7 +107,7 @@ std::expected IfParser::Handle(std::shared_ptrCurrent()->GetPosition().GetLine()))); } } @@ -140,7 +140,7 @@ std::expected IfParser::Handle(std::shared_ptrCurrent()->GetPosition().GetLine()))); } } diff --git a/lib/bytecode_parser/scenarios/InitStaticParser.cpp b/lib/bytecode_parser/scenarios/InitStaticParser.cpp index 7aeb7d0..eed7ebd 100644 --- a/lib/bytecode_parser/scenarios/InitStaticParser.cpp +++ b/lib/bytecode_parser/scenarios/InitStaticParser.cpp @@ -38,7 +38,7 @@ std::expected InitStaticParser::Handle(ParsingSession return res; } else if (!res.value()) { return std::unexpected( - BytecodeParserError("Command expected at line" + std::to_string(ctx->Current()->GetPosition().GetLine()))); + BytecodeParserError("Command expected at line " + std::to_string(ctx->Current()->GetPosition().GetLine()))); } } diff --git a/lib/bytecode_parser/scenarios/WhileParser.cpp b/lib/bytecode_parser/scenarios/WhileParser.cpp index c3592bf..da724f6 100644 --- a/lib/bytecode_parser/scenarios/WhileParser.cpp +++ b/lib/bytecode_parser/scenarios/WhileParser.cpp @@ -39,7 +39,7 @@ std::expected WhileParser::Handle(std::shared_ptrSetCurrentBlock(parent_block); return std::unexpected( - BytecodeParserError("Command expected at line" + std::to_string(ctx->Current()->GetPosition().GetLine()))); + BytecodeParserError("Command expected at line " + std::to_string(ctx->Current()->GetPosition().GetLine()))); } } @@ -77,7 +77,7 @@ std::expected WhileParser::Handle(std::shared_ptrSetCurrentBlock(parent_block); return std::unexpected( - BytecodeParserError("Command expected at line" + std::to_string(ctx->Current()->GetPosition().GetLine()))); + BytecodeParserError("Command expected at line " + std::to_string(ctx->Current()->GetPosition().GetLine()))); } }