mirror of
https://github.com/jorenchik/mdemory.git
synced 2026-03-22 00:26:21 +00:00
error if sequence question contains duplicates
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user