(p)
enum : ENUM IDENTIFIER '{' enum_seq '}' type_annotations
enum : ENUM IDENTIFIER '{' enum_seq '}' type_annotations
enum : ENUM IDENTIFIER { enum_seq } type_annotations
def p_enum(p):  # noqa
    '''enum : ENUM IDENTIFIER '{' enum_seq '}' type_annotations'''
    val = _make_enum(p[2], p[4])
    setattr(thrift_stack[-1], p[2], val)
    _add_thrift_meta('enums', val)
def p_enum ( p ) : # noqa val = _make_enum ( p [ 2 ] , p [ 4 ] ) setattr ( thrift_stack [ - 1 ] , p [ 2 ] , val ) _add_thrift_meta ( 'enums' , val )