
- supports multibyte encodings - more strict rules for lexemes - flex isn't used Add: - tsquery plainto_tsquery(text) Function makes tsquery from plain text. - &&, ||, !! operation for tsquery for combining tsquery from it's parts: 'foo & bar' || 'asd' => 'foo & bar | asd'
35 lines
639 B
C
35 lines
639 B
C
#ifndef __DEFLEX_H__
|
|
#define __DEFLEX_H__
|
|
|
|
/* rememder !!!! */
|
|
#define LASTNUM 23
|
|
|
|
#define LATWORD 1
|
|
#define CYRWORD 2
|
|
#define UWORD 3
|
|
#define EMAIL 4
|
|
#define FURL 5
|
|
#define HOST 6
|
|
#define SCIENTIFIC 7
|
|
#define VERSIONNUMBER 8
|
|
#define PARTHYPHENWORD 9
|
|
#define CYRPARTHYPHENWORD 10
|
|
#define LATPARTHYPHENWORD 11
|
|
#define SPACE 12
|
|
#define TAG 13
|
|
#define PROTOCOL 14
|
|
#define HYPHENWORD 15
|
|
#define LATHYPHENWORD 16
|
|
#define CYRHYPHENWORD 17
|
|
#define URI 18
|
|
#define FILEPATH 19
|
|
#define DECIMAL 20
|
|
#define SIGNEDINT 21
|
|
#define UNSIGNEDINT 22
|
|
#define HTMLENTITY 23
|
|
|
|
extern const char *lex_descr[];
|
|
extern const char *tok_alias[];
|
|
|
|
#endif
|