def p_enum_item(p):
    """enum_item : IDENTIFIER '=' INTCONSTANT
                 | IDENTIFIER
                 |"""
    if len(p) == 4:
        p[0] = [p[1], p[3]]
    elif len(p) == 2:
        p[0] = [p[1], None]
