def p_or_test(p):
    """ or_test : and_test
                 | or_test OR and_test
                 | or_test BADOR and_test"""
    if len(p) == 2:
        p[0] = p[1]
    else:
        p[0] = ['MATHOP', 'or', p[1], p[3]]
