grammar.getProductionList().addProduction(productions);
}
else if (localName.equals(PRODUCTION_ELEMENT))
{
Production production = (Production) stack.pop();
ProductionList productions = (ProductionList) stack.peek();
productions.addProduction(production);
}
else if (localName.equals(NONTERMINALSYMBOL_ELEMENT))
{
Symbol ntsymbol = (Symbol) stack.pop();
Production production = (Production) stack.peek();
production.getDefinition().addSymbol(ntsymbol);
}
else if (localName.equals(TERMINALSYMBOL_ELEMENT))
{
Symbol tsymbol = (Symbol) stack.pop();
Production production = (Production) stack.peek();
production.getDefinition().addSymbol(tsymbol);
}
else if (localName.equals(STARTSYMBOL_ELEMENT))
{
NonTerminalSymbol ssymbol = (NonTerminalSymbol) stack.pop();
Grammar grammar = (Grammar) stack.peek();