changed NonTerminalExpression class to be more consistent with the formal definition of RegularExpression.