Some (English) grammatical changes

This commit is contained in:
Thomas Avé 2017-01-27 21:54:43 +01:00
parent a103cb1c9c
commit 4ea2b40922
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ namespace pds {
for(auto& tail_piece : rule->tail) {
if (cnf.grammar.terminals.find(tail_piece) == cnf.grammar.terminals.end() &&
cnf.grammar.variables.find(tail_piece) == cnf.grammar.variables.end())
throw InputParserException("Found '" + tail_piece + "' in rule body while this isn't a variable or terminal");
throw InputParserException("Found '" + tail_piece + "' in rule body, which is neither a variable nor a terminal.");
}
}
@ -47,7 +47,7 @@ namespace pds {
if (found_token) break;
}
if (!found_token)
LOG(WARNING) << "Terminal '" << term << "' is not been used." << std::endl;
LOG(WARNING) << "Terminal '" << term << "' is specified, but never used." << std::endl;
}
return cnf;