def p_schema_type_element(p):
    """schema_type_element : TYPE ID schema_type_element_def
                           | TYPE ID IMPLEMENTS ID schema_type_element_def
    """
    if len(p) == 6:
        p[0] = 'TYPE', p[2], p[4], p[5]
    else:
        p[0] = 'TYPE', p[2], None, p[3]
