Initial revision
[beagle.git] / Lucene.Net / QueryParser / QueryParserConstants.cs
blob71db05c5d98dd3e010a81ce81f00d4da6898a128
1 using System;
3 namespace Lucene.Net.QueryParsers
5 public class QueryParserConstants
7 public const int EOF = 0;
8 public const int _NUM_CHAR = 1;
9 public const int _ESCAPED_CHAR = 2;
10 public const int _TERM_START_CHAR = 3;
11 public const int _TERM_CHAR = 4;
12 public const int _WHITESPACE = 5;
13 public const int AND = 7;
14 public const int OR = 8;
15 public const int NOT = 9;
16 public const int PLUS = 10;
17 public const int MINUS = 11;
18 public const int LPAREN = 12;
19 public const int RPAREN = 13;
20 public const int COLON = 14;
21 public const int CARAT = 15;
22 public const int QUOTED = 16;
23 public const int TERM = 17;
24 public const int FUZZY = 18;
25 public const int SLOP = 19;
26 public const int PREFIXTERM = 20;
27 public const int WILDTERM = 21;
28 public const int RANGEIN_START = 22;
29 public const int RANGEEX_START = 23;
30 public const int NUMBER = 24;
31 public const int RANGEIN_TO = 25;
32 public const int RANGEIN_END = 26;
33 public const int RANGEIN_QUOTED = 27;
34 public const int RANGEIN_GOOP = 28;
35 public const int RANGEEX_TO = 29;
36 public const int RANGEEX_END = 30;
37 public const int RANGEEX_QUOTED = 31;
38 public const int RANGEEX_GOOP = 32;
40 public const int Boost = 0;
41 public const int RangeEx = 1;
42 public const int RangeIn = 2;
43 public const int DEFAULT = 3;
45 public readonly String[] tokenImage = new String[] {
46 "<EOF>",
47 "<_NUM_CHAR>",
48 "<_ESCAPED_CHAR>",
49 "<_TERM_START_CHAR>",
50 "<_TERM_CHAR>",
51 "<_WHITESPACE>",
52 "<token of kind 6>",
53 "<AND>",
54 "<OR>",
55 "<NOT>",
56 "\"+\"",
57 "\"-\"",
58 "\"(\"",
59 "\")\"",
60 "\":\"",
61 "\"^\"",
62 "<QUOTED>",
63 "<TERM>",
64 "\"~\"",
65 "<SLOP>",
66 "<PREFIXTERM>",
67 "<WILDTERM>",
68 "\"[\"",
69 "\"{\"",
70 "<NUMBER>",
71 "\"TO\"",
72 "\"]\"",
73 "<RANGEIN_QUOTED>",
74 "<RANGEIN_GOOP>",
75 "\"TO\"",
76 "\"}\"",
77 "<RANGEEX_QUOTED>",
78 "<RANGEEX_GOOP>",