@staticmethod
def p_brackets_list(symbols):
    """brackets_list : brackets brackets_list
                         | empty
        """
    if len(symbols) == 3:
        symbols[0] = symbols[2]
        symbols[0].insert(0, symbols[1])
    else:
        symbols[0] = []
