Some (English) grammatical changes
This commit is contained in:
parent
a103cb1c9c
commit
4ea2b40922
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue