@staticmethod
def _precedence(char):
    """
        utility function to find precedence of the specified character
        """
    if char == '+' or char == '-':
        return 1
    elif char == '*' or char == '/':
        return 2
    elif char == '^':
        return 3
    else:
        return -1
