def p_enum(p):
 val = _make_enum(p[2], p[4])
 setattr(thrift_stack[(-1)], p[2], val)
 _add_thrift_meta('enums', val)

def p_enum ( p ) : val = _make_enum ( p [ 2 ] , p [ 4 ] ) setattr ( thrift_stack [ ( - 1 ) ] , p [ 2 ] , val ) _add_thrift_meta ( 'enums' , val )
enum : enum identifier { enum_seq } .