Move "[WIP]" out of the main part of the outputted string.

This commit is contained in:
git 2021-02-12 22:33:43 +01:00
parent 0f6f9b0c30
commit 32e55aa035
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -19,11 +19,11 @@ int main(int argc, char* argv[]) {
{
currentArg = ((string) argv[i]);
if (currentArg == "-printresult") printResult = true;
if (currentArg.starts_with("--target=")) target = '.' + currentArg.erase(0, 9);
else if (currentArg.starts_with("--target=")) target = '.' + currentArg.erase(0, 9);
}
const string parsedString = parseString(make_unique<string>(getFileContent(fileName)));
const string transpiledString = transpile(parsedString, target);
if (printResult) cout << "~~~~[Yerbacon compilation result]~~~~\n\n[WIP]\n" << transpiledString << "\n\n";
if (printResult) cout << "~~~~[Yerbacon compilation result]~~~~\n\n" << "[WIP]\n" << transpiledString << "\n\n";
setOutputFileContent(target, fileName.erase(fileName.find(".ybcon")) + target, transpiledString);
}
else cout << "No valid file provided.\n";