// stack.push(new Grammar());
grammar = (Grammar) stack.pop();
}
else if (localName.equals(TOKENLIST_ELEMENT))
{
TokenList tokens = (TokenList) stack.pop();
Grammar grammar = (Grammar) stack.peek();
grammar.getTokenList().addToken(tokens);
}
else if (localName.equals(IGNORABLETOKENLIST_ELEMENT))
{
TokenList tokens = (TokenList) stack.pop();
Grammar grammar = (Grammar) stack.peek();
grammar.getIgnorableTokenList().addToken(tokens);
}
else if (localName.equals(TOKEN_ELEMENT))
{
Token token = (Token) stack.pop();
TokenList tokens = (TokenList) stack.peek();
tokens.addToken(token);
}
else if ((localName.equals(ALTERNATION_ELEMENT))
|| (localName.equals(CONCATENATION_ELEMENT))
|| (localName.equals(CHARACTERSEQUENCE_ELEMENT))
|| (localName.equals(CHARACTERCLASS_ELEMENT))