undefined.cc 309 Bytes
Newer Older
1 2 3 4 5
#include "nonterminal.ih"

void NonTerminal::undefined(NonTerminal const *nonTerminal) 
{
    if (nonTerminal->isUsed() && !nonTerminal->nProductions())
6 7
    {
        s_undefined = true;
8 9
        emsg << "No production rules for non-terminal `" <<
                 nonTerminal->name() << '\'' << endl;
10
    }
11
}