1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package com.allanbank.mongodb.bson.json;
22
23
24
25
26
27
28 interface JsonParserConstants {
29
30
31 int EOF = 0;
32
33 int COMMENT_LINE = 6;
34
35 int COMMENT_BLOCK = 7;
36
37 int TOKEN_TRUE = 8;
38
39 int TOKEN_FALSE = 9;
40
41 int TOKEN_NULL = 10;
42
43 int TOKEN_OPEN_BRACE = 11;
44
45 int TOKEN_CLOSE_BRACE = 12;
46
47 int TOKEN_OPEN_BRACKET = 13;
48
49 int TOKEN_CLOSE_BRACKET = 14;
50
51 int TOKEN_COMMA = 15;
52
53 int TOKEN_COLON = 16;
54
55 int TOKEN_DOT = 17;
56
57 int TOKEN_PLUS = 18;
58
59 int TOKEN_MINUS = 19;
60
61 int DOUBLE = 20;
62
63 int INTEGER = 21;
64
65 int DIGIT = 22;
66
67 int NONZERO_DIGIT = 23;
68
69 int EXP = 24;
70
71 int FRACTIONAL_DIGITS = 25;
72
73 int EXPONENT = 26;
74
75 int DIGITS = 27;
76
77 int STRING_LITERAL = 28;
78
79 int DOUBLE_STRING_CHARACTERS = 29;
80
81 int SINGLE_STRING_CHARACTERS = 30;
82
83 int DOUBLE_STRING_CHARACTER = 31;
84
85 int SINGLE_STRING_CHARACTER = 32;
86
87 int ESCAPE_SEQUENCE = 33;
88
89 int CHARACTER_ESCAPE_SEQUENCE = 34;
90
91 int SINGLE_ESCAPE_CHARACTER = 35;
92
93 int NON_ESCAPE_CHARACTER = 36;
94
95 int HEX_ESCAPE_SEQUENCE = 37;
96
97 int HEX_DIGIT = 38;
98
99 int TOKEN_BINDATA = 39;
100
101 int TOKEN_HEXDATA = 40;
102
103 int TOKEN_ISODATE = 41;
104
105 int TOKEN_NUMBERLONG = 42;
106
107 int TOKEN_OBJECTID = 43;
108
109 int TOKEN_TIMESTAMP = 44;
110
111 int TOKEN_MAXKEY = 45;
112
113 int TOKEN_MINKEY = 46;
114
115 int TOKEN_DB_POINTER = 47;
116
117 int TOKEN_BINARY = 48;
118
119 int TOKEN_TYPE = 49;
120
121 int TOKEN_DATE = 50;
122
123 int TOKEN_TS = 51;
124
125 int TOKEN_REGEX = 52;
126
127 int TOKEN_OPTIONS = 53;
128
129 int TOKEN_OID = 54;
130
131 int TOKEN_MAX = 55;
132
133 int TOKEN_MIN = 56;
134
135 int IDENTIFIER_NAME = 57;
136
137 int IDENTIFIER_START = 58;
138
139 int IDENTIFIER_PART = 59;
140
141 int DOLLAR_SIGN = 60;
142
143 int UNDER_SCORE = 61;
144
145 int UNICODE_LETTER = 62;
146
147 int UNICODE_COMBINING_MARK = 63;
148
149 int MC = 64;
150
151 int MN = 65;
152
153 int UNICODE_DIGIT = 66;
154
155 int UNICODE_CONNECTOR_PUNCTUATION = 67;
156
157 int UNICODE_ESCAPE_SEQUENCE = 68;
158
159
160 int DEFAULT = 0;
161
162
163 String[] tokenImage = {
164 "<EOF>",
165 "\" \"",
166 "\"\\t\"",
167 "\"\\n\"",
168 "\"\\r\"",
169 "\"\\f\"",
170 "<COMMENT_LINE>",
171 "<COMMENT_BLOCK>",
172 "\"true\"",
173 "\"false\"",
174 "\"null\"",
175 "\"{\"",
176 "\"}\"",
177 "\"[\"",
178 "\"]\"",
179 "\",\"",
180 "\":\"",
181 "\".\"",
182 "\"+\"",
183 "\"-\"",
184 "<DOUBLE>",
185 "<INTEGER>",
186 "<DIGIT>",
187 "<NONZERO_DIGIT>",
188 "<EXP>",
189 "<FRACTIONAL_DIGITS>",
190 "<EXPONENT>",
191 "<DIGITS>",
192 "<STRING_LITERAL>",
193 "<DOUBLE_STRING_CHARACTERS>",
194 "<SINGLE_STRING_CHARACTERS>",
195 "<DOUBLE_STRING_CHARACTER>",
196 "<SINGLE_STRING_CHARACTER>",
197 "<ESCAPE_SEQUENCE>",
198 "<CHARACTER_ESCAPE_SEQUENCE>",
199 "<SINGLE_ESCAPE_CHARACTER>",
200 "<NON_ESCAPE_CHARACTER>",
201 "<HEX_ESCAPE_SEQUENCE>",
202 "<HEX_DIGIT>",
203 "\"BinData\"",
204 "\"HexData\"",
205 "\"ISODate\"",
206 "\"NumberLong\"",
207 "\"ObjectId\"",
208 "\"Timestamp\"",
209 "\"MaxKey\"",
210 "\"MinKey\"",
211 "\"DBPointer\"",
212 "<TOKEN_BINARY>",
213 "<TOKEN_TYPE>",
214 "<TOKEN_DATE>",
215 "<TOKEN_TS>",
216 "<TOKEN_REGEX>",
217 "<TOKEN_OPTIONS>",
218 "<TOKEN_OID>",
219 "<TOKEN_MAX>",
220 "<TOKEN_MIN>",
221 "<IDENTIFIER_NAME>",
222 "<IDENTIFIER_START>",
223 "<IDENTIFIER_PART>",
224 "\"$\"",
225 "\"_\"",
226 "<UNICODE_LETTER>",
227 "<UNICODE_COMBINING_MARK>",
228 "<MC>",
229 "<MN>",
230 "<UNICODE_DIGIT>",
231 "<UNICODE_CONNECTOR_PUNCTUATION>",
232 "<UNICODE_ESCAPE_SEQUENCE>",
233 "\"(\"",
234 "\")\"",
235 };
236
237 }