Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
QueryParserConstants.cs
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 /* Generated By:JavaCC: Do not edit this line. QueryParserConstants.java */
19 
20 using System;
21 
22 namespace Lucene.Net.QueryParsers
23 {
24 
25 
26  /// <summary> Token literal values and constants.
27  /// Generated by org.javacc.parser.OtherFilesGen#start()
28  /// </summary>
29  public class QueryParserConstants
30  {
31  /// <summary>End of File. </summary>
32  protected internal const int EndOfFileToken = 0;
33  /// <summary>RegularExpression Id. </summary>
34  protected internal const int NumCharToken = 1;
35  /// <summary>RegularExpression Id. </summary>
36  protected internal const int EscapedCharToken = 2;
37  /// <summary>RegularExpression Id. </summary>
38  protected internal const int TermStartCharToken = 3;
39  /// <summary>RegularExpression Id. </summary>
40  protected internal const int TermCharToken = 4;
41  /// <summary>RegularExpression Id. </summary>
42  protected internal const int WhitespaceToken = 5;
43  /// <summary>RegularExpression Id. </summary>
44  protected internal const int QuotedCharToken = 6;
45  /// <summary>RegularExpression Id. </summary>
46  protected internal const int AndToken = 8;
47  /// <summary>RegularExpression Id. </summary>
48  protected internal const int OrToken = 9;
49  /// <summary>RegularExpression Id. </summary>
50  protected internal const int NotToken = 10;
51  /// <summary>RegularExpression Id. </summary>
52  protected internal const int PlusToken = 11;
53  /// <summary>RegularExpression Id. </summary>
54  protected internal const int MinusToken = 12;
55  /// <summary>RegularExpression Id. </summary>
56  protected internal const int LParanToken = 13;
57  /// <summary>RegularExpression Id. </summary>
58  protected internal const int RParenToken = 14;
59  /// <summary>RegularExpression Id. </summary>
60  protected internal const int ColonToken = 15;
61  /// <summary>RegularExpression Id. </summary>
62  protected internal const int StarToken = 16;
63  /// <summary>RegularExpression Id. </summary>
64  protected internal const int CaratToken = 17;
65  /// <summary>RegularExpression Id. </summary>
66  protected internal const int QuotedToken = 18;
67  /// <summary>RegularExpression Id. </summary>
68  protected internal const int TermToken = 19;
69  /// <summary>RegularExpression Id. </summary>
70  protected internal const int FuzzySlopToken = 20;
71  /// <summary>RegularExpression Id. </summary>
72  protected internal const int PrefixTermToken = 21;
73  /// <summary>RegularExpression Id. </summary>
74  protected internal const int WildTermToken = 22;
75  /// <summary>RegularExpression Id. </summary>
76  protected internal const int RangeInStartToken = 23;
77  /// <summary>RegularExpression Id. </summary>
78  protected internal const int RangeExStartToken = 24;
79  /// <summary>RegularExpression Id. </summary>
80  protected internal const int NumberToken = 25;
81  /// <summary>RegularExpression Id. </summary>
82  protected internal const int RangeInToToken = 26;
83  /// <summary>RegularExpression Id. </summary>
84  protected internal const int RangeInEndToken = 27;
85  /// <summary>RegularExpression Id. </summary>
86  protected internal const int RangeInQuotedToken = 28;
87  /// <summary>RegularExpression Id. </summary>
88  protected internal const int RangeInGoopToken = 29;
89  /// <summary>RegularExpression Id. </summary>
90  protected internal const int RangeExToToken = 30;
91  /// <summary>RegularExpression Id. </summary>
92  protected internal const int RangeExEndToken = 31;
93  /// <summary>RegularExpression Id. </summary>
94  protected internal const int RangeExQuotedToken = 32;
95  /// <summary>RegularExpression Id. </summary>
96  protected internal const int RangeExGoopToken = 33;
97  /// <summary>Lexical state. </summary>
98  protected internal const int BoostToken = 0;
99  /// <summary>Lexical state. </summary>
100  protected const int RangeExToken = 1;
101  /// <summary>Lexical state. </summary>
102  protected internal const int RangeInToken = 2;
103  /// <summary>Lexical state. </summary>
104  protected internal const int DefaultToken = 3;
105  /// <summary>Literal token values. </summary>
106  protected internal static System.String[] tokenImage = new System.String[] {
107  "<EOF>",
108  "<_NUM_CHAR>",
109  "<_ESCAPED_CHAR>",
110  "<_TERM_START_CHAR>",
111  "<_TERM_CHAR>",
112  "<_WHITESPACE>",
113  "<_QUOTED_CHAR>",
114  "<token of kind 7>",
115  "<AND>",
116  "<OR>",
117  "<NOT>",
118  "\"+\"",
119  "\"-\"",
120  "\"(\"",
121  "\")\"",
122  "\":\"",
123  "\"*\"",
124  "\"^\"",
125  "<QUOTED>",
126  "<TERM>",
127  "<FUZZY_SLOP>",
128  "<PREFIXTERM>",
129  "<WILDTERM>",
130  "\"[\"",
131  "\"{\"",
132  "<NUMBER>",
133  "\"TO\"",
134  "\"]\"",
135  "<RANGEIN_QUOTED>",
136  "<RANGEIN_GOOP>",
137  "\"TO\"",
138  "\"}\"",
139  "<RANGEEX_QUOTED>",
140  "<RANGEEX_GOOP>"
141  };
142  }
143 }