(p)
simple_base_type : BOOL
                        | BYTE
                        | I16
                        | I32
                        | I64
                        | DOUBLE
                        | STRING
                        | BINARY
simple_base_type : BOOL
                        | BYTE
                        | I16
                        | I32
                        | I64
                        | DOUBLE
                        | STRING
                        | BINARY
simple_base_type : BOOL | BYTE | I16 | I32 | I64 | DOUBLE | STRING | BINARY
def p_simple_base_type(p):  # noqa
    '''simple_base_type : BOOL
                        | BYTE
                        | I16
                        | I32
                        | I64
                        | DOUBLE
                        | STRING
                        | BINARY'''
    if p[1] == 'bool':
        p[0] = TType.BOOL
    if p[1] == 'byte':
        p[0] = TType.BYTE
    if p[1] == 'i16':
        p[0] = TType.I16
    if p[1] == 'i32':
        p[0] = TType.I32
    if p[1] == 'i64':
        p[0] = TType.I64
    if p[1] == 'double':
        p[0] = TType.DOUBLE
    if p[1] == 'string':
        p[0] = TType.STRING
    if p[1] == 'binary':
        p[0] = TType.BINARY
def p_simple_base_type ( p ) : # noqa if p [ 1 ] == 'bool' : p [ 0 ] = TType . BOOL if p [ 1 ] == 'byte' : p [ 0 ] = TType . BYTE if p [ 1 ] == 'i16' : p [ 0 ] = TType . I16 if p [ 1 ] == 'i32' : p [ 0 ] = TType . I32 if p [ 1 ] == 'i64' : p [ 0 ] = TType . I64 if p [ 1 ] == 'double' : p [ 0 ] = TType . DOUBLE if p [ 1 ] == 'string' : p [ 0 ] = TType . STRING if p [ 1 ] == 'binary' : p [ 0 ] = TType . BINARY