Move "[WIP]" out of the main part of the outputted string.
This commit is contained in:
parent
0f6f9b0c30
commit
32e55aa035
|
@ -19,11 +19,11 @@ int main(int argc, char* argv[]) {
|
||||||
{
|
{
|
||||||
currentArg = ((string) argv[i]);
|
currentArg = ((string) argv[i]);
|
||||||
if (currentArg == "-printresult") printResult = true;
|
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 parsedString = parseString(make_unique<string>(getFileContent(fileName)));
|
||||||
const string transpiledString = transpile(parsedString, target);
|
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);
|
setOutputFileContent(target, fileName.erase(fileName.find(".ybcon")) + target, transpiledString);
|
||||||
}
|
}
|
||||||
else cout << "No valid file provided.\n";
|
else cout << "No valid file provided.\n";
|
||||||
|
|
Loading…
Reference in New Issue