added comment handling in CommandParser
This commit is contained in:
@@ -19,8 +19,11 @@ std::vector<std::string> CommandParser::parseLine(const std::string &input) {
|
||||
do {
|
||||
/// Trenne den IStringStream bei jedem Leerzeichen und füge die Befehl(e)/-sargumente dem Output hinzu
|
||||
std::getline(iss, out, ' ');
|
||||
/// Stoppe, sobald ein Kommentar im Source Code vorkommt
|
||||
if (out.at(0) != '#') {
|
||||
output.push_back(out);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
} while (!out.empty());
|
||||
return output;
|
||||
|
||||
Reference in New Issue
Block a user