Look for non existing terminals in precedence rules
This commit is contained in:
parent
aecc191937
commit
b3cbd2d499
|
@ -74,7 +74,6 @@ namespace pds {
|
||||||
|
|
||||||
// Check if all terminals in precedence rules, are terminals
|
// Check if all terminals in precedence rules, are terminals
|
||||||
for(auto& prec : cnf.grammar.precedence)
|
for(auto& prec : cnf.grammar.precedence)
|
||||||
|
|
||||||
if (cnf.grammar.terminals.find(prec.first) == cnf.grammar.terminals.end())
|
if (cnf.grammar.terminals.find(prec.first) == cnf.grammar.terminals.end())
|
||||||
throw InputParserException("Found \"" + prec.first + "\" in precedence, which is no terminal.");
|
throw InputParserException("Found \"" + prec.first + "\" in precedence, which is no terminal.");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue