error if sequence question contains duplicates

This commit is contained in:
jorenchik
2024-11-03 11:54:35 +02:00
parent 73c37659cb
commit 217eebcefc
2 changed files with 28 additions and 9 deletions

View File

@@ -99,7 +99,7 @@ Result<ParseInfo> transpile(std::string fileContent) {
return {
{},
std::format(
"Lexical analysis error: {}",
"Leksiskās analīzes kļūda: {}",
lexRes.error
),
lexRes.row,
@@ -112,10 +112,7 @@ Result<ParseInfo> transpile(std::string fileContent) {
if (parseRes.error.length() > 0) {
return {
{},
std::format(
"Parsing error: {}",
parseRes.error
),
parseRes.error,
parseRes.row,
parseRes.column
};
@@ -123,7 +120,7 @@ Result<ParseInfo> transpile(std::string fileContent) {
end = std::chrono::high_resolution_clock::now();
if (showTimes) {
std::cout << showTime("Transpilation time") << std::endl;
std::cout << showTime("Transpilācijas laiks") << std::endl;
}
return {questions};
}