//---------------------------------------------------------------------
 public void Validate()
 {
     if (_paranthesisStack.Count > 0)
     {
         Paranthesis paranthesis = _paranthesisStack.Pop();
         throw ParsingException.ParanthesisNotMatched(paranthesis);
     }
 }