(t)
return t
r'[a-zA-Z_](\.[a-zA-Z_0-9]|[a-zA-Z_0-9])*
r'[a-zA-Z_](\.[a-zA-Z_0-9]|[a-zA-Z_0-9])*
r [ a - zA - Z_ ] ( \ . [ a - zA - Z_0 - 9 ] | [ a - zA - Z_0 - 9 ] ) *
def t_IDENTIFIER(t):
    r'[a-zA-Z_](\.[a-zA-Z_0-9]|[a-zA-Z_0-9])*'

    if t.value in keywords:
        t.type = t.value.upper()
        return t
    if t.value in thrift_reserved_keywords:
        raise ThriftLexerError('Cannot use reserved language keyword: %r'
                               ' at line %d' % (t.value, t.lineno))
    return t
def t_IDENTIFIER ( t ) : if t . value in keywords : t . type = t . value . upper ( ) return t if t . value in thrift_reserved_keywords : raise ThriftLexerError ( 'Cannot use reserved language keyword: %r' ' at line %d' % ( t . value , t . lineno ) ) return t