Look for non existing terminals in precedence rules

This commit is contained in:
kwullaer 2017-01-29 02:28:45 +01:00
parent aecc191937
commit b3cbd2d499
1 changed files with 0 additions and 1 deletions

View File

@ -74,7 +74,6 @@ namespace pds {
// Check if all terminals in precedence rules, are terminals
for(auto& prec : cnf.grammar.precedence)
if (cnf.grammar.terminals.find(prec.first) == cnf.grammar.terminals.end())
throw InputParserException("Found \"" + prec.first + "\" in precedence, which is no terminal.");