summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/wordparser/deflex.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tsearch2/wordparser/deflex.c')
-rw-r--r--contrib/tsearch2/wordparser/deflex.c56
1 files changed, 56 insertions, 0 deletions
diff --git a/contrib/tsearch2/wordparser/deflex.c b/contrib/tsearch2/wordparser/deflex.c
new file mode 100644
index 0000000000..ea596c507c
--- /dev/null
+++ b/contrib/tsearch2/wordparser/deflex.c
@@ -0,0 +1,56 @@
+#include "deflex.h"
+
+const char *lex_descr[]={
+ "",
+ "Latin word",
+ "Non-latin word",
+ "Word",
+ "Email",
+ "URL",
+ "Host",
+ "Scientific notation",
+ "VERSION",
+ "Part of hyphenated word",
+ "Non-latin part of hyphenated word",
+ "Latin part of hyphenated word",
+ "Space symbols",
+ "HTML Tag",
+ "HTTP head",
+ "Hyphenated word",
+ "Latin hyphenated word",
+ "Non-latin hyphenated word",
+ "URI",
+ "File or path name",
+ "Decimal notation",
+ "Signed integer",
+ "Unsigned integer",
+ "HTML Entity"
+};
+
+const char *tok_alias[]={
+ "",
+ "lword",
+ "nlword",
+ "word",
+ "email",
+ "url",
+ "host",
+ "sfloat",
+ "version",
+ "part_hword",
+ "nlpart_hword",
+ "lpart_hword",
+ "blank",
+ "tag",
+ "http",
+ "hword",
+ "lhword",
+ "nlhword",
+ "uri",
+ "file",
+ "float",
+ "int",
+ "uint",
+ "entity"
+};
+