(empty log message)
@@ -1,1631 +1,1635 @@ | ||
1 | -/* Generated By:JavaCC: Do not edit this line. AlinousScriptParserTokenManager.java */ | |
2 | -package org.alinous.parser.script; | |
3 | - | |
4 | -public class AlinousScriptParserTokenManager implements AlinousScriptParserConstants | |
5 | -{ | |
6 | - public java.io.PrintStream debugStream = System.out; | |
7 | - public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; } | |
8 | -private final int jjStopAtPos(int pos, int kind) | |
9 | -{ | |
10 | - jjmatchedKind = kind; | |
11 | - jjmatchedPos = pos; | |
12 | - return pos + 1; | |
13 | -} | |
14 | -private final int jjMoveStringLiteralDfa0_4() | |
15 | -{ | |
16 | - switch(curChar) | |
17 | - { | |
18 | - case 10: | |
19 | - return jjStopAtPos(0, 107); | |
20 | - default : | |
21 | - return 1; | |
22 | - } | |
23 | -} | |
24 | -private final int jjMoveStringLiteralDfa0_0() | |
25 | -{ | |
26 | - switch(curChar) | |
27 | - { | |
28 | - case 9: | |
29 | - jjmatchedKind = 2; | |
30 | - return jjMoveNfa_0(0, 0); | |
31 | - case 10: | |
32 | - jjmatchedKind = 3; | |
33 | - return jjMoveNfa_0(0, 0); | |
34 | - case 13: | |
35 | - jjmatchedKind = 4; | |
36 | - return jjMoveNfa_0(0, 0); | |
37 | - case 32: | |
38 | - jjmatchedKind = 1; | |
39 | - return jjMoveNfa_0(0, 0); | |
40 | - case 33: | |
41 | - jjmatchedKind = 40; | |
42 | - return jjMoveStringLiteralDfa1_0(0x800000000L, 0x0L); | |
43 | - case 34: | |
44 | - jjmatchedKind = 103; | |
45 | - return jjMoveNfa_0(0, 0); | |
46 | - case 36: | |
47 | - jjmatchedKind = 26; | |
48 | - return jjMoveNfa_0(0, 0); | |
49 | - case 37: | |
50 | - jjmatchedKind = 17; | |
51 | - return jjMoveNfa_0(0, 0); | |
52 | - case 38: | |
53 | - jjmatchedKind = 20; | |
54 | - return jjMoveStringLiteralDfa1_0(0x40000L, 0x0L); | |
55 | - case 39: | |
56 | - jjmatchedKind = 104; | |
57 | - return jjMoveNfa_0(0, 0); | |
58 | - case 40: | |
59 | - jjmatchedKind = 22; | |
60 | - return jjMoveNfa_0(0, 0); | |
61 | - case 41: | |
62 | - jjmatchedKind = 23; | |
63 | - return jjMoveNfa_0(0, 0); | |
64 | - case 42: | |
65 | - jjmatchedKind = 11; | |
66 | - return jjMoveNfa_0(0, 0); | |
67 | - case 43: | |
68 | - jjmatchedKind = 13; | |
69 | - return jjMoveStringLiteralDfa1_0(0x1000L, 0x0L); | |
70 | - case 44: | |
71 | - jjmatchedKind = 28; | |
72 | - return jjMoveNfa_0(0, 0); | |
73 | - case 45: | |
74 | - jjmatchedKind = 15; | |
75 | - return jjMoveStringLiteralDfa1_0(0x4000L, 0x0L); | |
76 | - case 46: | |
77 | - jjmatchedKind = 27; | |
78 | - return jjMoveNfa_0(0, 0); | |
79 | - case 47: | |
80 | - jjmatchedKind = 16; | |
81 | - return jjMoveStringLiteralDfa1_0(0x0L, 0x60000000000L); | |
82 | - case 59: | |
83 | - jjmatchedKind = 9; | |
84 | - return jjMoveNfa_0(0, 0); | |
85 | - case 60: | |
86 | - jjmatchedKind = 38; | |
87 | - return jjMoveStringLiteralDfa1_0(0x8008020000000L, 0x0L); | |
88 | - case 61: | |
89 | - jjmatchedKind = 10; | |
90 | - return jjMoveStringLiteralDfa1_0(0x400000000L, 0x0L); | |
91 | - case 62: | |
92 | - jjmatchedKind = 36; | |
93 | - return jjMoveStringLiteralDfa1_0(0x2000000000L, 0x0L); | |
94 | - case 64: | |
95 | - jjmatchedKind = 31; | |
96 | - return jjMoveStringLiteralDfa1_0(0x40000000L, 0x0L); | |
97 | - case 65: | |
98 | - return jjMoveStringLiteralDfa1_0(0x2000000000000L, 0xc00410L); | |
99 | - case 66: | |
100 | - return jjMoveStringLiteralDfa1_0(0x0L, 0x404050002L); | |
101 | - case 67: | |
102 | - return jjMoveStringLiteralDfa1_0(0x800000000000000L, 0x800080000L); | |
103 | - case 68: | |
104 | - return jjMoveStringLiteralDfa1_0(0x100000000000L, 0x100000820L); | |
105 | - case 69: | |
106 | - return jjMoveStringLiteralDfa1_0(0x8000000000000000L, 0x100000L); | |
107 | - case 70: | |
108 | - return jjMoveStringLiteralDfa1_0(0x200400000000000L, 0x212000000L); | |
109 | - case 71: | |
110 | - return jjMoveStringLiteralDfa1_0(0x0L, 0x1L); | |
111 | - case 72: | |
112 | - return jjMoveStringLiteralDfa1_0(0x0L, 0x4L); | |
113 | - case 73: | |
114 | - return jjMoveStringLiteralDfa1_0(0x4080240000000000L, 0x28000L); | |
115 | - case 74: | |
116 | - return jjMoveStringLiteralDfa1_0(0x400000000000000L, 0x0L); | |
117 | - case 76: | |
118 | - return jjMoveStringLiteralDfa1_0(0x14000000000000L, 0x40L); | |
119 | - case 78: | |
120 | - return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x8002200L); | |
121 | - case 79: | |
122 | - return jjMoveStringLiteralDfa1_0(0x101000000000000L, 0x4188L); | |
123 | - case 82: | |
124 | - return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x20200000L); | |
125 | - case 83: | |
126 | - return jjMoveStringLiteralDfa1_0(0x1000020000000000L, 0x1000L); | |
127 | - case 84: | |
128 | - return jjMoveStringLiteralDfa1_0(0x0L, 0x1000000L); | |
129 | - case 85: | |
130 | - return jjMoveStringLiteralDfa1_0(0x80000000000L, 0x40000000L); | |
131 | - case 86: | |
132 | - return jjMoveStringLiteralDfa1_0(0x2000000000000000L, 0x0L); | |
133 | - case 87: | |
134 | - return jjMoveStringLiteralDfa1_0(0x800000000000L, 0x80000000L); | |
135 | - case 91: | |
136 | - jjmatchedKind = 24; | |
137 | - return jjMoveNfa_0(0, 0); | |
138 | - case 93: | |
139 | - jjmatchedKind = 25; | |
140 | - return jjMoveNfa_0(0, 0); | |
141 | - case 97: | |
142 | - return jjMoveStringLiteralDfa1_0(0x2000000000000L, 0xc00410L); | |
143 | - case 98: | |
144 | - return jjMoveStringLiteralDfa1_0(0x0L, 0x404050002L); | |
145 | - case 99: | |
146 | - return jjMoveStringLiteralDfa1_0(0x800000000000000L, 0x800080000L); | |
147 | - case 100: | |
148 | - return jjMoveStringLiteralDfa1_0(0x100000000000L, 0x100000820L); | |
149 | - case 101: | |
150 | - return jjMoveStringLiteralDfa1_0(0x8000000000000000L, 0x100000L); | |
151 | - case 102: | |
152 | - return jjMoveStringLiteralDfa1_0(0x200400000000000L, 0x212000000L); | |
153 | - case 103: | |
154 | - return jjMoveStringLiteralDfa1_0(0x0L, 0x1L); | |
155 | - case 104: | |
156 | - return jjMoveStringLiteralDfa1_0(0x0L, 0x4L); | |
157 | - case 105: | |
158 | - return jjMoveStringLiteralDfa1_0(0x4080240000000000L, 0x28000L); | |
159 | - case 106: | |
160 | - return jjMoveStringLiteralDfa1_0(0x400000000000000L, 0x0L); | |
161 | - case 108: | |
162 | - return jjMoveStringLiteralDfa1_0(0x14000000000000L, 0x40L); | |
163 | - case 110: | |
164 | - return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x8002200L); | |
165 | - case 111: | |
166 | - return jjMoveStringLiteralDfa1_0(0x101000000000000L, 0x4188L); | |
167 | - case 114: | |
168 | - return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x20200000L); | |
169 | - case 115: | |
170 | - return jjMoveStringLiteralDfa1_0(0x1000020000000000L, 0x1000L); | |
171 | - case 116: | |
172 | - return jjMoveStringLiteralDfa1_0(0x0L, 0x1000000L); | |
173 | - case 117: | |
174 | - return jjMoveStringLiteralDfa1_0(0x80000000000L, 0x40000000L); | |
175 | - case 118: | |
176 | - return jjMoveStringLiteralDfa1_0(0x2000000000000000L, 0x0L); | |
177 | - case 119: | |
178 | - return jjMoveStringLiteralDfa1_0(0x800000000000L, 0x80000000L); | |
179 | - case 123: | |
180 | - jjmatchedKind = 32; | |
181 | - return jjMoveNfa_0(0, 0); | |
182 | - case 124: | |
183 | - jjmatchedKind = 21; | |
184 | - return jjMoveStringLiteralDfa1_0(0x80000L, 0x0L); | |
185 | - case 125: | |
186 | - jjmatchedKind = 33; | |
187 | - return jjMoveNfa_0(0, 0); | |
188 | - default : | |
189 | - return jjMoveNfa_0(0, 0); | |
190 | - } | |
191 | -} | |
192 | -private final int jjMoveStringLiteralDfa1_0(long active0, long active1) | |
193 | -{ | |
194 | - try { curChar = input_stream.readChar(); } | |
195 | - catch(java.io.IOException e) { | |
196 | - return jjMoveNfa_0(0, 0); | |
197 | - } | |
198 | - switch(curChar) | |
199 | - { | |
200 | - case 38: | |
201 | - if ((active0 & 0x40000L) != 0L) | |
202 | - { | |
203 | - jjmatchedKind = 18; | |
204 | - jjmatchedPos = 1; | |
205 | - } | |
206 | - break; | |
207 | - case 42: | |
208 | - if ((active1 & 0x20000000000L) != 0L) | |
209 | - { | |
210 | - jjmatchedKind = 105; | |
211 | - jjmatchedPos = 1; | |
212 | - } | |
213 | - break; | |
214 | - case 43: | |
215 | - if ((active0 & 0x1000L) != 0L) | |
216 | - { | |
217 | - jjmatchedKind = 12; | |
218 | - jjmatchedPos = 1; | |
219 | - } | |
220 | - break; | |
221 | - case 45: | |
222 | - if ((active0 & 0x4000L) != 0L) | |
223 | - { | |
224 | - jjmatchedKind = 14; | |
225 | - jjmatchedPos = 1; | |
226 | - } | |
227 | - break; | |
228 | - case 47: | |
229 | - if ((active1 & 0x40000000000L) != 0L) | |
230 | - { | |
231 | - jjmatchedKind = 106; | |
232 | - jjmatchedPos = 1; | |
233 | - } | |
234 | - break; | |
235 | - case 61: | |
236 | - if ((active0 & 0x400000000L) != 0L) | |
237 | - { | |
238 | - jjmatchedKind = 34; | |
239 | - jjmatchedPos = 1; | |
240 | - } | |
241 | - else if ((active0 & 0x800000000L) != 0L) | |
242 | - { | |
243 | - jjmatchedKind = 35; | |
244 | - jjmatchedPos = 1; | |
245 | - } | |
246 | - else if ((active0 & 0x2000000000L) != 0L) | |
247 | - { | |
248 | - jjmatchedKind = 37; | |
249 | - jjmatchedPos = 1; | |
250 | - } | |
251 | - else if ((active0 & 0x8000000000L) != 0L) | |
252 | - { | |
253 | - jjmatchedKind = 39; | |
254 | - jjmatchedPos = 1; | |
255 | - } | |
256 | - break; | |
257 | - case 62: | |
258 | - if ((active0 & 0x20000000L) != 0L) | |
259 | - { | |
260 | - jjmatchedKind = 29; | |
261 | - jjmatchedPos = 1; | |
262 | - } | |
263 | - break; | |
264 | - case 64: | |
265 | - if ((active0 & 0x40000000L) != 0L) | |
266 | - { | |
267 | - jjmatchedKind = 30; | |
268 | - jjmatchedPos = 1; | |
269 | - } | |
270 | - break; | |
271 | - case 65: | |
272 | - return jjMoveStringLiteralDfa2_0(active0, 0x2040000000000000L, active1, 0x2000004L); | |
273 | - case 68: | |
274 | - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0xc00000L); | |
275 | - case 69: | |
276 | - return jjMoveStringLiteralDfa2_0(active0, 0x1018120000000000L, active1, 0x20050020L); | |
277 | - case 70: | |
278 | - if ((active0 & 0x4000000000000000L) != 0L) | |
279 | - { | |
280 | - jjmatchedKind = 62; | |
281 | - jjmatchedPos = 1; | |
282 | - } | |
283 | - else if ((active1 & 0x4000L) != 0L) | |
284 | - { | |
285 | - jjmatchedKind = 78; | |
286 | - jjmatchedPos = 1; | |
287 | - } | |
288 | - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x80L); | |
289 | - case 72: | |
290 | - return jjMoveStringLiteralDfa2_0(active0, 0x800000000000L, active1, 0x80001000L); | |
291 | - case 73: | |
292 | - return jjMoveStringLiteralDfa2_0(active0, 0x24000000000000L, active1, 0x840L); | |
293 | - case 76: | |
294 | - return jjMoveStringLiteralDfa2_0(active0, 0x8000000000000000L, active1, 0L); | |
295 | - case 78: | |
296 | - if ((active1 & 0x100L) != 0L) | |
297 | - { | |
298 | - jjmatchedKind = 72; | |
299 | - jjmatchedPos = 1; | |
300 | - } | |
301 | - else if ((active1 & 0x8000L) != 0L) | |
302 | - { | |
303 | - jjmatchedKind = 79; | |
304 | - jjmatchedPos = 1; | |
305 | - } | |
306 | - return jjMoveStringLiteralDfa2_0(active0, 0x82240000000000L, active1, 0x100000L); | |
307 | - case 79: | |
308 | - if ((active1 & 0x100000000L) != 0L) | |
309 | - { | |
310 | - jjmatchedKind = 96; | |
311 | - jjmatchedPos = 1; | |
312 | - } | |
313 | - return jjMoveStringLiteralDfa2_0(active0, 0x400000000000000L, active1, 0xa04282200L); | |
314 | - case 80: | |
315 | - return jjMoveStringLiteralDfa2_0(active0, 0x80000000000L, active1, 0L); | |
316 | - case 82: | |
317 | - if ((active0 & 0x1000000000000L) != 0L) | |
318 | - { | |
319 | - jjmatchedKind = 48; | |
320 | - jjmatchedPos = 1; | |
321 | - } | |
322 | - return jjMoveStringLiteralDfa2_0(active0, 0x800400000000000L, active1, 0x401000009L); | |
323 | - case 83: | |
324 | - if ((active1 & 0x400L) != 0L) | |
325 | - { | |
326 | - jjmatchedKind = 74; | |
327 | - jjmatchedPos = 1; | |
328 | - } | |
329 | - else if ((active1 & 0x20000L) != 0L) | |
330 | - { | |
331 | - jjmatchedKind = 81; | |
332 | - jjmatchedPos = 1; | |
333 | - } | |
334 | - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x40000010L); | |
335 | - case 85: | |
336 | - return jjMoveStringLiteralDfa2_0(active0, 0x300000000000000L, active1, 0x18000000L); | |
337 | - case 89: | |
338 | - if ((active1 & 0x2L) != 0L) | |
339 | - { | |
340 | - jjmatchedKind = 65; | |
341 | - jjmatchedPos = 1; | |
342 | - } | |
343 | - break; | |
344 | - case 97: | |
345 | - return jjMoveStringLiteralDfa2_0(active0, 0x2040000000000000L, active1, 0x2000004L); | |
346 | - case 100: | |
347 | - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0xc00000L); | |
348 | - case 101: | |
349 | - return jjMoveStringLiteralDfa2_0(active0, 0x1018120000000000L, active1, 0x20050020L); | |
350 | - case 102: | |
351 | - if ((active0 & 0x4000000000000000L) != 0L) | |
352 | - { | |
353 | - jjmatchedKind = 62; | |
354 | - jjmatchedPos = 1; | |
355 | - } | |
356 | - else if ((active1 & 0x4000L) != 0L) | |
357 | - { | |
358 | - jjmatchedKind = 78; | |
359 | - jjmatchedPos = 1; | |
360 | - } | |
361 | - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x80L); | |
362 | - case 104: | |
363 | - return jjMoveStringLiteralDfa2_0(active0, 0x800000000000L, active1, 0x80001000L); | |
364 | - case 105: | |
365 | - return jjMoveStringLiteralDfa2_0(active0, 0x24000000000000L, active1, 0x840L); | |
366 | - case 108: | |
367 | - return jjMoveStringLiteralDfa2_0(active0, 0x8000000000000000L, active1, 0L); | |
368 | - case 110: | |
369 | - if ((active1 & 0x100L) != 0L) | |
370 | - { | |
371 | - jjmatchedKind = 72; | |
372 | - jjmatchedPos = 1; | |
373 | - } | |
374 | - else if ((active1 & 0x8000L) != 0L) | |
375 | - { | |
376 | - jjmatchedKind = 79; | |
377 | - jjmatchedPos = 1; | |
378 | - } | |
379 | - return jjMoveStringLiteralDfa2_0(active0, 0x82240000000000L, active1, 0x100000L); | |
380 | - case 111: | |
381 | - if ((active1 & 0x100000000L) != 0L) | |
382 | - { | |
383 | - jjmatchedKind = 96; | |
384 | - jjmatchedPos = 1; | |
385 | - } | |
386 | - return jjMoveStringLiteralDfa2_0(active0, 0x400000000000000L, active1, 0xa04282200L); | |
387 | - case 112: | |
388 | - return jjMoveStringLiteralDfa2_0(active0, 0x80000000000L, active1, 0L); | |
389 | - case 114: | |
390 | - if ((active0 & 0x1000000000000L) != 0L) | |
391 | - { | |
392 | - jjmatchedKind = 48; | |
393 | - jjmatchedPos = 1; | |
394 | - } | |
395 | - return jjMoveStringLiteralDfa2_0(active0, 0x800400000000000L, active1, 0x401000009L); | |
396 | - case 115: | |
397 | - if ((active1 & 0x400L) != 0L) | |
398 | - { | |
399 | - jjmatchedKind = 74; | |
400 | - jjmatchedPos = 1; | |
401 | - } | |
402 | - else if ((active1 & 0x20000L) != 0L) | |
403 | - { | |
404 | - jjmatchedKind = 81; | |
405 | - jjmatchedPos = 1; | |
406 | - } | |
407 | - return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x40000010L); | |
408 | - case 117: | |
409 | - return jjMoveStringLiteralDfa2_0(active0, 0x300000000000000L, active1, 0x18000000L); | |
410 | - case 121: | |
411 | - if ((active1 & 0x2L) != 0L) | |
412 | - { | |
413 | - jjmatchedKind = 65; | |
414 | - jjmatchedPos = 1; | |
415 | - } | |
416 | - break; | |
417 | - case 124: | |
418 | - if ((active0 & 0x80000L) != 0L) | |
419 | - { | |
420 | - jjmatchedKind = 19; | |
421 | - jjmatchedPos = 1; | |
422 | - } | |
423 | - break; | |
424 | - default : | |
425 | - break; | |
426 | - } | |
427 | - return jjMoveNfa_0(0, 1); | |
428 | -} | |
429 | -private final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1) | |
430 | -{ | |
431 | - if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
432 | - return jjMoveNfa_0(0, 1); | |
433 | - try { curChar = input_stream.readChar(); } | |
434 | - catch(java.io.IOException e) { | |
435 | - return jjMoveNfa_0(0, 1); | |
436 | - } | |
437 | - switch(curChar) | |
438 | - { | |
439 | - case 65: | |
440 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000L); | |
441 | - case 67: | |
442 | - if ((active1 & 0x10L) != 0L) | |
443 | - { | |
444 | - jjmatchedKind = 68; | |
445 | - jjmatchedPos = 2; | |
446 | - } | |
447 | - break; | |
448 | - case 68: | |
449 | - if ((active0 & 0x2000000000000L) != 0L) | |
450 | - { | |
451 | - jjmatchedKind = 49; | |
452 | - jjmatchedPos = 2; | |
453 | - } | |
454 | - else if ((active1 & 0x100000L) != 0L) | |
455 | - { | |
456 | - jjmatchedKind = 84; | |
457 | - jjmatchedPos = 2; | |
458 | - } | |
459 | - return jjMoveStringLiteralDfa3_0(active0, 0x80000000000L, active1, 0x8L); | |
460 | - case 69: | |
461 | - if ((active1 & 0x40000000L) != 0L) | |
462 | - { | |
463 | - jjmatchedKind = 94; | |
464 | - jjmatchedPos = 2; | |
465 | - } | |
466 | - return jjMoveStringLiteralDfa3_0(active0, 0x800000000000L, active1, 0x400000000L); | |
467 | - case 70: | |
468 | - return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L, active1, 0x80L); | |
469 | - case 71: | |
470 | - return jjMoveStringLiteralDfa3_0(active0, 0x20000000000000L, active1, 0x40000L); | |
471 | - case 73: | |
472 | - return jjMoveStringLiteralDfa3_0(active0, 0x400000000000000L, active1, 0x80000000L); | |
473 | - case 74: | |
474 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0xc00000L); | |
475 | - case 75: | |
476 | - return jjMoveStringLiteralDfa3_0(active0, 0x4000000000000L, active1, 0L); | |
477 | - case 76: | |
478 | - return jjMoveStringLiteralDfa3_0(active0, 0x2200120000000000L, active1, 0xa200000L); | |
479 | - case 77: | |
480 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x80040L); | |
481 | - case 78: | |
482 | - return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, active1, 0x810000000L); | |
483 | - case 79: | |
484 | - return jjMoveStringLiteralDfa3_0(active0, 0x800400000000000L, active1, 0x4000001L); | |
485 | - case 82: | |
486 | - if ((active1 & 0x200000000L) != 0L) | |
487 | - { | |
488 | - jjmatchedKind = 97; | |
489 | - jjmatchedPos = 2; | |
490 | - } | |
491 | - break; | |
492 | - case 83: | |
493 | - return jjMoveStringLiteralDfa3_0(active0, 0x8008040000000000L, active1, 0x820L); | |
494 | - case 84: | |
495 | - if ((active0 & 0x1000000000000000L) != 0L) | |
496 | - { | |
497 | - jjmatchedKind = 60; | |
498 | - jjmatchedPos = 2; | |
499 | - } | |
500 | - else if ((active1 & 0x200L) != 0L) | |
501 | - { | |
502 | - jjmatchedKind = 73; | |
503 | - jjmatchedPos = 2; | |
504 | - } | |
505 | - return jjMoveStringLiteralDfa3_0(active0, 0x140200000000000L, active1, 0x20010000L); | |
506 | - case 85: | |
507 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000000L); | |
508 | - case 86: | |
509 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4L); | |
510 | - case 87: | |
511 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2000L); | |
512 | - case 97: | |
513 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000L); | |
514 | - case 99: | |
515 | - if ((active1 & 0x10L) != 0L) | |
516 | - { | |
517 | - jjmatchedKind = 68; | |
518 | - jjmatchedPos = 2; | |
519 | - } | |
520 | - break; | |
521 | - case 100: | |
522 | - if ((active0 & 0x2000000000000L) != 0L) | |
523 | - { | |
524 | - jjmatchedKind = 49; | |
525 | - jjmatchedPos = 2; | |
526 | - } | |
527 | - else if ((active1 & 0x100000L) != 0L) | |
528 | - { | |
529 | - jjmatchedKind = 84; | |
530 | - jjmatchedPos = 2; | |
531 | - } | |
532 | - return jjMoveStringLiteralDfa3_0(active0, 0x80000000000L, active1, 0x8L); | |
533 | - case 101: | |
534 | - if ((active1 & 0x40000000L) != 0L) | |
535 | - { | |
536 | - jjmatchedKind = 94; | |
537 | - jjmatchedPos = 2; | |
538 | - } | |
539 | - return jjMoveStringLiteralDfa3_0(active0, 0x800000000000L, active1, 0x400000000L); | |
540 | - case 102: | |
541 | - return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L, active1, 0x80L); | |
542 | - case 103: | |
543 | - return jjMoveStringLiteralDfa3_0(active0, 0x20000000000000L, active1, 0x40000L); | |
544 | - case 105: | |
545 | - return jjMoveStringLiteralDfa3_0(active0, 0x400000000000000L, active1, 0x80000000L); | |
546 | - case 106: | |
547 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0xc00000L); | |
548 | - case 107: | |
549 | - return jjMoveStringLiteralDfa3_0(active0, 0x4000000000000L, active1, 0L); | |
550 | - case 108: | |
551 | - return jjMoveStringLiteralDfa3_0(active0, 0x2200120000000000L, active1, 0xa200000L); | |
552 | - case 109: | |
553 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x80040L); | |
554 | - case 110: | |
555 | - return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, active1, 0x810000000L); | |
556 | - case 111: | |
557 | - return jjMoveStringLiteralDfa3_0(active0, 0x800400000000000L, active1, 0x4000001L); | |
558 | - case 114: | |
559 | - if ((active1 & 0x200000000L) != 0L) | |
560 | - { | |
561 | - jjmatchedKind = 97; | |
562 | - jjmatchedPos = 2; | |
563 | - } | |
564 | - break; | |
565 | - case 115: | |
566 | - return jjMoveStringLiteralDfa3_0(active0, 0x8008040000000000L, active1, 0x820L); | |
567 | - case 116: | |
568 | - if ((active0 & 0x1000000000000000L) != 0L) | |
569 | - { | |
570 | - jjmatchedKind = 60; | |
571 | - jjmatchedPos = 2; | |
572 | - } | |
573 | - else if ((active1 & 0x200L) != 0L) | |
574 | - { | |
575 | - jjmatchedKind = 73; | |
576 | - jjmatchedPos = 2; | |
577 | - } | |
578 | - return jjMoveStringLiteralDfa3_0(active0, 0x140200000000000L, active1, 0x20010000L); | |
579 | - case 117: | |
580 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000000L); | |
581 | - case 118: | |
582 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4L); | |
583 | - case 119: | |
584 | - return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2000L); | |
585 | - default : | |
586 | - break; | |
587 | - } | |
588 | - return jjMoveNfa_0(0, 2); | |
589 | -} | |
590 | -private final int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1) | |
591 | -{ | |
592 | - if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
593 | - return jjMoveNfa_0(0, 2); | |
594 | - try { curChar = input_stream.readChar(); } | |
595 | - catch(java.io.IOException e) { | |
596 | - return jjMoveNfa_0(0, 2); | |
597 | - } | |
598 | - switch(curChar) | |
599 | - { | |
600 | - case 65: | |
601 | - return jjMoveStringLiteralDfa4_0(active0, 0x80000000000L, active1, 0x400002000L); | |
602 | - case 67: | |
603 | - if ((active1 & 0x20L) != 0L) | |
604 | - { | |
605 | - jjmatchedKind = 69; | |
606 | - jjmatchedPos = 3; | |
607 | - } | |
608 | - return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000L, active1, 0x10000000L); | |
609 | - case 69: | |
610 | - if ((active0 & 0x4000000000000L) != 0L) | |
611 | - { | |
612 | - jjmatchedKind = 50; | |
613 | - jjmatchedPos = 3; | |
614 | - } | |
615 | - else if ((active0 & 0x8000000000000000L) != 0L) | |
616 | - { | |
617 | - jjmatchedKind = 63; | |
618 | - jjmatchedPos = 3; | |
619 | - } | |
620 | - else if ((active1 & 0x1000000L) != 0L) | |
621 | - { | |
622 | - jjmatchedKind = 88; | |
623 | - jjmatchedPos = 3; | |
624 | - } | |
625 | - return jjMoveStringLiteralDfa4_0(active0, 0x180160000000000L, active1, 0x8L); | |
626 | - case 72: | |
627 | - return jjMoveStringLiteralDfa4_0(active0, 0x20000000000000L, active1, 0L); | |
628 | - case 73: | |
629 | - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x40044L); | |
630 | - case 76: | |
631 | - if ((active0 & 0x200000000000000L) != 0L) | |
632 | - { | |
633 | - jjmatchedKind = 57; | |
634 | - jjmatchedPos = 3; | |
635 | - } | |
636 | - else if ((active1 & 0x4000000L) != 0L) | |
637 | - { | |
638 | - jjmatchedKind = 90; | |
639 | - jjmatchedPos = 3; | |
640 | - } | |
641 | - else if ((active1 & 0x8000000L) != 0L) | |
642 | - { | |
643 | - jjmatchedKind = 91; | |
644 | - jjmatchedPos = 3; | |
645 | - } | |
646 | - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x80200000L); | |
647 | - case 77: | |
648 | - if ((active0 & 0x400000000000L) != 0L) | |
649 | - { | |
650 | - jjmatchedKind = 46; | |
651 | - jjmatchedPos = 3; | |
652 | - } | |
653 | - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x80000L); | |
654 | - case 78: | |
655 | - if ((active0 & 0x400000000000000L) != 0L) | |
656 | - { | |
657 | - jjmatchedKind = 58; | |
658 | - jjmatchedPos = 3; | |
659 | - } | |
660 | - break; | |
661 | - case 79: | |
662 | - if ((active0 & 0x200000000000L) != 0L) | |
663 | - { | |
664 | - jjmatchedKind = 45; | |
665 | - jjmatchedPos = 3; | |
666 | - } | |
667 | - break; | |
668 | - case 82: | |
669 | - return jjMoveStringLiteralDfa4_0(active0, 0x800000000000L, active1, 0x1000L); | |
670 | - case 83: | |
671 | - return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, active1, 0x2000080L); | |
672 | - case 84: | |
673 | - if ((active0 & 0x10000000000000L) != 0L) | |
674 | - { | |
675 | - jjmatchedKind = 52; | |
676 | - jjmatchedPos = 3; | |
677 | - } | |
678 | - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000800L); | |
679 | - case 85: | |
680 | - return jjMoveStringLiteralDfa4_0(active0, 0x2040000000000000L, active1, 0x20c00001L); | |
681 | - case 87: | |
682 | - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x10000L); | |
683 | - case 97: | |
684 | - return jjMoveStringLiteralDfa4_0(active0, 0x80000000000L, active1, 0x400002000L); | |
685 | - case 99: | |
686 | - if ((active1 & 0x20L) != 0L) | |
687 | - { | |
688 | - jjmatchedKind = 69; | |
689 | - jjmatchedPos = 3; | |
690 | - } | |
691 | - return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000L, active1, 0x10000000L); | |
692 | - case 101: | |
693 | - if ((active0 & 0x4000000000000L) != 0L) | |
694 | - { | |
695 | - jjmatchedKind = 50; | |
696 | - jjmatchedPos = 3; | |
697 | - } | |
698 | - else if ((active0 & 0x8000000000000000L) != 0L) | |
699 | - { | |
700 | - jjmatchedKind = 63; | |
701 | - jjmatchedPos = 3; | |
702 | - } | |
703 | - else if ((active1 & 0x1000000L) != 0L) | |
704 | - { | |
705 | - jjmatchedKind = 88; | |
706 | - jjmatchedPos = 3; | |
707 | - } | |
708 | - return jjMoveStringLiteralDfa4_0(active0, 0x180160000000000L, active1, 0x8L); | |
709 | - case 104: | |
710 | - return jjMoveStringLiteralDfa4_0(active0, 0x20000000000000L, active1, 0L); | |
711 | - case 105: | |
712 | - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x40044L); | |
713 | - case 108: | |
714 | - if ((active0 & 0x200000000000000L) != 0L) | |
715 | - { | |
716 | - jjmatchedKind = 57; | |
717 | - jjmatchedPos = 3; | |
718 | - } | |
719 | - else if ((active1 & 0x4000000L) != 0L) | |
720 | - { | |
721 | - jjmatchedKind = 90; | |
722 | - jjmatchedPos = 3; | |
723 | - } | |
724 | - else if ((active1 & 0x8000000L) != 0L) | |
725 | - { | |
726 | - jjmatchedKind = 91; | |
727 | - jjmatchedPos = 3; | |
728 | - } | |
729 | - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x80200000L); | |
730 | - case 109: | |
731 | - if ((active0 & 0x400000000000L) != 0L) | |
732 | - { | |
733 | - jjmatchedKind = 46; | |
734 | - jjmatchedPos = 3; | |
735 | - } | |
736 | - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x80000L); | |
737 | - case 110: | |
738 | - if ((active0 & 0x400000000000000L) != 0L) | |
739 | - { | |
740 | - jjmatchedKind = 58; | |
741 | - jjmatchedPos = 3; | |
742 | - } | |
743 | - break; | |
744 | - case 111: | |
745 | - if ((active0 & 0x200000000000L) != 0L) | |
746 | - { | |
747 | - jjmatchedKind = 45; | |
748 | - jjmatchedPos = 3; | |
749 | - } | |
750 | - break; | |
751 | - case 114: | |
752 | - return jjMoveStringLiteralDfa4_0(active0, 0x800000000000L, active1, 0x1000L); | |
753 | - case 115: | |
754 | - return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, active1, 0x2000080L); | |
755 | - case 116: | |
756 | - if ((active0 & 0x10000000000000L) != 0L) | |
757 | - { | |
758 | - jjmatchedKind = 52; | |
759 | - jjmatchedPos = 3; | |
760 | - } | |
761 | - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000800L); | |
762 | - case 117: | |
763 | - return jjMoveStringLiteralDfa4_0(active0, 0x2040000000000000L, active1, 0x20c00001L); | |
764 | - case 119: | |
765 | - return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x10000L); | |
766 | - default : | |
767 | - break; | |
768 | - } | |
769 | - return jjMoveNfa_0(0, 3); | |
770 | -} | |
771 | -private final int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1) | |
772 | -{ | |
773 | - if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
774 | - return jjMoveNfa_0(0, 3); | |
775 | - try { curChar = input_stream.readChar(); } | |
776 | - catch(java.io.IOException e) { | |
777 | - return jjMoveNfa_0(0, 3); | |
778 | - } | |
779 | - switch(curChar) | |
780 | - { | |
781 | - case 65: | |
782 | - return jjMoveStringLiteralDfa5_0(active0, 0x8000000000000L, active1, 0L); | |
783 | - case 66: | |
784 | - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x200000L); | |
785 | - case 67: | |
786 | - return jjMoveStringLiteralDfa5_0(active0, 0x20000000000L, active1, 0L); | |
787 | - case 69: | |
788 | - if ((active0 & 0x800000000000L) != 0L) | |
789 | - { | |
790 | - jjmatchedKind = 47; | |
791 | - jjmatchedPos = 4; | |
792 | - } | |
793 | - else if ((active1 & 0x1000L) != 0L) | |
794 | - { | |
795 | - jjmatchedKind = 76; | |
796 | - jjmatchedPos = 4; | |
797 | - } | |
798 | - else if ((active1 & 0x2000000L) != 0L) | |
799 | - { | |
800 | - jjmatchedKind = 89; | |
801 | - jjmatchedPos = 4; | |
802 | - } | |
803 | - else if ((active1 & 0x80000000L) != 0L) | |
804 | - { | |
805 | - jjmatchedKind = 95; | |
806 | - jjmatchedPos = 4; | |
807 | - } | |
808 | - return jjMoveStringLiteralDfa5_0(active0, 0x2000000000000000L, active1, 0x10080L); | |
809 | - case 73: | |
810 | - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x800082800L); | |
811 | - case 75: | |
812 | - if ((active1 & 0x400000000L) != 0L) | |
813 | - { | |
814 | - jjmatchedKind = 98; | |
815 | - jjmatchedPos = 4; | |
816 | - } | |
817 | - break; | |
818 | - case 78: | |
819 | - if ((active1 & 0x40000L) != 0L) | |
820 | - { | |
821 | - jjmatchedKind = 82; | |
822 | - jjmatchedPos = 4; | |
823 | - } | |
824 | - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L); | |
825 | - case 80: | |
826 | - if ((active1 & 0x1L) != 0L) | |
827 | - { | |
828 | - jjmatchedKind = 64; | |
829 | - jjmatchedPos = 4; | |
830 | - } | |
831 | - break; | |
832 | - case 82: | |
833 | - if ((active0 & 0x80000000000000L) != 0L) | |
834 | - { | |
835 | - jjmatchedKind = 55; | |
836 | - jjmatchedPos = 4; | |
837 | - } | |
838 | - else if ((active0 & 0x100000000000000L) != 0L) | |
839 | - { | |
840 | - jjmatchedKind = 56; | |
841 | - jjmatchedPos = 4; | |
842 | - } | |
843 | - else if ((active1 & 0x8L) != 0L) | |
844 | - { | |
845 | - jjmatchedKind = 67; | |
846 | - jjmatchedPos = 4; | |
847 | - } | |
848 | - return jjMoveStringLiteralDfa5_0(active0, 0x40040000000000L, active1, 0x20000000L); | |
849 | - case 83: | |
850 | - if ((active0 & 0x800000000000000L) != 0L) | |
851 | - { | |
852 | - jjmatchedKind = 59; | |
853 | - jjmatchedPos = 4; | |
854 | - } | |
855 | - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0xc00000L); | |
856 | - case 84: | |
857 | - if ((active0 & 0x20000000000000L) != 0L) | |
858 | - { | |
859 | - jjmatchedKind = 53; | |
860 | - jjmatchedPos = 4; | |
861 | - } | |
862 | - else if ((active1 & 0x40L) != 0L) | |
863 | - { | |
864 | - jjmatchedKind = 70; | |
865 | - jjmatchedPos = 4; | |
866 | - } | |
867 | - return jjMoveStringLiteralDfa5_0(active0, 0x180000000000L, active1, 0x10000000L); | |
868 | - case 97: | |
869 | - return jjMoveStringLiteralDfa5_0(active0, 0x8000000000000L, active1, 0L); | |
870 | - case 98: | |
871 | - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x200000L); | |
872 | - case 99: | |
873 | - return jjMoveStringLiteralDfa5_0(active0, 0x20000000000L, active1, 0L); | |
874 | - case 101: | |
875 | - if ((active0 & 0x800000000000L) != 0L) | |
876 | - { | |
877 | - jjmatchedKind = 47; | |
878 | - jjmatchedPos = 4; | |
879 | - } | |
880 | - else if ((active1 & 0x1000L) != 0L) | |
881 | - { | |
882 | - jjmatchedKind = 76; | |
883 | - jjmatchedPos = 4; | |
884 | - } | |
885 | - else if ((active1 & 0x2000000L) != 0L) | |
886 | - { | |
887 | - jjmatchedKind = 89; | |
888 | - jjmatchedPos = 4; | |
889 | - } | |
890 | - else if ((active1 & 0x80000000L) != 0L) | |
891 | - { | |
892 | - jjmatchedKind = 95; | |
893 | - jjmatchedPos = 4; | |
894 | - } | |
895 | - return jjMoveStringLiteralDfa5_0(active0, 0x2000000000000000L, active1, 0x10080L); | |
896 | - case 105: | |
897 | - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x800082800L); | |
898 | - case 107: | |
899 | - if ((active1 & 0x400000000L) != 0L) | |
900 | - { | |
901 | - jjmatchedKind = 98; | |
902 | - jjmatchedPos = 4; | |
903 | - } | |
904 | - break; | |
905 | - case 110: | |
906 | - if ((active1 & 0x40000L) != 0L) | |
907 | - { | |
908 | - jjmatchedKind = 82; | |
909 | - jjmatchedPos = 4; | |
910 | - } | |
911 | - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L); | |
912 | - case 112: | |
913 | - if ((active1 & 0x1L) != 0L) | |
914 | - { | |
915 | - jjmatchedKind = 64; | |
916 | - jjmatchedPos = 4; | |
917 | - } | |
918 | - break; | |
919 | - case 114: | |
920 | - if ((active0 & 0x80000000000000L) != 0L) | |
921 | - { | |
922 | - jjmatchedKind = 55; | |
923 | - jjmatchedPos = 4; | |
924 | - } | |
925 | - else if ((active0 & 0x100000000000000L) != 0L) | |
926 | - { | |
927 | - jjmatchedKind = 56; | |
928 | - jjmatchedPos = 4; | |
929 | - } | |
930 | - else if ((active1 & 0x8L) != 0L) | |
931 | - { | |
932 | - jjmatchedKind = 67; | |
933 | - jjmatchedPos = 4; | |
934 | - } | |
935 | - return jjMoveStringLiteralDfa5_0(active0, 0x40040000000000L, active1, 0x20000000L); | |
936 | - case 115: | |
937 | - if ((active0 & 0x800000000000000L) != 0L) | |
938 | - { | |
939 | - jjmatchedKind = 59; | |
940 | - jjmatchedPos = 4; | |
941 | - } | |
942 | - return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0xc00000L); | |
943 | - case 116: | |
944 | - if ((active0 & 0x20000000000000L) != 0L) | |
945 | - { | |
946 | - jjmatchedKind = 53; | |
947 | - jjmatchedPos = 4; | |
948 | - } | |
949 | - else if ((active1 & 0x40L) != 0L) | |
950 | - { | |
951 | - jjmatchedKind = 70; | |
952 | - jjmatchedPos = 4; | |
953 | - } | |
954 | - return jjMoveStringLiteralDfa5_0(active0, 0x180000000000L, active1, 0x10000000L); | |
955 | - default : | |
956 | - break; | |
957 | - } | |
958 | - return jjMoveNfa_0(0, 4); | |
959 | -} | |
960 | -private final int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1) | |
961 | -{ | |
962 | - if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
963 | - return jjMoveNfa_0(0, 4); | |
964 | - try { curChar = input_stream.readChar(); } | |
965 | - catch(java.io.IOException e) { | |
966 | - return jjMoveNfa_0(0, 4); | |
967 | - } | |
968 | - switch(curChar) | |
969 | - { | |
970 | - case 65: | |
971 | - return jjMoveStringLiteralDfa6_0(active0, 0x40000000000000L, active1, 0x200000L); | |
972 | - case 69: | |
973 | - if ((active0 & 0x80000000000L) != 0L) | |
974 | - { | |
975 | - jjmatchedKind = 43; | |
976 | - jjmatchedPos = 5; | |
977 | - } | |
978 | - else if ((active0 & 0x100000000000L) != 0L) | |
979 | - { | |
980 | - jjmatchedKind = 44; | |
981 | - jjmatchedPos = 5; | |
982 | - } | |
983 | - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10000L); | |
984 | - case 71: | |
985 | - if ((active1 & 0x4L) != 0L) | |
986 | - { | |
987 | - jjmatchedKind = 66; | |
988 | - jjmatchedPos = 5; | |
989 | - } | |
990 | - break; | |
991 | - case 73: | |
992 | - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10000000L); | |
993 | - case 78: | |
994 | - if ((active1 & 0x20000000L) != 0L) | |
995 | - { | |
996 | - jjmatchedKind = 93; | |
997 | - jjmatchedPos = 5; | |
998 | - } | |
999 | - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x800000800L); | |
1000 | - case 80: | |
1001 | - return jjMoveStringLiteralDfa6_0(active0, 0x8000000000000L, active1, 0L); | |
1002 | - case 83: | |
1003 | - if ((active0 & 0x2000000000000000L) != 0L) | |
1004 | - { | |
1005 | - jjmatchedKind = 61; | |
1006 | - jjmatchedPos = 5; | |
1007 | - } | |
1008 | - break; | |
1009 | - case 84: | |
1010 | - if ((active0 & 0x20000000000L) != 0L) | |
1011 | - { | |
1012 | - jjmatchedKind = 41; | |
1013 | - jjmatchedPos = 5; | |
1014 | - } | |
1015 | - else if ((active0 & 0x40000000000L) != 0L) | |
1016 | - { | |
1017 | - jjmatchedKind = 42; | |
1018 | - jjmatchedPos = 5; | |
1019 | - } | |
1020 | - else if ((active1 & 0x80L) != 0L) | |
1021 | - { | |
1022 | - jjmatchedKind = 71; | |
1023 | - jjmatchedPos = 5; | |
1024 | - } | |
1025 | - else if ((active1 & 0x2000L) != 0L) | |
1026 | - { | |
1027 | - jjmatchedKind = 77; | |
1028 | - jjmatchedPos = 5; | |
1029 | - } | |
1030 | - else if ((active1 & 0x80000L) != 0L) | |
1031 | - { | |
1032 | - jjmatchedKind = 83; | |
1033 | - jjmatchedPos = 5; | |
1034 | - } | |
1035 | - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0xc00000L); | |
1036 | - case 97: | |
1037 | - return jjMoveStringLiteralDfa6_0(active0, 0x40000000000000L, active1, 0x200000L); | |
1038 | - case 101: | |
1039 | - if ((active0 & 0x80000000000L) != 0L) | |
1040 | - { | |
1041 | - jjmatchedKind = 43; | |
1042 | - jjmatchedPos = 5; | |
1043 | - } | |
1044 | - else if ((active0 & 0x100000000000L) != 0L) | |
1045 | - { | |
1046 | - jjmatchedKind = 44; | |
1047 | - jjmatchedPos = 5; | |
1048 | - } | |
1049 | - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10000L); | |
1050 | - case 103: | |
1051 | - if ((active1 & 0x4L) != 0L) | |
1052 | - { | |
1053 | - jjmatchedKind = 66; | |
1054 | - jjmatchedPos = 5; | |
1055 | - } | |
1056 | - break; | |
1057 | - case 105: | |
1058 | - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10000000L); | |
1059 | - case 110: | |
1060 | - if ((active1 & 0x20000000L) != 0L) | |
1061 | - { | |
1062 | - jjmatchedKind = 93; | |
1063 | - jjmatchedPos = 5; | |
1064 | - } | |
1065 | - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x800000800L); | |
1066 | - case 112: | |
1067 | - return jjMoveStringLiteralDfa6_0(active0, 0x8000000000000L, active1, 0L); | |
1068 | - case 115: | |
1069 | - if ((active0 & 0x2000000000000000L) != 0L) | |
1070 | - { | |
1071 | - jjmatchedKind = 61; | |
1072 | - jjmatchedPos = 5; | |
1073 | - } | |
1074 | - break; | |
1075 | - case 116: | |
1076 | - if ((active0 & 0x20000000000L) != 0L) | |
1077 | - { | |
1078 | - jjmatchedKind = 41; | |
1079 | - jjmatchedPos = 5; | |
1080 | - } | |
1081 | - else if ((active0 & 0x40000000000L) != 0L) | |
1082 | - { | |
1083 | - jjmatchedKind = 42; | |
1084 | - jjmatchedPos = 5; | |
1085 | - } | |
1086 | - else if ((active1 & 0x80L) != 0L) | |
1087 | - { | |
1088 | - jjmatchedKind = 71; | |
1089 | - jjmatchedPos = 5; | |
1090 | - } | |
1091 | - else if ((active1 & 0x2000L) != 0L) | |
1092 | - { | |
1093 | - jjmatchedKind = 77; | |
1094 | - jjmatchedPos = 5; | |
1095 | - } | |
1096 | - else if ((active1 & 0x80000L) != 0L) | |
1097 | - { | |
1098 | - jjmatchedKind = 83; | |
1099 | - jjmatchedPos = 5; | |
1100 | - } | |
1101 | - return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0xc00000L); | |
1102 | - default : | |
1103 | - break; | |
1104 | - } | |
1105 | - return jjMoveNfa_0(0, 5); | |
1106 | -} | |
1107 | -private final int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1) | |
1108 | -{ | |
1109 | - if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
1110 | - return jjMoveNfa_0(0, 5); | |
1111 | - try { curChar = input_stream.readChar(); } | |
1112 | - catch(java.io.IOException e) { | |
1113 | - return jjMoveNfa_0(0, 5); | |
1114 | - } | |
1115 | - switch(curChar) | |
1116 | - { | |
1117 | - case 67: | |
1118 | - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x200800L); | |
1119 | - case 69: | |
1120 | - return jjMoveStringLiteralDfa7_0(active0, 0x8000000000000L, active1, 0L); | |
1121 | - case 76: | |
1122 | - if ((active0 & 0x40000000000000L) != 0L) | |
1123 | - { | |
1124 | - jjmatchedKind = 54; | |
1125 | - jjmatchedPos = 6; | |
1126 | - } | |
1127 | - break; | |
1128 | - case 78: | |
1129 | - if ((active1 & 0x10000L) != 0L) | |
1130 | - { | |
1131 | - jjmatchedKind = 80; | |
1132 | - jjmatchedPos = 6; | |
1133 | - } | |
1134 | - break; | |
1135 | - case 79: | |
1136 | - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x10000000L); | |
1137 | - case 85: | |
1138 | - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x800000000L); | |
1139 | - case 95: | |
1140 | - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0xc00000L); | |
1141 | - case 99: | |
1142 | - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x200800L); | |
1143 | - case 101: | |
1144 | - return jjMoveStringLiteralDfa7_0(active0, 0x8000000000000L, active1, 0L); | |
1145 | - case 108: | |
1146 | - if ((active0 & 0x40000000000000L) != 0L) | |
1147 | - { | |
1148 | - jjmatchedKind = 54; | |
1149 | - jjmatchedPos = 6; | |
1150 | - } | |
1151 | - break; | |
1152 | - case 110: | |
1153 | - if ((active1 & 0x10000L) != 0L) | |
1154 | - { | |
1155 | - jjmatchedKind = 80; | |
1156 | - jjmatchedPos = 6; | |
1157 | - } | |
1158 | - break; | |
1159 | - case 111: | |
1160 | - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x10000000L); | |
1161 | - case 117: | |
1162 | - return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x800000000L); | |
1163 | - default : | |
1164 | - break; | |
1165 | - } | |
1166 | - return jjMoveNfa_0(0, 6); | |
1167 | -} | |
1168 | -private final int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1) | |
1169 | -{ | |
1170 | - if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
1171 | - return jjMoveNfa_0(0, 6); | |
1172 | - try { curChar = input_stream.readChar(); } | |
1173 | - catch(java.io.IOException e) { | |
1174 | - return jjMoveNfa_0(0, 6); | |
1175 | - } | |
1176 | - switch(curChar) | |
1177 | - { | |
1178 | - case 62: | |
1179 | - if ((active0 & 0x8000000000000L) != 0L) | |
1180 | - { | |
1181 | - jjmatchedKind = 51; | |
1182 | - jjmatchedPos = 7; | |
1183 | - } | |
1184 | - break; | |
1185 | - case 69: | |
1186 | - if ((active1 & 0x800000000L) != 0L) | |
1187 | - { | |
1188 | - jjmatchedKind = 99; | |
1189 | - jjmatchedPos = 7; | |
1190 | - } | |
1191 | - break; | |
1192 | - case 75: | |
1193 | - if ((active1 & 0x200000L) != 0L) | |
1194 | - { | |
1195 | - jjmatchedKind = 85; | |
1196 | - jjmatchedPos = 7; | |
1197 | - } | |
1198 | - break; | |
1199 | - case 78: | |
1200 | - if ((active1 & 0x10000000L) != 0L) | |
1201 | - { | |
1202 | - jjmatchedKind = 92; | |
1203 | - jjmatchedPos = 7; | |
1204 | - } | |
1205 | - break; | |
1206 | - case 83: | |
1207 | - return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x800000L); | |
1208 | - case 84: | |
1209 | - if ((active1 & 0x800L) != 0L) | |
1210 | - { | |
1211 | - jjmatchedKind = 75; | |
1212 | - jjmatchedPos = 7; | |
1213 | - } | |
1214 | - break; | |
1215 | - case 87: | |
1216 | - return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x400000L); | |
1217 | - case 101: | |
1218 | - if ((active1 & 0x800000000L) != 0L) | |
1219 | - { | |
1220 | - jjmatchedKind = 99; | |
1221 | - jjmatchedPos = 7; | |
1222 | - } | |
1223 | - break; | |
1224 | - case 107: | |
1225 | - if ((active1 & 0x200000L) != 0L) | |
1226 | - { | |
1227 | - jjmatchedKind = 85; | |
1228 | - jjmatchedPos = 7; | |
1229 | - } | |
1230 | - break; | |
1231 | - case 110: | |
1232 | - if ((active1 & 0x10000000L) != 0L) | |
1233 | - { | |
1234 | - jjmatchedKind = 92; | |
1235 | - jjmatchedPos = 7; | |
1236 | - } | |
1237 | - break; | |
1238 | - case 115: | |
1239 | - return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x800000L); | |
1240 | - case 116: | |
1241 | - if ((active1 & 0x800L) != 0L) | |
1242 | - { | |
1243 | - jjmatchedKind = 75; | |
1244 | - jjmatchedPos = 7; | |
1245 | - } | |
1246 | - break; | |
1247 | - case 119: | |
1248 | - return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x400000L); | |
1249 | - default : | |
1250 | - break; | |
1251 | - } | |
1252 | - return jjMoveNfa_0(0, 7); | |
1253 | -} | |
1254 | -private final int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1) | |
1255 | -{ | |
1256 | - if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
1257 | - return jjMoveNfa_0(0, 7); | |
1258 | - try { curChar = input_stream.readChar(); } | |
1259 | - catch(java.io.IOException e) { | |
1260 | - return jjMoveNfa_0(0, 7); | |
1261 | - } | |
1262 | - switch(curChar) | |
1263 | - { | |
1264 | - case 69: | |
1265 | - return jjMoveStringLiteralDfa9_0(active1, 0x800000L); | |
1266 | - case 72: | |
1267 | - return jjMoveStringLiteralDfa9_0(active1, 0x400000L); | |
1268 | - case 101: | |
1269 | - return jjMoveStringLiteralDfa9_0(active1, 0x800000L); | |
1270 | - case 104: | |
1271 | - return jjMoveStringLiteralDfa9_0(active1, 0x400000L); | |
1272 | - default : | |
1273 | - break; | |
1274 | - } | |
1275 | - return jjMoveNfa_0(0, 8); | |
1276 | -} | |
1277 | -private final int jjMoveStringLiteralDfa9_0(long old1, long active1) | |
1278 | -{ | |
1279 | - if (((active1 &= old1)) == 0L) | |
1280 | - return jjMoveNfa_0(0, 8); | |
1281 | - try { curChar = input_stream.readChar(); } | |
1282 | - catch(java.io.IOException e) { | |
1283 | - return jjMoveNfa_0(0, 8); | |
1284 | - } | |
1285 | - switch(curChar) | |
1286 | - { | |
1287 | - case 69: | |
1288 | - return jjMoveStringLiteralDfa10_0(active1, 0x400000L); | |
1289 | - case 84: | |
1290 | - if ((active1 & 0x800000L) != 0L) | |
1291 | - { | |
1292 | - jjmatchedKind = 87; | |
1293 | - jjmatchedPos = 9; | |
1294 | - } | |
1295 | - break; | |
1296 | - case 101: | |
1297 | - return jjMoveStringLiteralDfa10_0(active1, 0x400000L); | |
1298 | - case 116: | |
1299 | - if ((active1 & 0x800000L) != 0L) | |
1300 | - { | |
1301 | - jjmatchedKind = 87; | |
1302 | - jjmatchedPos = 9; | |
1303 | - } | |
1304 | - break; | |
1305 | - default : | |
1306 | - break; | |
1307 | - } | |
1308 | - return jjMoveNfa_0(0, 9); | |
1309 | -} | |
1310 | -private final int jjMoveStringLiteralDfa10_0(long old1, long active1) | |
1311 | -{ | |
1312 | - if (((active1 &= old1)) == 0L) | |
1313 | - return jjMoveNfa_0(0, 9); | |
1314 | - try { curChar = input_stream.readChar(); } | |
1315 | - catch(java.io.IOException e) { | |
1316 | - return jjMoveNfa_0(0, 9); | |
1317 | - } | |
1318 | - switch(curChar) | |
1319 | - { | |
1320 | - case 82: | |
1321 | - return jjMoveStringLiteralDfa11_0(active1, 0x400000L); | |
1322 | - case 114: | |
1323 | - return jjMoveStringLiteralDfa11_0(active1, 0x400000L); | |
1324 | - default : | |
1325 | - break; | |
1326 | - } | |
1327 | - return jjMoveNfa_0(0, 10); | |
1328 | -} | |
1329 | -private final int jjMoveStringLiteralDfa11_0(long old1, long active1) | |
1330 | -{ | |
1331 | - if (((active1 &= old1)) == 0L) | |
1332 | - return jjMoveNfa_0(0, 10); | |
1333 | - try { curChar = input_stream.readChar(); } | |
1334 | - catch(java.io.IOException e) { | |
1335 | - return jjMoveNfa_0(0, 10); | |
1336 | - } | |
1337 | - switch(curChar) | |
1338 | - { | |
1339 | - case 69: | |
1340 | - if ((active1 & 0x400000L) != 0L) | |
1341 | - { | |
1342 | - jjmatchedKind = 86; | |
1343 | - jjmatchedPos = 11; | |
1344 | - } | |
1345 | - break; | |
1346 | - case 101: | |
1347 | - if ((active1 & 0x400000L) != 0L) | |
1348 | - { | |
1349 | - jjmatchedKind = 86; | |
1350 | - jjmatchedPos = 11; | |
1351 | - } | |
1352 | - break; | |
1353 | - default : | |
1354 | - break; | |
1355 | - } | |
1356 | - return jjMoveNfa_0(0, 11); | |
1357 | -} | |
1358 | -private final void jjCheckNAdd(int state) | |
1359 | -{ | |
1360 | - if (jjrounds[state] != jjround) | |
1361 | - { | |
1362 | - jjstateSet[jjnewStateCnt++] = state; | |
1363 | - jjrounds[state] = jjround; | |
1364 | - } | |
1365 | -} | |
1366 | -private final void jjCheckNAddTwoStates(int state1, int state2) | |
1367 | -{ | |
1368 | - jjCheckNAdd(state1); | |
1369 | - jjCheckNAdd(state2); | |
1370 | -} | |
1371 | -private final void jjCheckNAddStates(int start, int end) | |
1372 | -{ | |
1373 | - do { | |
1374 | - jjCheckNAdd(jjnextStates[start]); | |
1375 | - } while (start++ != end); | |
1376 | -} | |
1377 | - | |
1378 | -@SuppressWarnings("unused") | |
1379 | -private final int jjMoveNfa_0(int startState, int curPos) | |
1380 | -{ | |
1381 | - int strKind = jjmatchedKind; | |
1382 | - int strPos = jjmatchedPos; | |
1383 | - int seenUpto; | |
1384 | - input_stream.backup(seenUpto = curPos + 1); | |
1385 | - try { curChar = input_stream.readChar(); } | |
1386 | - catch(java.io.IOException e) { throw new Error("Internal Error"); } | |
1387 | - curPos = 0; | |
1388 | - int startsAt = 0; | |
1389 | - jjnewStateCnt = 9; | |
1390 | - int i = 1; | |
1391 | - jjstateSet[0] = startState; | |
1392 | - int kind = 0x7fffffff; | |
1393 | - for (;;) | |
1394 | - { | |
1395 | - if (++jjround == 0x7fffffff) | |
1396 | - ReInitRounds(); | |
1397 | - if (curChar < 64) | |
1398 | - { | |
1399 | - long l = 1L << curChar; | |
1400 | - MatchLoop: do | |
1401 | - { | |
1402 | - switch(jjstateSet[--i]) | |
1403 | - { | |
1404 | - case 0: | |
1405 | - if ((0x3ff000000000000L & l) != 0L) | |
1406 | - { | |
1407 | - if (kind > 101) | |
1408 | - kind = 101; | |
1409 | - jjCheckNAddStates(0, 2); | |
1410 | - } | |
1411 | - else if (curChar == 45) | |
1412 | - jjCheckNAddTwoStates(3, 4); | |
1413 | - break; | |
1414 | - case 1: | |
1415 | - if ((0x3ff000000000000L & l) == 0L) | |
1416 | - break; | |
1417 | - if (kind > 100) | |
1418 | - kind = 100; | |
1419 | - jjstateSet[jjnewStateCnt++] = 1; | |
1420 | - break; | |
1421 | - case 2: | |
1422 | - if (curChar == 45) | |
1423 | - jjCheckNAddTwoStates(3, 4); | |
1424 | - break; | |
1425 | - case 3: | |
1426 | - if ((0x3ff000000000000L & l) == 0L) | |
1427 | - break; | |
1428 | - if (kind > 101) | |
1429 | - kind = 101; | |
1430 | - jjCheckNAdd(3); | |
1431 | - break; | |
1432 | - case 4: | |
1433 | - if ((0x3ff000000000000L & l) != 0L) | |
1434 | - jjCheckNAddTwoStates(4, 5); | |
1435 | - break; | |
1436 | - case 5: | |
1437 | - if (curChar == 46) | |
1438 | - jjCheckNAddTwoStates(6, 7); | |
1439 | - break; | |
1440 | - case 6: | |
1441 | - if (curChar == 45) | |
1442 | - jjCheckNAdd(7); | |
1443 | - break; | |
1444 | - case 7: | |
1445 | - if ((0x3ff000000000000L & l) == 0L) | |
1446 | - break; | |
1447 | - if (kind > 102) | |
1448 | - kind = 102; | |
1449 | - jjCheckNAdd(7); | |
1450 | - break; | |
1451 | - case 8: | |
1452 | - if ((0x3ff000000000000L & l) == 0L) | |
1453 | - break; | |
1454 | - if (kind > 101) | |
1455 | - kind = 101; | |
1456 | - jjCheckNAddStates(0, 2); | |
1457 | - break; | |
1458 | - default : break; | |
1459 | - } | |
1460 | - } while(i != startsAt); | |
1461 | - } | |
1462 | - else if (curChar < 128) | |
1463 | - { | |
1464 | - long l = 1L << (curChar & 077); | |
1465 | - MatchLoop: do | |
1466 | - { | |
1467 | - switch(jjstateSet[--i]) | |
1468 | - { | |
1469 | - case 0: | |
1470 | - case 1: | |
1471 | - if ((0x7fffffe87fffffeL & l) == 0L) | |
1472 | - break; | |
1473 | - if (kind > 100) | |
1474 | - kind = 100; | |
1475 | - jjCheckNAdd(1); | |
1476 | - break; | |
1477 | - default : break; | |
1478 | - } | |
1479 | - } while(i != startsAt); | |
1480 | - } | |
1481 | - else | |
1482 | - { | |
1483 | - MatchLoop: do | |
1484 | - { | |
1485 | - switch(jjstateSet[--i]) | |
1486 | - { | |
1487 | - default : break; | |
1488 | - } | |
1489 | - } while(i != startsAt); | |
1490 | - } | |
1491 | - if (kind != 0x7fffffff) | |
1492 | - { | |
1493 | - jjmatchedKind = kind; | |
1494 | - jjmatchedPos = curPos; | |
1495 | - kind = 0x7fffffff; | |
1496 | - } | |
1497 | - ++curPos; | |
1498 | - if ((i = jjnewStateCnt) == (startsAt = 9 - (jjnewStateCnt = startsAt))) | |
1499 | - break; | |
1500 | - try { curChar = input_stream.readChar(); } | |
1501 | - catch(java.io.IOException e) { break; } | |
1502 | - } | |
1503 | - if (jjmatchedPos > strPos) | |
1504 | - return curPos; | |
1505 | - | |
1506 | - int toRet = Math.max(curPos, seenUpto); | |
1507 | - | |
1508 | - if (curPos < toRet) | |
1509 | - for (i = toRet - Math.min(curPos, seenUpto); i-- > 0; ) | |
1510 | - try { curChar = input_stream.readChar(); } | |
1511 | - catch(java.io.IOException e) { throw new Error("Internal Error : Please send a bug report."); } | |
1512 | - | |
1513 | - if (jjmatchedPos < strPos) | |
1514 | - { | |
1515 | - jjmatchedKind = strKind; | |
1516 | - jjmatchedPos = strPos; | |
1517 | - } | |
1518 | - else if (jjmatchedPos == strPos && jjmatchedKind > strKind) | |
1519 | - jjmatchedKind = strKind; | |
1520 | - | |
1521 | - return toRet; | |
1522 | -} | |
1523 | -private final int jjMoveStringLiteralDfa0_1() | |
1524 | -{ | |
1525 | - switch(curChar) | |
1526 | - { | |
1527 | - case 39: | |
1528 | - return jjStopAtPos(0, 114); | |
1529 | - case 92: | |
1530 | - return jjMoveStringLiteralDfa1_1(0x8000000000000L); | |
1531 | - default : | |
1532 | - return 1; | |
1533 | - } | |
1534 | -} | |
1535 | -private final int jjMoveStringLiteralDfa1_1(long active1) | |
1536 | -{ | |
1537 | - try { curChar = input_stream.readChar(); } | |
1538 | - catch(java.io.IOException e) { | |
1539 | - return 1; | |
1540 | - } | |
1541 | - switch(curChar) | |
1542 | - { | |
1543 | - case 39: | |
1544 | - if ((active1 & 0x8000000000000L) != 0L) | |
1545 | - return jjStopAtPos(1, 115); | |
1546 | - break; | |
1547 | - default : | |
1548 | - return 2; | |
1549 | - } | |
1550 | - return 2; | |
1551 | -} | |
1552 | -private final int jjMoveStringLiteralDfa0_2() | |
1553 | -{ | |
1554 | - switch(curChar) | |
1555 | - { | |
1556 | - case 34: | |
1557 | - return jjStopAtPos(0, 111); | |
1558 | - case 92: | |
1559 | - return jjMoveStringLiteralDfa1_2(0x1000000000000L); | |
1560 | - default : | |
1561 | - return 1; | |
1562 | - } | |
1563 | -} | |
1564 | -private final int jjMoveStringLiteralDfa1_2(long active1) | |
1565 | -{ | |
1566 | - try { curChar = input_stream.readChar(); } | |
1567 | - catch(java.io.IOException e) { | |
1568 | - return 1; | |
1569 | - } | |
1570 | - switch(curChar) | |
1571 | - { | |
1572 | - case 34: | |
1573 | - if ((active1 & 0x1000000000000L) != 0L) | |
1574 | - return jjStopAtPos(1, 112); | |
1575 | - break; | |
1576 | - default : | |
1577 | - return 2; | |
1578 | - } | |
1579 | - return 2; | |
1580 | -} | |
1581 | -private final int jjMoveStringLiteralDfa0_3() | |
1582 | -{ | |
1583 | - switch(curChar) | |
1584 | - { | |
1585 | - case 42: | |
1586 | - return jjMoveStringLiteralDfa1_3(0x200000000000L); | |
1587 | - default : | |
1588 | - return 1; | |
1589 | - } | |
1590 | -} | |
1591 | -private final int jjMoveStringLiteralDfa1_3(long active1) | |
1592 | -{ | |
1593 | - try { curChar = input_stream.readChar(); } | |
1594 | - catch(java.io.IOException e) { | |
1595 | - return 1; | |
1596 | - } | |
1597 | - switch(curChar) | |
1598 | - { | |
1599 | - case 47: | |
1600 | - if ((active1 & 0x200000000000L) != 0L) | |
1601 | - return jjStopAtPos(1, 109); | |
1602 | - break; | |
1603 | - default : | |
1604 | - return 2; | |
1605 | - } | |
1606 | - return 2; | |
1607 | -} | |
1 | +/* Generated By:JavaCC: Do not edit this line. AlinousScriptParserTokenManager.java */ | |
2 | +package org.alinous.parser.script; | |
3 | + | |
4 | +public class AlinousScriptParserTokenManager implements AlinousScriptParserConstants | |
5 | +{ | |
6 | + public java.io.PrintStream debugStream = System.out; | |
7 | + public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; } | |
8 | +private final int jjStopAtPos(int pos, int kind) | |
9 | +{ | |
10 | + jjmatchedKind = kind; | |
11 | + jjmatchedPos = pos; | |
12 | + return pos + 1; | |
13 | +} | |
14 | +private final int jjMoveStringLiteralDfa0_4() | |
15 | +{ | |
16 | + switch(curChar) | |
17 | + { | |
18 | + case 10: | |
19 | + return jjStopAtPos(0, 107); | |
20 | + default : | |
21 | + return 1; | |
22 | + } | |
23 | +} | |
24 | +private final int jjMoveStringLiteralDfa0_0() | |
25 | +{ | |
26 | + switch(curChar) | |
27 | + { | |
28 | + case 9: | |
29 | + jjmatchedKind = 2; | |
30 | + return jjMoveNfa_0(0, 0); | |
31 | + case 10: | |
32 | + jjmatchedKind = 3; | |
33 | + return jjMoveNfa_0(0, 0); | |
34 | + case 13: | |
35 | + jjmatchedKind = 4; | |
36 | + return jjMoveNfa_0(0, 0); | |
37 | + case 32: | |
38 | + jjmatchedKind = 1; | |
39 | + return jjMoveNfa_0(0, 0); | |
40 | + case 33: | |
41 | + jjmatchedKind = 40; | |
42 | + return jjMoveStringLiteralDfa1_0(0x800000000L, 0x0L); | |
43 | + case 34: | |
44 | + jjmatchedKind = 103; | |
45 | + return jjMoveNfa_0(0, 0); | |
46 | + case 36: | |
47 | + jjmatchedKind = 26; | |
48 | + return jjMoveNfa_0(0, 0); | |
49 | + case 37: | |
50 | + jjmatchedKind = 17; | |
51 | + return jjMoveNfa_0(0, 0); | |
52 | + case 38: | |
53 | + jjmatchedKind = 20; | |
54 | + return jjMoveStringLiteralDfa1_0(0x40000L, 0x0L); | |
55 | + case 39: | |
56 | + jjmatchedKind = 104; | |
57 | + return jjMoveNfa_0(0, 0); | |
58 | + case 40: | |
59 | + jjmatchedKind = 22; | |
60 | + return jjMoveNfa_0(0, 0); | |
61 | + case 41: | |
62 | + jjmatchedKind = 23; | |
63 | + return jjMoveNfa_0(0, 0); | |
64 | + case 42: | |
65 | + jjmatchedKind = 11; | |
66 | + return jjMoveNfa_0(0, 0); | |
67 | + case 43: | |
68 | + jjmatchedKind = 13; | |
69 | + return jjMoveStringLiteralDfa1_0(0x1000L, 0x0L); | |
70 | + case 44: | |
71 | + jjmatchedKind = 28; | |
72 | + return jjMoveNfa_0(0, 0); | |
73 | + case 45: | |
74 | + jjmatchedKind = 15; | |
75 | + return jjMoveStringLiteralDfa1_0(0x4000L, 0x0L); | |
76 | + case 46: | |
77 | + jjmatchedKind = 27; | |
78 | + return jjMoveNfa_0(0, 0); | |
79 | + case 47: | |
80 | + jjmatchedKind = 16; | |
81 | + return jjMoveStringLiteralDfa1_0(0x0L, 0x60000000000L); | |
82 | + case 59: | |
83 | + jjmatchedKind = 9; | |
84 | + return jjMoveNfa_0(0, 0); | |
85 | + case 60: | |
86 | + jjmatchedKind = 38; | |
87 | + return jjMoveStringLiteralDfa1_0(0x8008020000000L, 0x0L); | |
88 | + case 61: | |
89 | + jjmatchedKind = 10; | |
90 | + return jjMoveStringLiteralDfa1_0(0x400000000L, 0x0L); | |
91 | + case 62: | |
92 | + jjmatchedKind = 36; | |
93 | + return jjMoveStringLiteralDfa1_0(0x2000000000L, 0x0L); | |
94 | + case 64: | |
95 | + jjmatchedKind = 31; | |
96 | + return jjMoveStringLiteralDfa1_0(0x40000000L, 0x0L); | |
97 | + case 65: | |
98 | + return jjMoveStringLiteralDfa1_0(0x2000000000000L, 0xc00410L); | |
99 | + case 66: | |
100 | + return jjMoveStringLiteralDfa1_0(0x0L, 0x404050002L); | |
101 | + case 67: | |
102 | + return jjMoveStringLiteralDfa1_0(0x800000000000000L, 0x800080000L); | |
103 | + case 68: | |
104 | + return jjMoveStringLiteralDfa1_0(0x100000000000L, 0x100000820L); | |
105 | + case 69: | |
106 | + return jjMoveStringLiteralDfa1_0(0x8000000000000000L, 0x100000L); | |
107 | + case 70: | |
108 | + return jjMoveStringLiteralDfa1_0(0x200400000000000L, 0x212000000L); | |
109 | + case 71: | |
110 | + return jjMoveStringLiteralDfa1_0(0x0L, 0x1L); | |
111 | + case 72: | |
112 | + return jjMoveStringLiteralDfa1_0(0x0L, 0x4L); | |
113 | + case 73: | |
114 | + return jjMoveStringLiteralDfa1_0(0x4080240000000000L, 0x28000L); | |
115 | + case 74: | |
116 | + return jjMoveStringLiteralDfa1_0(0x400000000000000L, 0x0L); | |
117 | + case 76: | |
118 | + return jjMoveStringLiteralDfa1_0(0x14000000000000L, 0x40L); | |
119 | + case 78: | |
120 | + return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x8002200L); | |
121 | + case 79: | |
122 | + return jjMoveStringLiteralDfa1_0(0x101000000000000L, 0x4188L); | |
123 | + case 82: | |
124 | + return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x20200000L); | |
125 | + case 83: | |
126 | + return jjMoveStringLiteralDfa1_0(0x1000020000000000L, 0x1000L); | |
127 | + case 84: | |
128 | + return jjMoveStringLiteralDfa1_0(0x0L, 0x1000000L); | |
129 | + case 85: | |
130 | + return jjMoveStringLiteralDfa1_0(0x80000000000L, 0x40000000L); | |
131 | + case 86: | |
132 | + return jjMoveStringLiteralDfa1_0(0x2000000000000000L, 0x0L); | |
133 | + case 87: | |
134 | + return jjMoveStringLiteralDfa1_0(0x800000000000L, 0x80000000L); | |
135 | + case 91: | |
136 | + jjmatchedKind = 24; | |
137 | + return jjMoveNfa_0(0, 0); | |
138 | + case 93: | |
139 | + jjmatchedKind = 25; | |
140 | + return jjMoveNfa_0(0, 0); | |
141 | + case 97: | |
142 | + return jjMoveStringLiteralDfa1_0(0x2000000000000L, 0xc00410L); | |
143 | + case 98: | |
144 | + return jjMoveStringLiteralDfa1_0(0x0L, 0x404050002L); | |
145 | + case 99: | |
146 | + return jjMoveStringLiteralDfa1_0(0x800000000000000L, 0x800080000L); | |
147 | + case 100: | |
148 | + return jjMoveStringLiteralDfa1_0(0x100000000000L, 0x100000820L); | |
149 | + case 101: | |
150 | + return jjMoveStringLiteralDfa1_0(0x8000000000000000L, 0x100000L); | |
151 | + case 102: | |
152 | + return jjMoveStringLiteralDfa1_0(0x200400000000000L, 0x212000000L); | |
153 | + case 103: | |
154 | + return jjMoveStringLiteralDfa1_0(0x0L, 0x1L); | |
155 | + case 104: | |
156 | + return jjMoveStringLiteralDfa1_0(0x0L, 0x4L); | |
157 | + case 105: | |
158 | + return jjMoveStringLiteralDfa1_0(0x4080240000000000L, 0x28000L); | |
159 | + case 106: | |
160 | + return jjMoveStringLiteralDfa1_0(0x400000000000000L, 0x0L); | |
161 | + case 108: | |
162 | + return jjMoveStringLiteralDfa1_0(0x14000000000000L, 0x40L); | |
163 | + case 110: | |
164 | + return jjMoveStringLiteralDfa1_0(0x40000000000000L, 0x8002200L); | |
165 | + case 111: | |
166 | + return jjMoveStringLiteralDfa1_0(0x101000000000000L, 0x4188L); | |
167 | + case 114: | |
168 | + return jjMoveStringLiteralDfa1_0(0x20000000000000L, 0x20200000L); | |
169 | + case 115: | |
170 | + return jjMoveStringLiteralDfa1_0(0x1000020000000000L, 0x1000L); | |
171 | + case 116: | |
172 | + return jjMoveStringLiteralDfa1_0(0x0L, 0x1000000L); | |
173 | + case 117: | |
174 | + return jjMoveStringLiteralDfa1_0(0x80000000000L, 0x40000000L); | |
175 | + case 118: | |
176 | + return jjMoveStringLiteralDfa1_0(0x2000000000000000L, 0x0L); | |
177 | + case 119: | |
178 | + return jjMoveStringLiteralDfa1_0(0x800000000000L, 0x80000000L); | |
179 | + case 123: | |
180 | + jjmatchedKind = 32; | |
181 | + return jjMoveNfa_0(0, 0); | |
182 | + case 124: | |
183 | + jjmatchedKind = 21; | |
184 | + return jjMoveStringLiteralDfa1_0(0x80000L, 0x0L); | |
185 | + case 125: | |
186 | + jjmatchedKind = 33; | |
187 | + return jjMoveNfa_0(0, 0); | |
188 | + default : | |
189 | + return jjMoveNfa_0(0, 0); | |
190 | + } | |
191 | +} | |
192 | +private final int jjMoveStringLiteralDfa1_0(long active0, long active1) | |
193 | +{ | |
194 | + try { curChar = input_stream.readChar(); } | |
195 | + catch(java.io.IOException e) { | |
196 | + return jjMoveNfa_0(0, 0); | |
197 | + } | |
198 | + switch(curChar) | |
199 | + { | |
200 | + case 38: | |
201 | + if ((active0 & 0x40000L) != 0L) | |
202 | + { | |
203 | + jjmatchedKind = 18; | |
204 | + jjmatchedPos = 1; | |
205 | + } | |
206 | + break; | |
207 | + case 42: | |
208 | + if ((active1 & 0x20000000000L) != 0L) | |
209 | + { | |
210 | + jjmatchedKind = 105; | |
211 | + jjmatchedPos = 1; | |
212 | + } | |
213 | + break; | |
214 | + case 43: | |
215 | + if ((active0 & 0x1000L) != 0L) | |
216 | + { | |
217 | + jjmatchedKind = 12; | |
218 | + jjmatchedPos = 1; | |
219 | + } | |
220 | + break; | |
221 | + case 45: | |
222 | + if ((active0 & 0x4000L) != 0L) | |
223 | + { | |
224 | + jjmatchedKind = 14; | |
225 | + jjmatchedPos = 1; | |
226 | + } | |
227 | + break; | |
228 | + case 47: | |
229 | + if ((active1 & 0x40000000000L) != 0L) | |
230 | + { | |
231 | + jjmatchedKind = 106; | |
232 | + jjmatchedPos = 1; | |
233 | + } | |
234 | + break; | |
235 | + case 61: | |
236 | + if ((active0 & 0x400000000L) != 0L) | |
237 | + { | |
238 | + jjmatchedKind = 34; | |
239 | + jjmatchedPos = 1; | |
240 | + } | |
241 | + else if ((active0 & 0x800000000L) != 0L) | |
242 | + { | |
243 | + jjmatchedKind = 35; | |
244 | + jjmatchedPos = 1; | |
245 | + } | |
246 | + else if ((active0 & 0x2000000000L) != 0L) | |
247 | + { | |
248 | + jjmatchedKind = 37; | |
249 | + jjmatchedPos = 1; | |
250 | + } | |
251 | + else if ((active0 & 0x8000000000L) != 0L) | |
252 | + { | |
253 | + jjmatchedKind = 39; | |
254 | + jjmatchedPos = 1; | |
255 | + } | |
256 | + break; | |
257 | + case 62: | |
258 | + if ((active0 & 0x20000000L) != 0L) | |
259 | + { | |
260 | + jjmatchedKind = 29; | |
261 | + jjmatchedPos = 1; | |
262 | + } | |
263 | + break; | |
264 | + case 64: | |
265 | + if ((active0 & 0x40000000L) != 0L) | |
266 | + { | |
267 | + jjmatchedKind = 30; | |
268 | + jjmatchedPos = 1; | |
269 | + } | |
270 | + break; | |
271 | + case 65: | |
272 | + return jjMoveStringLiteralDfa2_0(active0, 0x2040000000000000L, active1, 0x2000004L); | |
273 | + case 68: | |
274 | + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0xc00000L); | |
275 | + case 69: | |
276 | + return jjMoveStringLiteralDfa2_0(active0, 0x1018120000000000L, active1, 0x20050020L); | |
277 | + case 70: | |
278 | + if ((active0 & 0x4000000000000000L) != 0L) | |
279 | + { | |
280 | + jjmatchedKind = 62; | |
281 | + jjmatchedPos = 1; | |
282 | + } | |
283 | + else if ((active1 & 0x4000L) != 0L) | |
284 | + { | |
285 | + jjmatchedKind = 78; | |
286 | + jjmatchedPos = 1; | |
287 | + } | |
288 | + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x80L); | |
289 | + case 72: | |
290 | + return jjMoveStringLiteralDfa2_0(active0, 0x800000000000L, active1, 0x80001000L); | |
291 | + case 73: | |
292 | + return jjMoveStringLiteralDfa2_0(active0, 0x24000000000000L, active1, 0x840L); | |
293 | + case 76: | |
294 | + return jjMoveStringLiteralDfa2_0(active0, 0x8000000000000000L, active1, 0L); | |
295 | + case 78: | |
296 | + if ((active1 & 0x100L) != 0L) | |
297 | + { | |
298 | + jjmatchedKind = 72; | |
299 | + jjmatchedPos = 1; | |
300 | + } | |
301 | + else if ((active1 & 0x8000L) != 0L) | |
302 | + { | |
303 | + jjmatchedKind = 79; | |
304 | + jjmatchedPos = 1; | |
305 | + } | |
306 | + return jjMoveStringLiteralDfa2_0(active0, 0x82240000000000L, active1, 0x100000L); | |
307 | + case 79: | |
308 | + if ((active1 & 0x100000000L) != 0L) | |
309 | + { | |
310 | + jjmatchedKind = 96; | |
311 | + jjmatchedPos = 1; | |
312 | + } | |
313 | + return jjMoveStringLiteralDfa2_0(active0, 0x400000000000000L, active1, 0xa04282200L); | |
314 | + case 80: | |
315 | + return jjMoveStringLiteralDfa2_0(active0, 0x80000000000L, active1, 0L); | |
316 | + case 82: | |
317 | + if ((active0 & 0x1000000000000L) != 0L) | |
318 | + { | |
319 | + jjmatchedKind = 48; | |
320 | + jjmatchedPos = 1; | |
321 | + } | |
322 | + return jjMoveStringLiteralDfa2_0(active0, 0x800400000000000L, active1, 0x401000009L); | |
323 | + case 83: | |
324 | + if ((active1 & 0x400L) != 0L) | |
325 | + { | |
326 | + jjmatchedKind = 74; | |
327 | + jjmatchedPos = 1; | |
328 | + } | |
329 | + else if ((active1 & 0x20000L) != 0L) | |
330 | + { | |
331 | + jjmatchedKind = 81; | |
332 | + jjmatchedPos = 1; | |
333 | + } | |
334 | + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x40000010L); | |
335 | + case 85: | |
336 | + return jjMoveStringLiteralDfa2_0(active0, 0x300000000000000L, active1, 0x18000000L); | |
337 | + case 89: | |
338 | + if ((active1 & 0x2L) != 0L) | |
339 | + { | |
340 | + jjmatchedKind = 65; | |
341 | + jjmatchedPos = 1; | |
342 | + } | |
343 | + break; | |
344 | + case 97: | |
345 | + return jjMoveStringLiteralDfa2_0(active0, 0x2040000000000000L, active1, 0x2000004L); | |
346 | + case 100: | |
347 | + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0xc00000L); | |
348 | + case 101: | |
349 | + return jjMoveStringLiteralDfa2_0(active0, 0x1018120000000000L, active1, 0x20050020L); | |
350 | + case 102: | |
351 | + if ((active0 & 0x4000000000000000L) != 0L) | |
352 | + { | |
353 | + jjmatchedKind = 62; | |
354 | + jjmatchedPos = 1; | |
355 | + } | |
356 | + else if ((active1 & 0x4000L) != 0L) | |
357 | + { | |
358 | + jjmatchedKind = 78; | |
359 | + jjmatchedPos = 1; | |
360 | + } | |
361 | + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x80L); | |
362 | + case 104: | |
363 | + return jjMoveStringLiteralDfa2_0(active0, 0x800000000000L, active1, 0x80001000L); | |
364 | + case 105: | |
365 | + return jjMoveStringLiteralDfa2_0(active0, 0x24000000000000L, active1, 0x840L); | |
366 | + case 108: | |
367 | + return jjMoveStringLiteralDfa2_0(active0, 0x8000000000000000L, active1, 0L); | |
368 | + case 110: | |
369 | + if ((active1 & 0x100L) != 0L) | |
370 | + { | |
371 | + jjmatchedKind = 72; | |
372 | + jjmatchedPos = 1; | |
373 | + } | |
374 | + else if ((active1 & 0x8000L) != 0L) | |
375 | + { | |
376 | + jjmatchedKind = 79; | |
377 | + jjmatchedPos = 1; | |
378 | + } | |
379 | + return jjMoveStringLiteralDfa2_0(active0, 0x82240000000000L, active1, 0x100000L); | |
380 | + case 111: | |
381 | + if ((active1 & 0x100000000L) != 0L) | |
382 | + { | |
383 | + jjmatchedKind = 96; | |
384 | + jjmatchedPos = 1; | |
385 | + } | |
386 | + return jjMoveStringLiteralDfa2_0(active0, 0x400000000000000L, active1, 0xa04282200L); | |
387 | + case 112: | |
388 | + return jjMoveStringLiteralDfa2_0(active0, 0x80000000000L, active1, 0L); | |
389 | + case 114: | |
390 | + if ((active0 & 0x1000000000000L) != 0L) | |
391 | + { | |
392 | + jjmatchedKind = 48; | |
393 | + jjmatchedPos = 1; | |
394 | + } | |
395 | + return jjMoveStringLiteralDfa2_0(active0, 0x800400000000000L, active1, 0x401000009L); | |
396 | + case 115: | |
397 | + if ((active1 & 0x400L) != 0L) | |
398 | + { | |
399 | + jjmatchedKind = 74; | |
400 | + jjmatchedPos = 1; | |
401 | + } | |
402 | + else if ((active1 & 0x20000L) != 0L) | |
403 | + { | |
404 | + jjmatchedKind = 81; | |
405 | + jjmatchedPos = 1; | |
406 | + } | |
407 | + return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x40000010L); | |
408 | + case 117: | |
409 | + return jjMoveStringLiteralDfa2_0(active0, 0x300000000000000L, active1, 0x18000000L); | |
410 | + case 121: | |
411 | + if ((active1 & 0x2L) != 0L) | |
412 | + { | |
413 | + jjmatchedKind = 65; | |
414 | + jjmatchedPos = 1; | |
415 | + } | |
416 | + break; | |
417 | + case 124: | |
418 | + if ((active0 & 0x80000L) != 0L) | |
419 | + { | |
420 | + jjmatchedKind = 19; | |
421 | + jjmatchedPos = 1; | |
422 | + } | |
423 | + break; | |
424 | + default : | |
425 | + break; | |
426 | + } | |
427 | + return jjMoveNfa_0(0, 1); | |
428 | +} | |
429 | +private final int jjMoveStringLiteralDfa2_0(long old0, long active0, long old1, long active1) | |
430 | +{ | |
431 | + if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
432 | + return jjMoveNfa_0(0, 1); | |
433 | + try { curChar = input_stream.readChar(); } | |
434 | + catch(java.io.IOException e) { | |
435 | + return jjMoveNfa_0(0, 1); | |
436 | + } | |
437 | + switch(curChar) | |
438 | + { | |
439 | + case 65: | |
440 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000L); | |
441 | + case 67: | |
442 | + if ((active1 & 0x10L) != 0L) | |
443 | + { | |
444 | + jjmatchedKind = 68; | |
445 | + jjmatchedPos = 2; | |
446 | + } | |
447 | + break; | |
448 | + case 68: | |
449 | + if ((active0 & 0x2000000000000L) != 0L) | |
450 | + { | |
451 | + jjmatchedKind = 49; | |
452 | + jjmatchedPos = 2; | |
453 | + } | |
454 | + else if ((active1 & 0x100000L) != 0L) | |
455 | + { | |
456 | + jjmatchedKind = 84; | |
457 | + jjmatchedPos = 2; | |
458 | + } | |
459 | + return jjMoveStringLiteralDfa3_0(active0, 0x80000000000L, active1, 0x8L); | |
460 | + case 69: | |
461 | + if ((active1 & 0x40000000L) != 0L) | |
462 | + { | |
463 | + jjmatchedKind = 94; | |
464 | + jjmatchedPos = 2; | |
465 | + } | |
466 | + return jjMoveStringLiteralDfa3_0(active0, 0x800000000000L, active1, 0x400000000L); | |
467 | + case 70: | |
468 | + return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L, active1, 0x80L); | |
469 | + case 71: | |
470 | + return jjMoveStringLiteralDfa3_0(active0, 0x20000000000000L, active1, 0x40000L); | |
471 | + case 73: | |
472 | + return jjMoveStringLiteralDfa3_0(active0, 0x400000000000000L, active1, 0x80000000L); | |
473 | + case 74: | |
474 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0xc00000L); | |
475 | + case 75: | |
476 | + return jjMoveStringLiteralDfa3_0(active0, 0x4000000000000L, active1, 0L); | |
477 | + case 76: | |
478 | + return jjMoveStringLiteralDfa3_0(active0, 0x2200120000000000L, active1, 0xa200000L); | |
479 | + case 77: | |
480 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x80040L); | |
481 | + case 78: | |
482 | + return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, active1, 0x810000000L); | |
483 | + case 79: | |
484 | + return jjMoveStringLiteralDfa3_0(active0, 0x800400000000000L, active1, 0x4000001L); | |
485 | + case 82: | |
486 | + if ((active1 & 0x200000000L) != 0L) | |
487 | + { | |
488 | + jjmatchedKind = 97; | |
489 | + jjmatchedPos = 2; | |
490 | + } | |
491 | + break; | |
492 | + case 83: | |
493 | + return jjMoveStringLiteralDfa3_0(active0, 0x8008040000000000L, active1, 0x820L); | |
494 | + case 84: | |
495 | + if ((active0 & 0x1000000000000000L) != 0L) | |
496 | + { | |
497 | + jjmatchedKind = 60; | |
498 | + jjmatchedPos = 2; | |
499 | + } | |
500 | + else if ((active1 & 0x200L) != 0L) | |
501 | + { | |
502 | + jjmatchedKind = 73; | |
503 | + jjmatchedPos = 2; | |
504 | + } | |
505 | + return jjMoveStringLiteralDfa3_0(active0, 0x140200000000000L, active1, 0x20010000L); | |
506 | + case 85: | |
507 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000000L); | |
508 | + case 86: | |
509 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4L); | |
510 | + case 87: | |
511 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2000L); | |
512 | + case 97: | |
513 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000L); | |
514 | + case 99: | |
515 | + if ((active1 & 0x10L) != 0L) | |
516 | + { | |
517 | + jjmatchedKind = 68; | |
518 | + jjmatchedPos = 2; | |
519 | + } | |
520 | + break; | |
521 | + case 100: | |
522 | + if ((active0 & 0x2000000000000L) != 0L) | |
523 | + { | |
524 | + jjmatchedKind = 49; | |
525 | + jjmatchedPos = 2; | |
526 | + } | |
527 | + else if ((active1 & 0x100000L) != 0L) | |
528 | + { | |
529 | + jjmatchedKind = 84; | |
530 | + jjmatchedPos = 2; | |
531 | + } | |
532 | + return jjMoveStringLiteralDfa3_0(active0, 0x80000000000L, active1, 0x8L); | |
533 | + case 101: | |
534 | + if ((active1 & 0x40000000L) != 0L) | |
535 | + { | |
536 | + jjmatchedKind = 94; | |
537 | + jjmatchedPos = 2; | |
538 | + } | |
539 | + return jjMoveStringLiteralDfa3_0(active0, 0x800000000000L, active1, 0x400000000L); | |
540 | + case 102: | |
541 | + return jjMoveStringLiteralDfa3_0(active0, 0x10000000000000L, active1, 0x80L); | |
542 | + case 103: | |
543 | + return jjMoveStringLiteralDfa3_0(active0, 0x20000000000000L, active1, 0x40000L); | |
544 | + case 105: | |
545 | + return jjMoveStringLiteralDfa3_0(active0, 0x400000000000000L, active1, 0x80000000L); | |
546 | + case 106: | |
547 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0xc00000L); | |
548 | + case 107: | |
549 | + return jjMoveStringLiteralDfa3_0(active0, 0x4000000000000L, active1, 0L); | |
550 | + case 108: | |
551 | + return jjMoveStringLiteralDfa3_0(active0, 0x2200120000000000L, active1, 0xa200000L); | |
552 | + case 109: | |
553 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x80040L); | |
554 | + case 110: | |
555 | + return jjMoveStringLiteralDfa3_0(active0, 0x80000000000000L, active1, 0x810000000L); | |
556 | + case 111: | |
557 | + return jjMoveStringLiteralDfa3_0(active0, 0x800400000000000L, active1, 0x4000001L); | |
558 | + case 114: | |
559 | + if ((active1 & 0x200000000L) != 0L) | |
560 | + { | |
561 | + jjmatchedKind = 97; | |
562 | + jjmatchedPos = 2; | |
563 | + } | |
564 | + break; | |
565 | + case 115: | |
566 | + return jjMoveStringLiteralDfa3_0(active0, 0x8008040000000000L, active1, 0x820L); | |
567 | + case 116: | |
568 | + if ((active0 & 0x1000000000000000L) != 0L) | |
569 | + { | |
570 | + jjmatchedKind = 60; | |
571 | + jjmatchedPos = 2; | |
572 | + } | |
573 | + else if ((active1 & 0x200L) != 0L) | |
574 | + { | |
575 | + jjmatchedKind = 73; | |
576 | + jjmatchedPos = 2; | |
577 | + } | |
578 | + return jjMoveStringLiteralDfa3_0(active0, 0x140200000000000L, active1, 0x20010000L); | |
579 | + case 117: | |
580 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x1000000L); | |
581 | + case 118: | |
582 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x4L); | |
583 | + case 119: | |
584 | + return jjMoveStringLiteralDfa3_0(active0, 0L, active1, 0x2000L); | |
585 | + default : | |
586 | + break; | |
587 | + } | |
588 | + return jjMoveNfa_0(0, 2); | |
589 | +} | |
590 | +private final int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1) | |
591 | +{ | |
592 | + if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
593 | + return jjMoveNfa_0(0, 2); | |
594 | + try { curChar = input_stream.readChar(); } | |
595 | + catch(java.io.IOException e) { | |
596 | + return jjMoveNfa_0(0, 2); | |
597 | + } | |
598 | + switch(curChar) | |
599 | + { | |
600 | + case 65: | |
601 | + return jjMoveStringLiteralDfa4_0(active0, 0x80000000000L, active1, 0x400002000L); | |
602 | + case 67: | |
603 | + if ((active1 & 0x20L) != 0L) | |
604 | + { | |
605 | + jjmatchedKind = 69; | |
606 | + jjmatchedPos = 3; | |
607 | + } | |
608 | + return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000L, active1, 0x10000000L); | |
609 | + case 69: | |
610 | + if ((active0 & 0x4000000000000L) != 0L) | |
611 | + { | |
612 | + jjmatchedKind = 50; | |
613 | + jjmatchedPos = 3; | |
614 | + } | |
615 | + else if ((active0 & 0x8000000000000000L) != 0L) | |
616 | + { | |
617 | + jjmatchedKind = 63; | |
618 | + jjmatchedPos = 3; | |
619 | + } | |
620 | + else if ((active1 & 0x1000000L) != 0L) | |
621 | + { | |
622 | + jjmatchedKind = 88; | |
623 | + jjmatchedPos = 3; | |
624 | + } | |
625 | + return jjMoveStringLiteralDfa4_0(active0, 0x180160000000000L, active1, 0x8L); | |
626 | + case 72: | |
627 | + return jjMoveStringLiteralDfa4_0(active0, 0x20000000000000L, active1, 0L); | |
628 | + case 73: | |
629 | + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x40044L); | |
630 | + case 76: | |
631 | + if ((active0 & 0x200000000000000L) != 0L) | |
632 | + { | |
633 | + jjmatchedKind = 57; | |
634 | + jjmatchedPos = 3; | |
635 | + } | |
636 | + else if ((active1 & 0x4000000L) != 0L) | |
637 | + { | |
638 | + jjmatchedKind = 90; | |
639 | + jjmatchedPos = 3; | |
640 | + } | |
641 | + else if ((active1 & 0x8000000L) != 0L) | |
642 | + { | |
643 | + jjmatchedKind = 91; | |
644 | + jjmatchedPos = 3; | |
645 | + } | |
646 | + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x80200000L); | |
647 | + case 77: | |
648 | + if ((active0 & 0x400000000000L) != 0L) | |
649 | + { | |
650 | + jjmatchedKind = 46; | |
651 | + jjmatchedPos = 3; | |
652 | + } | |
653 | + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x80000L); | |
654 | + case 78: | |
655 | + if ((active0 & 0x400000000000000L) != 0L) | |
656 | + { | |
657 | + jjmatchedKind = 58; | |
658 | + jjmatchedPos = 3; | |
659 | + } | |
660 | + break; | |
661 | + case 79: | |
662 | + if ((active0 & 0x200000000000L) != 0L) | |
663 | + { | |
664 | + jjmatchedKind = 45; | |
665 | + jjmatchedPos = 3; | |
666 | + } | |
667 | + break; | |
668 | + case 82: | |
669 | + return jjMoveStringLiteralDfa4_0(active0, 0x800000000000L, active1, 0x1000L); | |
670 | + case 83: | |
671 | + return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, active1, 0x2000080L); | |
672 | + case 84: | |
673 | + if ((active0 & 0x10000000000000L) != 0L) | |
674 | + { | |
675 | + jjmatchedKind = 52; | |
676 | + jjmatchedPos = 3; | |
677 | + } | |
678 | + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000800L); | |
679 | + case 85: | |
680 | + return jjMoveStringLiteralDfa4_0(active0, 0x2040000000000000L, active1, 0x20c00001L); | |
681 | + case 87: | |
682 | + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x10000L); | |
683 | + case 97: | |
684 | + return jjMoveStringLiteralDfa4_0(active0, 0x80000000000L, active1, 0x400002000L); | |
685 | + case 99: | |
686 | + if ((active1 & 0x20L) != 0L) | |
687 | + { | |
688 | + jjmatchedKind = 69; | |
689 | + jjmatchedPos = 3; | |
690 | + } | |
691 | + return jjMoveStringLiteralDfa4_0(active0, 0x8000000000000L, active1, 0x10000000L); | |
692 | + case 101: | |
693 | + if ((active0 & 0x4000000000000L) != 0L) | |
694 | + { | |
695 | + jjmatchedKind = 50; | |
696 | + jjmatchedPos = 3; | |
697 | + } | |
698 | + else if ((active0 & 0x8000000000000000L) != 0L) | |
699 | + { | |
700 | + jjmatchedKind = 63; | |
701 | + jjmatchedPos = 3; | |
702 | + } | |
703 | + else if ((active1 & 0x1000000L) != 0L) | |
704 | + { | |
705 | + jjmatchedKind = 88; | |
706 | + jjmatchedPos = 3; | |
707 | + } | |
708 | + return jjMoveStringLiteralDfa4_0(active0, 0x180160000000000L, active1, 0x8L); | |
709 | + case 104: | |
710 | + return jjMoveStringLiteralDfa4_0(active0, 0x20000000000000L, active1, 0L); | |
711 | + case 105: | |
712 | + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x40044L); | |
713 | + case 108: | |
714 | + if ((active0 & 0x200000000000000L) != 0L) | |
715 | + { | |
716 | + jjmatchedKind = 57; | |
717 | + jjmatchedPos = 3; | |
718 | + } | |
719 | + else if ((active1 & 0x4000000L) != 0L) | |
720 | + { | |
721 | + jjmatchedKind = 90; | |
722 | + jjmatchedPos = 3; | |
723 | + } | |
724 | + else if ((active1 & 0x8000000L) != 0L) | |
725 | + { | |
726 | + jjmatchedKind = 91; | |
727 | + jjmatchedPos = 3; | |
728 | + } | |
729 | + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x80200000L); | |
730 | + case 109: | |
731 | + if ((active0 & 0x400000000000L) != 0L) | |
732 | + { | |
733 | + jjmatchedKind = 46; | |
734 | + jjmatchedPos = 3; | |
735 | + } | |
736 | + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x80000L); | |
737 | + case 110: | |
738 | + if ((active0 & 0x400000000000000L) != 0L) | |
739 | + { | |
740 | + jjmatchedKind = 58; | |
741 | + jjmatchedPos = 3; | |
742 | + } | |
743 | + break; | |
744 | + case 111: | |
745 | + if ((active0 & 0x200000000000L) != 0L) | |
746 | + { | |
747 | + jjmatchedKind = 45; | |
748 | + jjmatchedPos = 3; | |
749 | + } | |
750 | + break; | |
751 | + case 114: | |
752 | + return jjMoveStringLiteralDfa4_0(active0, 0x800000000000L, active1, 0x1000L); | |
753 | + case 115: | |
754 | + return jjMoveStringLiteralDfa4_0(active0, 0x800000000000000L, active1, 0x2000080L); | |
755 | + case 116: | |
756 | + if ((active0 & 0x10000000000000L) != 0L) | |
757 | + { | |
758 | + jjmatchedKind = 52; | |
759 | + jjmatchedPos = 3; | |
760 | + } | |
761 | + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x800000800L); | |
762 | + case 117: | |
763 | + return jjMoveStringLiteralDfa4_0(active0, 0x2040000000000000L, active1, 0x20c00001L); | |
764 | + case 119: | |
765 | + return jjMoveStringLiteralDfa4_0(active0, 0L, active1, 0x10000L); | |
766 | + default : | |
767 | + break; | |
768 | + } | |
769 | + return jjMoveNfa_0(0, 3); | |
770 | +} | |
771 | +private final int jjMoveStringLiteralDfa4_0(long old0, long active0, long old1, long active1) | |
772 | +{ | |
773 | + if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
774 | + return jjMoveNfa_0(0, 3); | |
775 | + try { curChar = input_stream.readChar(); } | |
776 | + catch(java.io.IOException e) { | |
777 | + return jjMoveNfa_0(0, 3); | |
778 | + } | |
779 | + switch(curChar) | |
780 | + { | |
781 | + case 65: | |
782 | + return jjMoveStringLiteralDfa5_0(active0, 0x8000000000000L, active1, 0L); | |
783 | + case 66: | |
784 | + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x200000L); | |
785 | + case 67: | |
786 | + return jjMoveStringLiteralDfa5_0(active0, 0x20000000000L, active1, 0L); | |
787 | + case 69: | |
788 | + if ((active0 & 0x800000000000L) != 0L) | |
789 | + { | |
790 | + jjmatchedKind = 47; | |
791 | + jjmatchedPos = 4; | |
792 | + } | |
793 | + else if ((active1 & 0x1000L) != 0L) | |
794 | + { | |
795 | + jjmatchedKind = 76; | |
796 | + jjmatchedPos = 4; | |
797 | + } | |
798 | + else if ((active1 & 0x2000000L) != 0L) | |
799 | + { | |
800 | + jjmatchedKind = 89; | |
801 | + jjmatchedPos = 4; | |
802 | + } | |
803 | + else if ((active1 & 0x80000000L) != 0L) | |
804 | + { | |
805 | + jjmatchedKind = 95; | |
806 | + jjmatchedPos = 4; | |
807 | + } | |
808 | + return jjMoveStringLiteralDfa5_0(active0, 0x2000000000000000L, active1, 0x10080L); | |
809 | + case 73: | |
810 | + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x800082800L); | |
811 | + case 75: | |
812 | + if ((active1 & 0x400000000L) != 0L) | |
813 | + { | |
814 | + jjmatchedKind = 98; | |
815 | + jjmatchedPos = 4; | |
816 | + } | |
817 | + break; | |
818 | + case 78: | |
819 | + if ((active1 & 0x40000L) != 0L) | |
820 | + { | |
821 | + jjmatchedKind = 82; | |
822 | + jjmatchedPos = 4; | |
823 | + } | |
824 | + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L); | |
825 | + case 80: | |
826 | + if ((active1 & 0x1L) != 0L) | |
827 | + { | |
828 | + jjmatchedKind = 64; | |
829 | + jjmatchedPos = 4; | |
830 | + } | |
831 | + break; | |
832 | + case 82: | |
833 | + if ((active0 & 0x80000000000000L) != 0L) | |
834 | + { | |
835 | + jjmatchedKind = 55; | |
836 | + jjmatchedPos = 4; | |
837 | + } | |
838 | + else if ((active0 & 0x100000000000000L) != 0L) | |
839 | + { | |
840 | + jjmatchedKind = 56; | |
841 | + jjmatchedPos = 4; | |
842 | + } | |
843 | + else if ((active1 & 0x8L) != 0L) | |
844 | + { | |
845 | + jjmatchedKind = 67; | |
846 | + jjmatchedPos = 4; | |
847 | + } | |
848 | + return jjMoveStringLiteralDfa5_0(active0, 0x40040000000000L, active1, 0x20000000L); | |
849 | + case 83: | |
850 | + if ((active0 & 0x800000000000000L) != 0L) | |
851 | + { | |
852 | + jjmatchedKind = 59; | |
853 | + jjmatchedPos = 4; | |
854 | + } | |
855 | + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0xc00000L); | |
856 | + case 84: | |
857 | + if ((active0 & 0x20000000000000L) != 0L) | |
858 | + { | |
859 | + jjmatchedKind = 53; | |
860 | + jjmatchedPos = 4; | |
861 | + } | |
862 | + else if ((active1 & 0x40L) != 0L) | |
863 | + { | |
864 | + jjmatchedKind = 70; | |
865 | + jjmatchedPos = 4; | |
866 | + } | |
867 | + return jjMoveStringLiteralDfa5_0(active0, 0x180000000000L, active1, 0x10000000L); | |
868 | + case 97: | |
869 | + return jjMoveStringLiteralDfa5_0(active0, 0x8000000000000L, active1, 0L); | |
870 | + case 98: | |
871 | + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x200000L); | |
872 | + case 99: | |
873 | + return jjMoveStringLiteralDfa5_0(active0, 0x20000000000L, active1, 0L); | |
874 | + case 101: | |
875 | + if ((active0 & 0x800000000000L) != 0L) | |
876 | + { | |
877 | + jjmatchedKind = 47; | |
878 | + jjmatchedPos = 4; | |
879 | + } | |
880 | + else if ((active1 & 0x1000L) != 0L) | |
881 | + { | |
882 | + jjmatchedKind = 76; | |
883 | + jjmatchedPos = 4; | |
884 | + } | |
885 | + else if ((active1 & 0x2000000L) != 0L) | |
886 | + { | |
887 | + jjmatchedKind = 89; | |
888 | + jjmatchedPos = 4; | |
889 | + } | |
890 | + else if ((active1 & 0x80000000L) != 0L) | |
891 | + { | |
892 | + jjmatchedKind = 95; | |
893 | + jjmatchedPos = 4; | |
894 | + } | |
895 | + return jjMoveStringLiteralDfa5_0(active0, 0x2000000000000000L, active1, 0x10080L); | |
896 | + case 105: | |
897 | + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x800082800L); | |
898 | + case 107: | |
899 | + if ((active1 & 0x400000000L) != 0L) | |
900 | + { | |
901 | + jjmatchedKind = 98; | |
902 | + jjmatchedPos = 4; | |
903 | + } | |
904 | + break; | |
905 | + case 110: | |
906 | + if ((active1 & 0x40000L) != 0L) | |
907 | + { | |
908 | + jjmatchedKind = 82; | |
909 | + jjmatchedPos = 4; | |
910 | + } | |
911 | + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0x4L); | |
912 | + case 112: | |
913 | + if ((active1 & 0x1L) != 0L) | |
914 | + { | |
915 | + jjmatchedKind = 64; | |
916 | + jjmatchedPos = 4; | |
917 | + } | |
918 | + break; | |
919 | + case 114: | |
920 | + if ((active0 & 0x80000000000000L) != 0L) | |
921 | + { | |
922 | + jjmatchedKind = 55; | |
923 | + jjmatchedPos = 4; | |
924 | + } | |
925 | + else if ((active0 & 0x100000000000000L) != 0L) | |
926 | + { | |
927 | + jjmatchedKind = 56; | |
928 | + jjmatchedPos = 4; | |
929 | + } | |
930 | + else if ((active1 & 0x8L) != 0L) | |
931 | + { | |
932 | + jjmatchedKind = 67; | |
933 | + jjmatchedPos = 4; | |
934 | + } | |
935 | + return jjMoveStringLiteralDfa5_0(active0, 0x40040000000000L, active1, 0x20000000L); | |
936 | + case 115: | |
937 | + if ((active0 & 0x800000000000000L) != 0L) | |
938 | + { | |
939 | + jjmatchedKind = 59; | |
940 | + jjmatchedPos = 4; | |
941 | + } | |
942 | + return jjMoveStringLiteralDfa5_0(active0, 0L, active1, 0xc00000L); | |
943 | + case 116: | |
944 | + if ((active0 & 0x20000000000000L) != 0L) | |
945 | + { | |
946 | + jjmatchedKind = 53; | |
947 | + jjmatchedPos = 4; | |
948 | + } | |
949 | + else if ((active1 & 0x40L) != 0L) | |
950 | + { | |
951 | + jjmatchedKind = 70; | |
952 | + jjmatchedPos = 4; | |
953 | + } | |
954 | + return jjMoveStringLiteralDfa5_0(active0, 0x180000000000L, active1, 0x10000000L); | |
955 | + default : | |
956 | + break; | |
957 | + } | |
958 | + return jjMoveNfa_0(0, 4); | |
959 | +} | |
960 | +private final int jjMoveStringLiteralDfa5_0(long old0, long active0, long old1, long active1) | |
961 | +{ | |
962 | + if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
963 | + return jjMoveNfa_0(0, 4); | |
964 | + try { curChar = input_stream.readChar(); } | |
965 | + catch(java.io.IOException e) { | |
966 | + return jjMoveNfa_0(0, 4); | |
967 | + } | |
968 | + switch(curChar) | |
969 | + { | |
970 | + case 65: | |
971 | + return jjMoveStringLiteralDfa6_0(active0, 0x40000000000000L, active1, 0x200000L); | |
972 | + case 69: | |
973 | + if ((active0 & 0x80000000000L) != 0L) | |
974 | + { | |
975 | + jjmatchedKind = 43; | |
976 | + jjmatchedPos = 5; | |
977 | + } | |
978 | + else if ((active0 & 0x100000000000L) != 0L) | |
979 | + { | |
980 | + jjmatchedKind = 44; | |
981 | + jjmatchedPos = 5; | |
982 | + } | |
983 | + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10000L); | |
984 | + case 71: | |
985 | + if ((active1 & 0x4L) != 0L) | |
986 | + { | |
987 | + jjmatchedKind = 66; | |
988 | + jjmatchedPos = 5; | |
989 | + } | |
990 | + break; | |
991 | + case 73: | |
992 | + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10000000L); | |
993 | + case 78: | |
994 | + if ((active1 & 0x20000000L) != 0L) | |
995 | + { | |
996 | + jjmatchedKind = 93; | |
997 | + jjmatchedPos = 5; | |
998 | + } | |
999 | + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x800000800L); | |
1000 | + case 80: | |
1001 | + return jjMoveStringLiteralDfa6_0(active0, 0x8000000000000L, active1, 0L); | |
1002 | + case 83: | |
1003 | + if ((active0 & 0x2000000000000000L) != 0L) | |
1004 | + { | |
1005 | + jjmatchedKind = 61; | |
1006 | + jjmatchedPos = 5; | |
1007 | + } | |
1008 | + break; | |
1009 | + case 84: | |
1010 | + if ((active0 & 0x20000000000L) != 0L) | |
1011 | + { | |
1012 | + jjmatchedKind = 41; | |
1013 | + jjmatchedPos = 5; | |
1014 | + } | |
1015 | + else if ((active0 & 0x40000000000L) != 0L) | |
1016 | + { | |
1017 | + jjmatchedKind = 42; | |
1018 | + jjmatchedPos = 5; | |
1019 | + } | |
1020 | + else if ((active1 & 0x80L) != 0L) | |
1021 | + { | |
1022 | + jjmatchedKind = 71; | |
1023 | + jjmatchedPos = 5; | |
1024 | + } | |
1025 | + else if ((active1 & 0x2000L) != 0L) | |
1026 | + { | |
1027 | + jjmatchedKind = 77; | |
1028 | + jjmatchedPos = 5; | |
1029 | + } | |
1030 | + else if ((active1 & 0x80000L) != 0L) | |
1031 | + { | |
1032 | + jjmatchedKind = 83; | |
1033 | + jjmatchedPos = 5; | |
1034 | + } | |
1035 | + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0xc00000L); | |
1036 | + case 97: | |
1037 | + return jjMoveStringLiteralDfa6_0(active0, 0x40000000000000L, active1, 0x200000L); | |
1038 | + case 101: | |
1039 | + if ((active0 & 0x80000000000L) != 0L) | |
1040 | + { | |
1041 | + jjmatchedKind = 43; | |
1042 | + jjmatchedPos = 5; | |
1043 | + } | |
1044 | + else if ((active0 & 0x100000000000L) != 0L) | |
1045 | + { | |
1046 | + jjmatchedKind = 44; | |
1047 | + jjmatchedPos = 5; | |
1048 | + } | |
1049 | + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10000L); | |
1050 | + case 103: | |
1051 | + if ((active1 & 0x4L) != 0L) | |
1052 | + { | |
1053 | + jjmatchedKind = 66; | |
1054 | + jjmatchedPos = 5; | |
1055 | + } | |
1056 | + break; | |
1057 | + case 105: | |
1058 | + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x10000000L); | |
1059 | + case 110: | |
1060 | + if ((active1 & 0x20000000L) != 0L) | |
1061 | + { | |
1062 | + jjmatchedKind = 93; | |
1063 | + jjmatchedPos = 5; | |
1064 | + } | |
1065 | + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0x800000800L); | |
1066 | + case 112: | |
1067 | + return jjMoveStringLiteralDfa6_0(active0, 0x8000000000000L, active1, 0L); | |
1068 | + case 115: | |
1069 | + if ((active0 & 0x2000000000000000L) != 0L) | |
1070 | + { | |
1071 | + jjmatchedKind = 61; | |
1072 | + jjmatchedPos = 5; | |
1073 | + } | |
1074 | + break; | |
1075 | + case 116: | |
1076 | + if ((active0 & 0x20000000000L) != 0L) | |
1077 | + { | |
1078 | + jjmatchedKind = 41; | |
1079 | + jjmatchedPos = 5; | |
1080 | + } | |
1081 | + else if ((active0 & 0x40000000000L) != 0L) | |
1082 | + { | |
1083 | + jjmatchedKind = 42; | |
1084 | + jjmatchedPos = 5; | |
1085 | + } | |
1086 | + else if ((active1 & 0x80L) != 0L) | |
1087 | + { | |
1088 | + jjmatchedKind = 71; | |
1089 | + jjmatchedPos = 5; | |
1090 | + } | |
1091 | + else if ((active1 & 0x2000L) != 0L) | |
1092 | + { | |
1093 | + jjmatchedKind = 77; | |
1094 | + jjmatchedPos = 5; | |
1095 | + } | |
1096 | + else if ((active1 & 0x80000L) != 0L) | |
1097 | + { | |
1098 | + jjmatchedKind = 83; | |
1099 | + jjmatchedPos = 5; | |
1100 | + } | |
1101 | + return jjMoveStringLiteralDfa6_0(active0, 0L, active1, 0xc00000L); | |
1102 | + default : | |
1103 | + break; | |
1104 | + } | |
1105 | + return jjMoveNfa_0(0, 5); | |
1106 | +} | |
1107 | +private final int jjMoveStringLiteralDfa6_0(long old0, long active0, long old1, long active1) | |
1108 | +{ | |
1109 | + if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
1110 | + return jjMoveNfa_0(0, 5); | |
1111 | + try { curChar = input_stream.readChar(); } | |
1112 | + catch(java.io.IOException e) { | |
1113 | + return jjMoveNfa_0(0, 5); | |
1114 | + } | |
1115 | + switch(curChar) | |
1116 | + { | |
1117 | + case 67: | |
1118 | + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x200800L); | |
1119 | + case 69: | |
1120 | + return jjMoveStringLiteralDfa7_0(active0, 0x8000000000000L, active1, 0L); | |
1121 | + case 76: | |
1122 | + if ((active0 & 0x40000000000000L) != 0L) | |
1123 | + { | |
1124 | + jjmatchedKind = 54; | |
1125 | + jjmatchedPos = 6; | |
1126 | + } | |
1127 | + break; | |
1128 | + case 78: | |
1129 | + if ((active1 & 0x10000L) != 0L) | |
1130 | + { | |
1131 | + jjmatchedKind = 80; | |
1132 | + jjmatchedPos = 6; | |
1133 | + } | |
1134 | + break; | |
1135 | + case 79: | |
1136 | + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x10000000L); | |
1137 | + case 85: | |
1138 | + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x800000000L); | |
1139 | + case 95: | |
1140 | + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0xc00000L); | |
1141 | + case 99: | |
1142 | + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x200800L); | |
1143 | + case 101: | |
1144 | + return jjMoveStringLiteralDfa7_0(active0, 0x8000000000000L, active1, 0L); | |
1145 | + case 108: | |
1146 | + if ((active0 & 0x40000000000000L) != 0L) | |
1147 | + { | |
1148 | + jjmatchedKind = 54; | |
1149 | + jjmatchedPos = 6; | |
1150 | + } | |
1151 | + break; | |
1152 | + case 110: | |
1153 | + if ((active1 & 0x10000L) != 0L) | |
1154 | + { | |
1155 | + jjmatchedKind = 80; | |
1156 | + jjmatchedPos = 6; | |
1157 | + } | |
1158 | + break; | |
1159 | + case 111: | |
1160 | + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x10000000L); | |
1161 | + case 117: | |
1162 | + return jjMoveStringLiteralDfa7_0(active0, 0L, active1, 0x800000000L); | |
1163 | + default : | |
1164 | + break; | |
1165 | + } | |
1166 | + return jjMoveNfa_0(0, 6); | |
1167 | +} | |
1168 | +private final int jjMoveStringLiteralDfa7_0(long old0, long active0, long old1, long active1) | |
1169 | +{ | |
1170 | + if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
1171 | + return jjMoveNfa_0(0, 6); | |
1172 | + try { curChar = input_stream.readChar(); } | |
1173 | + catch(java.io.IOException e) { | |
1174 | + return jjMoveNfa_0(0, 6); | |
1175 | + } | |
1176 | + switch(curChar) | |
1177 | + { | |
1178 | + case 62: | |
1179 | + if ((active0 & 0x8000000000000L) != 0L) | |
1180 | + { | |
1181 | + jjmatchedKind = 51; | |
1182 | + jjmatchedPos = 7; | |
1183 | + } | |
1184 | + break; | |
1185 | + case 69: | |
1186 | + if ((active1 & 0x800000000L) != 0L) | |
1187 | + { | |
1188 | + jjmatchedKind = 99; | |
1189 | + jjmatchedPos = 7; | |
1190 | + } | |
1191 | + break; | |
1192 | + case 75: | |
1193 | + if ((active1 & 0x200000L) != 0L) | |
1194 | + { | |
1195 | + jjmatchedKind = 85; | |
1196 | + jjmatchedPos = 7; | |
1197 | + } | |
1198 | + break; | |
1199 | + case 78: | |
1200 | + if ((active1 & 0x10000000L) != 0L) | |
1201 | + { | |
1202 | + jjmatchedKind = 92; | |
1203 | + jjmatchedPos = 7; | |
1204 | + } | |
1205 | + break; | |
1206 | + case 83: | |
1207 | + return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x800000L); | |
1208 | + case 84: | |
1209 | + if ((active1 & 0x800L) != 0L) | |
1210 | + { | |
1211 | + jjmatchedKind = 75; | |
1212 | + jjmatchedPos = 7; | |
1213 | + } | |
1214 | + break; | |
1215 | + case 87: | |
1216 | + return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x400000L); | |
1217 | + case 101: | |
1218 | + if ((active1 & 0x800000000L) != 0L) | |
1219 | + { | |
1220 | + jjmatchedKind = 99; | |
1221 | + jjmatchedPos = 7; | |
1222 | + } | |
1223 | + break; | |
1224 | + case 107: | |
1225 | + if ((active1 & 0x200000L) != 0L) | |
1226 | + { | |
1227 | + jjmatchedKind = 85; | |
1228 | + jjmatchedPos = 7; | |
1229 | + } | |
1230 | + break; | |
1231 | + case 110: | |
1232 | + if ((active1 & 0x10000000L) != 0L) | |
1233 | + { | |
1234 | + jjmatchedKind = 92; | |
1235 | + jjmatchedPos = 7; | |
1236 | + } | |
1237 | + break; | |
1238 | + case 115: | |
1239 | + return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x800000L); | |
1240 | + case 116: | |
1241 | + if ((active1 & 0x800L) != 0L) | |
1242 | + { | |
1243 | + jjmatchedKind = 75; | |
1244 | + jjmatchedPos = 7; | |
1245 | + } | |
1246 | + break; | |
1247 | + case 119: | |
1248 | + return jjMoveStringLiteralDfa8_0(active0, 0L, active1, 0x400000L); | |
1249 | + default : | |
1250 | + break; | |
1251 | + } | |
1252 | + return jjMoveNfa_0(0, 7); | |
1253 | +} | |
1254 | +private final int jjMoveStringLiteralDfa8_0(long old0, long active0, long old1, long active1) | |
1255 | +{ | |
1256 | + if (((active0 &= old0) | (active1 &= old1)) == 0L) | |
1257 | + return jjMoveNfa_0(0, 7); | |
1258 | + try { curChar = input_stream.readChar(); } | |
1259 | + catch(java.io.IOException e) { | |
1260 | + return jjMoveNfa_0(0, 7); | |
1261 | + } | |
1262 | + switch(curChar) | |
1263 | + { | |
1264 | + case 69: | |
1265 | + return jjMoveStringLiteralDfa9_0(active1, 0x800000L); | |
1266 | + case 72: | |
1267 | + return jjMoveStringLiteralDfa9_0(active1, 0x400000L); | |
1268 | + case 101: | |
1269 | + return jjMoveStringLiteralDfa9_0(active1, 0x800000L); | |
1270 | + case 104: | |
1271 | + return jjMoveStringLiteralDfa9_0(active1, 0x400000L); | |
1272 | + default : | |
1273 | + break; | |
1274 | + } | |
1275 | + return jjMoveNfa_0(0, 8); | |
1276 | +} | |
1277 | +private final int jjMoveStringLiteralDfa9_0(long old1, long active1) | |
1278 | +{ | |
1279 | + if (((active1 &= old1)) == 0L) | |
1280 | + return jjMoveNfa_0(0, 8); | |
1281 | + try { curChar = input_stream.readChar(); } | |
1282 | + catch(java.io.IOException e) { | |
1283 | + return jjMoveNfa_0(0, 8); | |
1284 | + } | |
1285 | + switch(curChar) | |
1286 | + { | |
1287 | + case 69: | |
1288 | + return jjMoveStringLiteralDfa10_0(active1, 0x400000L); | |
1289 | + case 84: | |
1290 | + if ((active1 & 0x800000L) != 0L) | |
1291 | + { | |
1292 | + jjmatchedKind = 87; | |
1293 | + jjmatchedPos = 9; | |
1294 | + } | |
1295 | + break; | |
1296 | + case 101: | |
1297 | + return jjMoveStringLiteralDfa10_0(active1, 0x400000L); | |
1298 | + case 116: | |
1299 | + if ((active1 & 0x800000L) != 0L) | |
1300 | + { | |
1301 | + jjmatchedKind = 87; | |
1302 | + jjmatchedPos = 9; | |
1303 | + } | |
1304 | + break; | |
1305 | + default : | |
1306 | + break; | |
1307 | + } | |
1308 | + return jjMoveNfa_0(0, 9); | |
1309 | +} | |
1310 | +private final int jjMoveStringLiteralDfa10_0(long old1, long active1) | |
1311 | +{ | |
1312 | + if (((active1 &= old1)) == 0L) | |
1313 | + return jjMoveNfa_0(0, 9); | |
1314 | + try { curChar = input_stream.readChar(); } | |
1315 | + catch(java.io.IOException e) { | |
1316 | + return jjMoveNfa_0(0, 9); | |
1317 | + } | |
1318 | + switch(curChar) | |
1319 | + { | |
1320 | + case 82: | |
1321 | + return jjMoveStringLiteralDfa11_0(active1, 0x400000L); | |
1322 | + case 114: | |
1323 | + return jjMoveStringLiteralDfa11_0(active1, 0x400000L); | |
1324 | + default : | |
1325 | + break; | |
1326 | + } | |
1327 | + return jjMoveNfa_0(0, 10); | |
1328 | +} | |
1329 | +private final int jjMoveStringLiteralDfa11_0(long old1, long active1) | |
1330 | +{ | |
1331 | + if (((active1 &= old1)) == 0L) | |
1332 | + return jjMoveNfa_0(0, 10); | |
1333 | + try { curChar = input_stream.readChar(); } | |
1334 | + catch(java.io.IOException e) { | |
1335 | + return jjMoveNfa_0(0, 10); | |
1336 | + } | |
1337 | + switch(curChar) | |
1338 | + { | |
1339 | + case 69: | |
1340 | + if ((active1 & 0x400000L) != 0L) | |
1341 | + { | |
1342 | + jjmatchedKind = 86; | |
1343 | + jjmatchedPos = 11; | |
1344 | + } | |
1345 | + break; | |
1346 | + case 101: | |
1347 | + if ((active1 & 0x400000L) != 0L) | |
1348 | + { | |
1349 | + jjmatchedKind = 86; | |
1350 | + jjmatchedPos = 11; | |
1351 | + } | |
1352 | + break; | |
1353 | + default : | |
1354 | + break; | |
1355 | + } | |
1356 | + return jjMoveNfa_0(0, 11); | |
1357 | +} | |
1358 | +private final void jjCheckNAdd(int state) | |
1359 | +{ | |
1360 | + if (jjrounds[state] != jjround) | |
1361 | + { | |
1362 | + jjstateSet[jjnewStateCnt++] = state; | |
1363 | + jjrounds[state] = jjround; | |
1364 | + } | |
1365 | +} | |
1366 | +private final void jjCheckNAddTwoStates(int state1, int state2) | |
1367 | +{ | |
1368 | + jjCheckNAdd(state1); | |
1369 | + jjCheckNAdd(state2); | |
1370 | +} | |
1371 | +private final void jjCheckNAddStates(int start, int end) | |
1372 | +{ | |
1373 | + do { | |
1374 | + jjCheckNAdd(jjnextStates[start]); | |
1375 | + } while (start++ != end); | |
1376 | +} | |
1377 | +@SuppressWarnings("unused") | |
1378 | +private final int jjMoveNfa_0(int startState, int curPos) | |
1379 | +{ | |
1380 | + int strKind = jjmatchedKind; | |
1381 | + int strPos = jjmatchedPos; | |
1382 | + int seenUpto; | |
1383 | + input_stream.backup(seenUpto = curPos + 1); | |
1384 | + try { curChar = input_stream.readChar(); } | |
1385 | + catch(java.io.IOException e) { throw new Error("Internal Error"); } | |
1386 | + curPos = 0; | |
1387 | + int startsAt = 0; | |
1388 | + jjnewStateCnt = 9; | |
1389 | + int i = 1; | |
1390 | + jjstateSet[0] = startState; | |
1391 | + int kind = 0x7fffffff; | |
1392 | + for (;;) | |
1393 | + { | |
1394 | + if (++jjround == 0x7fffffff) | |
1395 | + ReInitRounds(); | |
1396 | + if (curChar < 64) | |
1397 | + { | |
1398 | + long l = 1L << curChar; | |
1399 | + MatchLoop: do | |
1400 | + { | |
1401 | + switch(jjstateSet[--i]) | |
1402 | + { | |
1403 | + case 0: | |
1404 | + if ((0x3ff000000000000L & l) != 0L) | |
1405 | + { | |
1406 | + if (kind > 101) | |
1407 | + kind = 101; | |
1408 | + jjCheckNAddStates(0, 2); | |
1409 | + } | |
1410 | + else if (curChar == 45) | |
1411 | + jjCheckNAddTwoStates(3, 4); | |
1412 | + break; | |
1413 | + case 1: | |
1414 | + if ((0x3ff000000000000L & l) == 0L) | |
1415 | + break; | |
1416 | + if (kind > 100) | |
1417 | + kind = 100; | |
1418 | + jjstateSet[jjnewStateCnt++] = 1; | |
1419 | + break; | |
1420 | + case 2: | |
1421 | + if (curChar == 45) | |
1422 | + jjCheckNAddTwoStates(3, 4); | |
1423 | + break; | |
1424 | + case 3: | |
1425 | + if ((0x3ff000000000000L & l) == 0L) | |
1426 | + break; | |
1427 | + if (kind > 101) | |
1428 | + kind = 101; | |
1429 | + jjCheckNAdd(3); | |
1430 | + break; | |
1431 | + case 4: | |
1432 | + if ((0x3ff000000000000L & l) != 0L) | |
1433 | + jjCheckNAddTwoStates(4, 5); | |
1434 | + break; | |
1435 | + case 5: | |
1436 | + if (curChar == 46) | |
1437 | + jjCheckNAddTwoStates(6, 7); | |
1438 | + break; | |
1439 | + case 6: | |
1440 | + if (curChar == 45) | |
1441 | + jjCheckNAdd(7); | |
1442 | + break; | |
1443 | + case 7: | |
1444 | + if ((0x3ff000000000000L & l) == 0L) | |
1445 | + break; | |
1446 | + if (kind > 102) | |
1447 | + kind = 102; | |
1448 | + jjCheckNAdd(7); | |
1449 | + break; | |
1450 | + case 8: | |
1451 | + if ((0x3ff000000000000L & l) == 0L) | |
1452 | + break; | |
1453 | + if (kind > 101) | |
1454 | + kind = 101; | |
1455 | + jjCheckNAddStates(0, 2); | |
1456 | + break; | |
1457 | + default : break; | |
1458 | + } | |
1459 | + } while(i != startsAt); | |
1460 | + } | |
1461 | + else if (curChar < 128) | |
1462 | + { | |
1463 | + long l = 1L << (curChar & 077); | |
1464 | + MatchLoop: do | |
1465 | + { | |
1466 | + switch(jjstateSet[--i]) | |
1467 | + { | |
1468 | + case 0: | |
1469 | + case 1: | |
1470 | + if ((0x7fffffe87fffffeL & l) == 0L) | |
1471 | + break; | |
1472 | + if (kind > 100) | |
1473 | + kind = 100; | |
1474 | + jjCheckNAdd(1); | |
1475 | + break; | |
1476 | + default : break; | |
1477 | + } | |
1478 | + } while(i != startsAt); | |
1479 | + } | |
1480 | + else | |
1481 | + { | |
1482 | + int hiByte = (int)(curChar >> 8); | |
1483 | + int i1 = hiByte >> 6; | |
1484 | + long l1 = 1L << (hiByte & 077); | |
1485 | + int i2 = (curChar & 0xff) >> 6; | |
1486 | + long l2 = 1L << (curChar & 077); | |
1487 | + MatchLoop: do | |
1488 | + { | |
1489 | + switch(jjstateSet[--i]) | |
1490 | + { | |
1491 | + default : break; | |
1492 | + } | |
1493 | + } while(i != startsAt); | |
1494 | + } | |
1495 | + if (kind != 0x7fffffff) | |
1496 | + { | |
1497 | + jjmatchedKind = kind; | |
1498 | + jjmatchedPos = curPos; | |
1499 | + kind = 0x7fffffff; | |
1500 | + } | |
1501 | + ++curPos; | |
1502 | + if ((i = jjnewStateCnt) == (startsAt = 9 - (jjnewStateCnt = startsAt))) | |
1503 | + break; | |
1504 | + try { curChar = input_stream.readChar(); } | |
1505 | + catch(java.io.IOException e) { break; } | |
1506 | + } | |
1507 | + if (jjmatchedPos > strPos) | |
1508 | + return curPos; | |
1509 | + | |
1510 | + int toRet = Math.max(curPos, seenUpto); | |
1511 | + | |
1512 | + if (curPos < toRet) | |
1513 | + for (i = toRet - Math.min(curPos, seenUpto); i-- > 0; ) | |
1514 | + try { curChar = input_stream.readChar(); } | |
1515 | + catch(java.io.IOException e) { throw new Error("Internal Error : Please send a bug report."); } | |
1516 | + | |
1517 | + if (jjmatchedPos < strPos) | |
1518 | + { | |
1519 | + jjmatchedKind = strKind; | |
1520 | + jjmatchedPos = strPos; | |
1521 | + } | |
1522 | + else if (jjmatchedPos == strPos && jjmatchedKind > strKind) | |
1523 | + jjmatchedKind = strKind; | |
1524 | + | |
1525 | + return toRet; | |
1526 | +} | |
1527 | +private final int jjMoveStringLiteralDfa0_1() | |
1528 | +{ | |
1529 | + switch(curChar) | |
1530 | + { | |
1531 | + case 39: | |
1532 | + return jjStopAtPos(0, 114); | |
1533 | + case 92: | |
1534 | + return jjMoveStringLiteralDfa1_1(0x8000000000000L); | |
1535 | + default : | |
1536 | + return 1; | |
1537 | + } | |
1538 | +} | |
1539 | +private final int jjMoveStringLiteralDfa1_1(long active1) | |
1540 | +{ | |
1541 | + try { curChar = input_stream.readChar(); } | |
1542 | + catch(java.io.IOException e) { | |
1543 | + return 1; | |
1544 | + } | |
1545 | + switch(curChar) | |
1546 | + { | |
1547 | + case 39: | |
1548 | + if ((active1 & 0x8000000000000L) != 0L) | |
1549 | + return jjStopAtPos(1, 115); | |
1550 | + break; | |
1551 | + default : | |
1552 | + return 2; | |
1553 | + } | |
1554 | + return 2; | |
1555 | +} | |
1556 | +private final int jjMoveStringLiteralDfa0_2() | |
1557 | +{ | |
1558 | + switch(curChar) | |
1559 | + { | |
1560 | + case 34: | |
1561 | + return jjStopAtPos(0, 111); | |
1562 | + case 92: | |
1563 | + return jjMoveStringLiteralDfa1_2(0x1000000000000L); | |
1564 | + default : | |
1565 | + return 1; | |
1566 | + } | |
1567 | +} | |
1568 | +private final int jjMoveStringLiteralDfa1_2(long active1) | |
1569 | +{ | |
1570 | + try { curChar = input_stream.readChar(); } | |
1571 | + catch(java.io.IOException e) { | |
1572 | + return 1; | |
1573 | + } | |
1574 | + switch(curChar) | |
1575 | + { | |
1576 | + case 34: | |
1577 | + if ((active1 & 0x1000000000000L) != 0L) | |
1578 | + return jjStopAtPos(1, 112); | |
1579 | + break; | |
1580 | + default : | |
1581 | + return 2; | |
1582 | + } | |
1583 | + return 2; | |
1584 | +} | |
1585 | +private final int jjMoveStringLiteralDfa0_3() | |
1586 | +{ | |
1587 | + switch(curChar) | |
1588 | + { | |
1589 | + case 42: | |
1590 | + return jjMoveStringLiteralDfa1_3(0x200000000000L); | |
1591 | + default : | |
1592 | + return 1; | |
1593 | + } | |
1594 | +} | |
1595 | +private final int jjMoveStringLiteralDfa1_3(long active1) | |
1596 | +{ | |
1597 | + try { curChar = input_stream.readChar(); } | |
1598 | + catch(java.io.IOException e) { | |
1599 | + return 1; | |
1600 | + } | |
1601 | + switch(curChar) | |
1602 | + { | |
1603 | + case 47: | |
1604 | + if ((active1 & 0x200000000000L) != 0L) | |
1605 | + return jjStopAtPos(1, 109); | |
1606 | + break; | |
1607 | + default : | |
1608 | + return 2; | |
1609 | + } | |
1610 | + return 2; | |
1611 | +} | |
1608 | 1612 | static final int[] jjnextStates = { |
1609 | 1613 | 3, 4, 5, |
1610 | -}; | |
1611 | -public static final String[] jjstrLiteralImages = { | |
1612 | -"", null, null, null, null, null, null, null, null, "\73", "\75", "\52", | |
1613 | -"\53\53", "\53", "\55\55", "\55", "\57", "\45", "\46\46", "\174\174", "\46", "\174", | |
1614 | -"\50", "\51", "\133", "\135", "\44", "\56", "\54", "\74\76", "\100\100", "\100", | |
1615 | -"\173", "\175", "\75\75", "\41\75", "\76", "\76\75", "\74", "\74\75", "\41", null, | |
1616 | -null, null, null, null, null, null, null, null, null, null, null, null, null, null, | |
1617 | -null, null, null, null, null, null, null, null, null, null, null, null, null, null, | |
1618 | -null, null, null, null, null, null, null, null, null, null, null, null, null, null, | |
1619 | -null, null, null, null, null, null, null, null, null, null, null, null, null, null, | |
1620 | -null, null, null, null, null, null, null, null, null, null, null, null, null, null, | |
1621 | -null, null, null, null, null, }; | |
1622 | -public static final String[] lexStateNames = { | |
1623 | - "DEFAULT", | |
1624 | - "SQ_STR", | |
1625 | - "DQ_STR", | |
1626 | - "COMM", | |
1627 | - "L_COMM", | |
1628 | -}; | |
1614 | +}; | |
1615 | +public static final String[] jjstrLiteralImages = { | |
1616 | +"", null, null, null, null, null, null, null, null, "\73", "\75", "\52", | |
1617 | +"\53\53", "\53", "\55\55", "\55", "\57", "\45", "\46\46", "\174\174", "\46", "\174", | |
1618 | +"\50", "\51", "\133", "\135", "\44", "\56", "\54", "\74\76", "\100\100", "\100", | |
1619 | +"\173", "\175", "\75\75", "\41\75", "\76", "\76\75", "\74", "\74\75", "\41", null, | |
1620 | +null, null, null, null, null, null, null, null, null, null, null, null, null, null, | |
1621 | +null, null, null, null, null, null, null, null, null, null, null, null, null, null, | |
1622 | +null, null, null, null, null, null, null, null, null, null, null, null, null, null, | |
1623 | +null, null, null, null, null, null, null, null, null, null, null, null, null, null, | |
1624 | +null, null, null, null, null, null, null, null, null, null, null, null, null, null, | |
1625 | +null, null, null, null, null, }; | |
1626 | +public static final String[] lexStateNames = { | |
1627 | + "DEFAULT", | |
1628 | + "SQ_STR", | |
1629 | + "DQ_STR", | |
1630 | + "COMM", | |
1631 | + "L_COMM", | |
1632 | +}; | |
1629 | 1633 | public static final int[] jjnewLexState = { |
1630 | 1634 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
1631 | 1635 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
@@ -1632,245 +1636,245 @@ | ||
1632 | 1636 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
1633 | 1637 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
1634 | 1638 | -1, -1, -1, 2, 1, 3, 4, 0, -1, 0, -1, 0, -1, -1, 0, -1, -1, |
1635 | -}; | |
1639 | +}; | |
1636 | 1640 | static final long[] jjtoToken = { |
1637 | 1641 | 0xfffffffffffffe01L, 0x4807fffffffffL, |
1638 | -}; | |
1642 | +}; | |
1639 | 1643 | static final long[] jjtoSkip = { |
1640 | 1644 | 0x1eL, 0x280000000000L, |
1641 | -}; | |
1645 | +}; | |
1642 | 1646 | static final long[] jjtoSpecial = { |
1643 | 1647 | 0x0L, 0x280000000000L, |
1644 | -}; | |
1648 | +}; | |
1645 | 1649 | static final long[] jjtoMore = { |
1646 | 1650 | 0x0L, 0x1b578000000000L, |
1647 | -}; | |
1648 | -protected SimpleCharStream input_stream; | |
1649 | -private final int[] jjrounds = new int[9]; | |
1650 | -private final int[] jjstateSet = new int[18]; | |
1651 | -StringBuffer image; | |
1652 | -int jjimageLen; | |
1653 | -int lengthOfMatch; | |
1654 | -protected char curChar; | |
1655 | -public AlinousScriptParserTokenManager(SimpleCharStream stream){ | |
1656 | - if (SimpleCharStream.staticFlag) | |
1657 | - throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer."); | |
1658 | - input_stream = stream; | |
1659 | -} | |
1660 | -public AlinousScriptParserTokenManager(SimpleCharStream stream, int lexState){ | |
1661 | - this(stream); | |
1662 | - SwitchTo(lexState); | |
1663 | -} | |
1664 | -public void ReInit(SimpleCharStream stream) | |
1665 | -{ | |
1666 | - jjmatchedPos = jjnewStateCnt = 0; | |
1667 | - curLexState = defaultLexState; | |
1668 | - input_stream = stream; | |
1669 | - ReInitRounds(); | |
1670 | -} | |
1671 | -private final void ReInitRounds() | |
1672 | -{ | |
1673 | - int i; | |
1674 | - jjround = 0x80000001; | |
1675 | - for (i = 9; i-- > 0;) | |
1676 | - jjrounds[i] = 0x80000000; | |
1677 | -} | |
1678 | -public void ReInit(SimpleCharStream stream, int lexState) | |
1679 | -{ | |
1680 | - ReInit(stream); | |
1681 | - SwitchTo(lexState); | |
1682 | -} | |
1683 | -public void SwitchTo(int lexState) | |
1684 | -{ | |
1685 | - if (lexState >= 5 || lexState < 0) | |
1686 | - throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); | |
1687 | - else | |
1688 | - curLexState = lexState; | |
1689 | -} | |
1690 | - | |
1691 | -protected Token jjFillToken() | |
1692 | -{ | |
1693 | - Token t = Token.newToken(jjmatchedKind); | |
1694 | - t.kind = jjmatchedKind; | |
1695 | - String im = jjstrLiteralImages[jjmatchedKind]; | |
1696 | - t.image = (im == null) ? input_stream.GetImage() : im; | |
1697 | - t.beginLine = input_stream.getBeginLine(); | |
1698 | - t.beginColumn = input_stream.getBeginColumn(); | |
1699 | - t.endLine = input_stream.getEndLine(); | |
1700 | - t.endColumn = input_stream.getEndColumn(); | |
1701 | - return t; | |
1702 | -} | |
1703 | - | |
1704 | -int curLexState = 0; | |
1705 | -int defaultLexState = 0; | |
1706 | -int jjnewStateCnt; | |
1707 | -int jjround; | |
1708 | -int jjmatchedPos; | |
1709 | -int jjmatchedKind; | |
1710 | - | |
1711 | -public Token getNextToken() | |
1712 | -{ | |
1713 | - Token specialToken = null; | |
1714 | - Token matchedToken; | |
1715 | - int curPos = 0; | |
1716 | - | |
1651 | +}; | |
1652 | +protected SimpleCharStream input_stream; | |
1653 | +private final int[] jjrounds = new int[9]; | |
1654 | +private final int[] jjstateSet = new int[18]; | |
1655 | +StringBuffer image; | |
1656 | +int jjimageLen; | |
1657 | +int lengthOfMatch; | |
1658 | +protected char curChar; | |
1659 | +public AlinousScriptParserTokenManager(SimpleCharStream stream){ | |
1660 | + if (SimpleCharStream.staticFlag) | |
1661 | + throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer."); | |
1662 | + input_stream = stream; | |
1663 | +} | |
1664 | +public AlinousScriptParserTokenManager(SimpleCharStream stream, int lexState){ | |
1665 | + this(stream); | |
1666 | + SwitchTo(lexState); | |
1667 | +} | |
1668 | +public void ReInit(SimpleCharStream stream) | |
1669 | +{ | |
1670 | + jjmatchedPos = jjnewStateCnt = 0; | |
1671 | + curLexState = defaultLexState; | |
1672 | + input_stream = stream; | |
1673 | + ReInitRounds(); | |
1674 | +} | |
1675 | +private final void ReInitRounds() | |
1676 | +{ | |
1677 | + int i; | |
1678 | + jjround = 0x80000001; | |
1679 | + for (i = 9; i-- > 0;) | |
1680 | + jjrounds[i] = 0x80000000; | |
1681 | +} | |
1682 | +public void ReInit(SimpleCharStream stream, int lexState) | |
1683 | +{ | |
1684 | + ReInit(stream); | |
1685 | + SwitchTo(lexState); | |
1686 | +} | |
1687 | +public void SwitchTo(int lexState) | |
1688 | +{ | |
1689 | + if (lexState >= 5 || lexState < 0) | |
1690 | + throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); | |
1691 | + else | |
1692 | + curLexState = lexState; | |
1693 | +} | |
1694 | + | |
1695 | +protected Token jjFillToken() | |
1696 | +{ | |
1697 | + Token t = Token.newToken(jjmatchedKind); | |
1698 | + t.kind = jjmatchedKind; | |
1699 | + String im = jjstrLiteralImages[jjmatchedKind]; | |
1700 | + t.image = (im == null) ? input_stream.GetImage() : im; | |
1701 | + t.beginLine = input_stream.getBeginLine(); | |
1702 | + t.beginColumn = input_stream.getBeginColumn(); | |
1703 | + t.endLine = input_stream.getEndLine(); | |
1704 | + t.endColumn = input_stream.getEndColumn(); | |
1705 | + return t; | |
1706 | +} | |
1707 | + | |
1708 | +int curLexState = 0; | |
1709 | +int defaultLexState = 0; | |
1710 | +int jjnewStateCnt; | |
1711 | +int jjround; | |
1712 | +int jjmatchedPos; | |
1713 | +int jjmatchedKind; | |
1714 | + | |
1715 | +public Token getNextToken() | |
1716 | +{ | |
1717 | + Token specialToken = null; | |
1718 | + Token matchedToken; | |
1719 | + int curPos = 0; | |
1720 | + | |
1717 | 1721 | EOFLoop : |
1718 | - for (;;) | |
1719 | - { | |
1720 | - try | |
1721 | - { | |
1722 | - curChar = input_stream.BeginToken(); | |
1723 | - } | |
1724 | - catch(java.io.IOException e) | |
1725 | - { | |
1726 | - jjmatchedKind = 0; | |
1727 | - matchedToken = jjFillToken(); | |
1728 | - matchedToken.specialToken = specialToken; | |
1729 | - return matchedToken; | |
1730 | - } | |
1731 | - image = null; | |
1732 | - jjimageLen = 0; | |
1733 | - | |
1734 | - for (;;) | |
1735 | - { | |
1736 | - switch(curLexState) | |
1737 | - { | |
1738 | - case 0: | |
1739 | - jjmatchedKind = 0x7fffffff; | |
1740 | - jjmatchedPos = 0; | |
1741 | - curPos = jjMoveStringLiteralDfa0_0(); | |
1742 | - break; | |
1743 | - case 1: | |
1744 | - jjmatchedKind = 0x7fffffff; | |
1745 | - jjmatchedPos = 0; | |
1746 | - curPos = jjMoveStringLiteralDfa0_1(); | |
1747 | - if (jjmatchedPos == 0 && jjmatchedKind > 116) | |
1748 | - { | |
1749 | - jjmatchedKind = 116; | |
1750 | - } | |
1751 | - break; | |
1752 | - case 2: | |
1753 | - jjmatchedKind = 0x7fffffff; | |
1754 | - jjmatchedPos = 0; | |
1755 | - curPos = jjMoveStringLiteralDfa0_2(); | |
1756 | - if (jjmatchedPos == 0 && jjmatchedKind > 113) | |
1757 | - { | |
1758 | - jjmatchedKind = 113; | |
1759 | - } | |
1760 | - break; | |
1761 | - case 3: | |
1762 | - jjmatchedKind = 0x7fffffff; | |
1763 | - jjmatchedPos = 0; | |
1764 | - curPos = jjMoveStringLiteralDfa0_3(); | |
1765 | - if (jjmatchedPos == 0 && jjmatchedKind > 110) | |
1766 | - { | |
1767 | - jjmatchedKind = 110; | |
1768 | - } | |
1769 | - break; | |
1770 | - case 4: | |
1771 | - jjmatchedKind = 0x7fffffff; | |
1772 | - jjmatchedPos = 0; | |
1773 | - curPos = jjMoveStringLiteralDfa0_4(); | |
1774 | - if (jjmatchedPos == 0 && jjmatchedKind > 108) | |
1775 | - { | |
1776 | - jjmatchedKind = 108; | |
1777 | - } | |
1778 | - break; | |
1779 | - } | |
1780 | - if (jjmatchedKind != 0x7fffffff) | |
1781 | - { | |
1782 | - if (jjmatchedPos + 1 < curPos) | |
1783 | - input_stream.backup(curPos - jjmatchedPos - 1); | |
1784 | - if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) | |
1785 | - { | |
1786 | - matchedToken = jjFillToken(); | |
1787 | - matchedToken.specialToken = specialToken; | |
1788 | - TokenLexicalActions(matchedToken); | |
1789 | - if (jjnewLexState[jjmatchedKind] != -1) | |
1790 | - curLexState = jjnewLexState[jjmatchedKind]; | |
1791 | - return matchedToken; | |
1792 | - } | |
1793 | - else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) | |
1794 | - { | |
1795 | - if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) | |
1796 | - { | |
1797 | - matchedToken = jjFillToken(); | |
1798 | - if (specialToken == null) | |
1799 | - specialToken = matchedToken; | |
1800 | - else | |
1801 | - { | |
1802 | - matchedToken.specialToken = specialToken; | |
1803 | - specialToken = (specialToken.next = matchedToken); | |
1804 | - } | |
1805 | - SkipLexicalActions(matchedToken); | |
1806 | - } | |
1807 | - else | |
1808 | - SkipLexicalActions(null); | |
1809 | - if (jjnewLexState[jjmatchedKind] != -1) | |
1810 | - curLexState = jjnewLexState[jjmatchedKind]; | |
1811 | - continue EOFLoop; | |
1812 | - } | |
1813 | - jjimageLen += jjmatchedPos + 1; | |
1814 | - if (jjnewLexState[jjmatchedKind] != -1) | |
1815 | - curLexState = jjnewLexState[jjmatchedKind]; | |
1816 | - curPos = 0; | |
1817 | - jjmatchedKind = 0x7fffffff; | |
1818 | - try { | |
1819 | - curChar = input_stream.readChar(); | |
1820 | - continue; | |
1821 | - } | |
1822 | - catch (java.io.IOException e1) { } | |
1823 | - } | |
1824 | - int error_line = input_stream.getEndLine(); | |
1825 | - int error_column = input_stream.getEndColumn(); | |
1826 | - String error_after = null; | |
1827 | - boolean EOFSeen = false; | |
1828 | - try { input_stream.readChar(); input_stream.backup(1); } | |
1829 | - catch (java.io.IOException e1) { | |
1830 | - EOFSeen = true; | |
1831 | - error_after = curPos <= 1 ? "" : input_stream.GetImage(); | |
1832 | - if (curChar == '\n' || curChar == '\r') { | |
1833 | - error_line++; | |
1834 | - error_column = 0; | |
1835 | - } | |
1836 | - else | |
1837 | - error_column++; | |
1838 | - } | |
1839 | - if (!EOFSeen) { | |
1840 | - input_stream.backup(1); | |
1841 | - error_after = curPos <= 1 ? "" : input_stream.GetImage(); | |
1842 | - } | |
1843 | - throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); | |
1844 | - } | |
1845 | - } | |
1846 | -} | |
1847 | - | |
1848 | -void SkipLexicalActions(Token matchedToken) | |
1849 | -{ | |
1850 | - switch(jjmatchedKind) | |
1851 | - { | |
1852 | - default : | |
1853 | - break; | |
1854 | - } | |
1855 | -} | |
1856 | -void TokenLexicalActions(Token matchedToken) | |
1857 | -{ | |
1858 | - switch(jjmatchedKind) | |
1859 | - { | |
1860 | - case 111 : | |
1861 | - if (image == null) | |
1862 | - image = new StringBuffer(); | |
1863 | - image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); | |
1864 | - matchedToken.image = image.substring(1, image.length() - 1); | |
1865 | - break; | |
1866 | - case 114 : | |
1867 | - if (image == null) | |
1868 | - image = new StringBuffer(); | |
1869 | - image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); | |
1870 | - matchedToken.image = image.substring(1, image.length() - 1); | |
1871 | - break; | |
1872 | - default : | |
1873 | - break; | |
1874 | - } | |
1875 | -} | |
1876 | -} | |
1722 | + for (;;) | |
1723 | + { | |
1724 | + try | |
1725 | + { | |
1726 | + curChar = input_stream.BeginToken(); | |
1727 | + } | |
1728 | + catch(java.io.IOException e) | |
1729 | + { | |
1730 | + jjmatchedKind = 0; | |
1731 | + matchedToken = jjFillToken(); | |
1732 | + matchedToken.specialToken = specialToken; | |
1733 | + return matchedToken; | |
1734 | + } | |
1735 | + image = null; | |
1736 | + jjimageLen = 0; | |
1737 | + | |
1738 | + for (;;) | |
1739 | + { | |
1740 | + switch(curLexState) | |
1741 | + { | |
1742 | + case 0: | |
1743 | + jjmatchedKind = 0x7fffffff; | |
1744 | + jjmatchedPos = 0; | |
1745 | + curPos = jjMoveStringLiteralDfa0_0(); | |
1746 | + break; | |
1747 | + case 1: | |
1748 | + jjmatchedKind = 0x7fffffff; | |
1749 | + jjmatchedPos = 0; | |
1750 | + curPos = jjMoveStringLiteralDfa0_1(); | |
1751 | + if (jjmatchedPos == 0 && jjmatchedKind > 116) | |
1752 | + { | |
1753 | + jjmatchedKind = 116; | |
1754 | + } | |
1755 | + break; | |
1756 | + case 2: | |
1757 | + jjmatchedKind = 0x7fffffff; | |
1758 | + jjmatchedPos = 0; | |
1759 | + curPos = jjMoveStringLiteralDfa0_2(); | |
1760 | + if (jjmatchedPos == 0 && jjmatchedKind > 113) | |
1761 | + { | |
1762 | + jjmatchedKind = 113; | |
1763 | + } | |
1764 | + break; | |
1765 | + case 3: | |
1766 | + jjmatchedKind = 0x7fffffff; | |
1767 | + jjmatchedPos = 0; | |
1768 | + curPos = jjMoveStringLiteralDfa0_3(); | |
1769 | + if (jjmatchedPos == 0 && jjmatchedKind > 110) | |
1770 | + { | |
1771 | + jjmatchedKind = 110; | |
1772 | + } | |
1773 | + break; | |
1774 | + case 4: | |
1775 | + jjmatchedKind = 0x7fffffff; | |
1776 | + jjmatchedPos = 0; | |
1777 | + curPos = jjMoveStringLiteralDfa0_4(); | |
1778 | + if (jjmatchedPos == 0 && jjmatchedKind > 108) | |
1779 | + { | |
1780 | + jjmatchedKind = 108; | |
1781 | + } | |
1782 | + break; | |
1783 | + } | |
1784 | + if (jjmatchedKind != 0x7fffffff) | |
1785 | + { | |
1786 | + if (jjmatchedPos + 1 < curPos) | |
1787 | + input_stream.backup(curPos - jjmatchedPos - 1); | |
1788 | + if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) | |
1789 | + { | |
1790 | + matchedToken = jjFillToken(); | |
1791 | + matchedToken.specialToken = specialToken; | |
1792 | + TokenLexicalActions(matchedToken); | |
1793 | + if (jjnewLexState[jjmatchedKind] != -1) | |
1794 | + curLexState = jjnewLexState[jjmatchedKind]; | |
1795 | + return matchedToken; | |
1796 | + } | |
1797 | + else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) | |
1798 | + { | |
1799 | + if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) | |
1800 | + { | |
1801 | + matchedToken = jjFillToken(); | |
1802 | + if (specialToken == null) | |
1803 | + specialToken = matchedToken; | |
1804 | + else | |
1805 | + { | |
1806 | + matchedToken.specialToken = specialToken; | |
1807 | + specialToken = (specialToken.next = matchedToken); | |
1808 | + } | |
1809 | + SkipLexicalActions(matchedToken); | |
1810 | + } | |
1811 | + else | |
1812 | + SkipLexicalActions(null); | |
1813 | + if (jjnewLexState[jjmatchedKind] != -1) | |
1814 | + curLexState = jjnewLexState[jjmatchedKind]; | |
1815 | + continue EOFLoop; | |
1816 | + } | |
1817 | + jjimageLen += jjmatchedPos + 1; | |
1818 | + if (jjnewLexState[jjmatchedKind] != -1) | |
1819 | + curLexState = jjnewLexState[jjmatchedKind]; | |
1820 | + curPos = 0; | |
1821 | + jjmatchedKind = 0x7fffffff; | |
1822 | + try { | |
1823 | + curChar = input_stream.readChar(); | |
1824 | + continue; | |
1825 | + } | |
1826 | + catch (java.io.IOException e1) { } | |
1827 | + } | |
1828 | + int error_line = input_stream.getEndLine(); | |
1829 | + int error_column = input_stream.getEndColumn(); | |
1830 | + String error_after = null; | |
1831 | + boolean EOFSeen = false; | |
1832 | + try { input_stream.readChar(); input_stream.backup(1); } | |
1833 | + catch (java.io.IOException e1) { | |
1834 | + EOFSeen = true; | |
1835 | + error_after = curPos <= 1 ? "" : input_stream.GetImage(); | |
1836 | + if (curChar == '\n' || curChar == '\r') { | |
1837 | + error_line++; | |
1838 | + error_column = 0; | |
1839 | + } | |
1840 | + else | |
1841 | + error_column++; | |
1842 | + } | |
1843 | + if (!EOFSeen) { | |
1844 | + input_stream.backup(1); | |
1845 | + error_after = curPos <= 1 ? "" : input_stream.GetImage(); | |
1846 | + } | |
1847 | + throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); | |
1848 | + } | |
1849 | + } | |
1850 | +} | |
1851 | + | |
1852 | +void SkipLexicalActions(Token matchedToken) | |
1853 | +{ | |
1854 | + switch(jjmatchedKind) | |
1855 | + { | |
1856 | + default : | |
1857 | + break; | |
1858 | + } | |
1859 | +} | |
1860 | +void TokenLexicalActions(Token matchedToken) | |
1861 | +{ | |
1862 | + switch(jjmatchedKind) | |
1863 | + { | |
1864 | + case 111 : | |
1865 | + if (image == null) | |
1866 | + image = new StringBuffer(); | |
1867 | + image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); | |
1868 | + matchedToken.image = image.substring(1, image.length() - 1); | |
1869 | + break; | |
1870 | + case 114 : | |
1871 | + if (image == null) | |
1872 | + image = new StringBuffer(); | |
1873 | + image.append(input_stream.GetSuffix(jjimageLen + (lengthOfMatch = jjmatchedPos + 1))); | |
1874 | + matchedToken.image = image.substring(1, image.length() - 1); | |
1875 | + break; | |
1876 | + default : | |
1877 | + break; | |
1878 | + } | |
1879 | +} | |
1880 | +} |
@@ -1,234 +1,234 @@ | ||
1 | -/* Generated By:JavaCC: Do not edit this line. AlinousScriptParserConstants.java */ | |
2 | -package org.alinous.parser.script; | |
3 | - | |
4 | -public interface AlinousScriptParserConstants { | |
5 | - | |
6 | - int EOF = 0; | |
7 | - int NOTASCII = 5; | |
8 | - int ASCILETTER = 6; | |
9 | - int NUMBERLETTER = 7; | |
10 | - int CHARACTOR = 8; | |
11 | - int SEMI_COLON = 9; | |
12 | - int EQUALS = 10; | |
13 | - int ASTERISK = 11; | |
14 | - int PLUSPLUS = 12; | |
15 | - int PLUS = 13; | |
16 | - int MINUSMINUS = 14; | |
17 | - int MINUS = 15; | |
18 | - int DIV = 16; | |
19 | - int MODULO = 17; | |
20 | - int LOGICAL_AND = 18; | |
21 | - int LOGICAL_OR = 19; | |
22 | - int BIT_AND = 20; | |
23 | - int BIT_OR = 21; | |
24 | - int L_PARENTHESIS = 22; | |
25 | - int R_PARENTHESIS = 23; | |
26 | - int L_BRACKET = 24; | |
27 | - int R_BRACKET = 25; | |
28 | - int DOLLAR = 26; | |
29 | - int DOT = 27; | |
30 | - int COMMA = 28; | |
31 | - int SQL_NOT_EQUALS = 29; | |
32 | - int AT_AT_MARK = 30; | |
33 | - int AT_MARK = 31; | |
34 | - int L_BRACE = 32; | |
35 | - int R_BRACE = 33; | |
36 | - int CMP_EQUALS = 34; | |
37 | - int CMP_NOTEQUALS = 35; | |
38 | - int GT = 36; | |
39 | - int GEQ = 37; | |
40 | - int LT = 38; | |
41 | - int LEQ = 39; | |
42 | - int NOT = 40; | |
43 | - int SELECT = 41; | |
44 | - int INSERT = 42; | |
45 | - int UPDATE = 43; | |
46 | - int DELETE = 44; | |
47 | - int INTO = 45; | |
48 | - int FROM = 46; | |
49 | - int WHERE = 47; | |
50 | - int OR = 48; | |
51 | - int AND = 49; | |
52 | - int LIKE = 50; | |
53 | - int ESCAPE = 51; | |
54 | - int LEFT = 52; | |
55 | - int RIGHT = 53; | |
56 | - int NATURAL = 54; | |
57 | - int INNER = 55; | |
58 | - int OUTER = 56; | |
59 | - int FULL = 57; | |
60 | - int JOIN = 58; | |
61 | - int CROSS = 59; | |
62 | - int SET = 60; | |
63 | - int VALUES = 61; | |
64 | - int IF = 62; | |
65 | - int ELSE = 63; | |
66 | - int GROUP = 64; | |
67 | - int BY = 65; | |
68 | - int HAVING = 66; | |
69 | - int ORDER = 67; | |
70 | - int ASC = 68; | |
71 | - int DESC = 69; | |
72 | - int LIMIT = 70; | |
73 | - int OFFSET = 71; | |
74 | - int ON = 72; | |
75 | - int SQL_NOT = 73; | |
76 | - int AS = 74; | |
77 | - int DISTINCT = 75; | |
78 | - int SHARE = 76; | |
79 | - int NOWAIT = 77; | |
80 | - int OF = 78; | |
81 | - int IN = 79; | |
82 | - int BETWEEN = 80; | |
83 | - int IS = 81; | |
84 | - int BEGIN = 82; | |
85 | - int COMMIT = 83; | |
86 | - int END = 84; | |
87 | - int ROLLBACK = 85; | |
88 | - int ADJUST_WHERE = 86; | |
89 | - int ADJUST_SET = 87; | |
90 | - int TRUE = 88; | |
91 | - int FALSE = 89; | |
92 | - int BOOL = 90; | |
93 | - int NULL = 91; | |
94 | - int FUNCTION = 92; | |
95 | - int RETURN = 93; | |
96 | - int USE = 94; | |
97 | - int WHILE = 95; | |
98 | - int DO = 96; | |
99 | - int FOR = 97; | |
100 | - int BREAK = 98; | |
101 | - int CONTINUE = 99; | |
102 | - int IDENTIFIER = 100; | |
103 | - int NUMERIC = 101; | |
104 | - int DOUBLE = 102; | |
105 | - int DQSTRLIT = 111; | |
106 | - int SQSTRLIT = 114; | |
107 | - | |
108 | - int DEFAULT = 0; | |
109 | - int SQ_STR = 1; | |
110 | - int DQ_STR = 2; | |
111 | - int COMM = 3; | |
112 | - int L_COMM = 4; | |
113 | - | |
114 | - String[] tokenImage = { | |
115 | - "<EOF>", | |
116 | - "\" \"", | |
117 | - "\"\\t\"", | |
118 | - "\"\\n\"", | |
119 | - "\"\\r\"", | |
120 | - "<NOTASCII>", | |
121 | - "<ASCILETTER>", | |
122 | - "<NUMBERLETTER>", | |
123 | - "<CHARACTOR>", | |
124 | - "\";\"", | |
125 | - "\"=\"", | |
126 | - "\"*\"", | |
127 | - "\"++\"", | |
128 | - "\"+\"", | |
129 | - "\"--\"", | |
130 | - "\"-\"", | |
131 | - "\"/\"", | |
132 | - "\"%\"", | |
133 | - "\"&&\"", | |
134 | - "\"||\"", | |
135 | - "\"&\"", | |
136 | - "\"|\"", | |
137 | - "\"(\"", | |
138 | - "\")\"", | |
139 | - "\"[\"", | |
140 | - "\"]\"", | |
141 | - "\"$\"", | |
142 | - "\".\"", | |
143 | - "\",\"", | |
144 | - "\"<>\"", | |
145 | - "\"@@\"", | |
146 | - "\"@\"", | |
147 | - "\"{\"", | |
148 | - "\"}\"", | |
149 | - "\"==\"", | |
150 | - "\"!=\"", | |
151 | - "\">\"", | |
152 | - "\">=\"", | |
153 | - "\"<\"", | |
154 | - "\"<=\"", | |
155 | - "\"!\"", | |
156 | - "\"SELECT\"", | |
157 | - "\"INSERT\"", | |
158 | - "\"UPDATE\"", | |
159 | - "\"DELETE\"", | |
160 | - "\"INTO\"", | |
161 | - "\"FROM\"", | |
162 | - "\"WHERE\"", | |
163 | - "\"OR\"", | |
164 | - "\"AND\"", | |
165 | - "\"LIKE\"", | |
166 | - "\"<ESCAPE>\"", | |
167 | - "\"LEFT\"", | |
168 | - "\"RIGHT\"", | |
169 | - "\"NATURAL\"", | |
170 | - "\"INNER\"", | |
171 | - "\"OUTER\"", | |
172 | - "\"FULL\"", | |
173 | - "\"JOIN\"", | |
174 | - "\"CROSS\"", | |
175 | - "\"SET\"", | |
176 | - "\"VALUES\"", | |
177 | - "\"IF\"", | |
178 | - "\"ELSE\"", | |
179 | - "\"GROUP\"", | |
180 | - "\"BY\"", | |
181 | - "\"HAVING\"", | |
182 | - "\"ORDER\"", | |
183 | - "\"ASC\"", | |
184 | - "\"DESC\"", | |
185 | - "\"LIMIT\"", | |
186 | - "\"OFFSET\"", | |
187 | - "\"ON\"", | |
188 | - "\"NOT\"", | |
189 | - "\"AS\"", | |
190 | - "\"DISTINCT\"", | |
191 | - "\"SHARE\"", | |
192 | - "\"NOWAIT\"", | |
193 | - "\"OF\"", | |
194 | - "\"IN\"", | |
195 | - "\"BETWEEN\"", | |
196 | - "\"IS\"", | |
197 | - "\"BEGIN\"", | |
198 | - "\"COMMIT\"", | |
199 | - "\"END\"", | |
200 | - "\"ROLLBACK\"", | |
201 | - "\"ADJUST_WHERE\"", | |
202 | - "\"ADJUST_SET\"", | |
203 | - "\"TRUE\"", | |
204 | - "\"FALSE\"", | |
205 | - "\"BOOL\"", | |
206 | - "\"NULL\"", | |
207 | - "\"FUNCTION\"", | |
208 | - "\"RETURN\"", | |
209 | - "\"USE\"", | |
210 | - "\"WHILE\"", | |
211 | - "\"DO\"", | |
212 | - "\"FOR\"", | |
213 | - "\"BREAK\"", | |
214 | - "\"CONTINUE\"", | |
215 | - "<IDENTIFIER>", | |
216 | - "<NUMERIC>", | |
217 | - "<DOUBLE>", | |
218 | - "\"\\\"\"", | |
219 | - "\"\\\'\"", | |
220 | - "\"/*\"", | |
221 | - "\"//\"", | |
222 | - "\"\\n\"", | |
223 | - "<token of kind 108>", | |
224 | - "\"*/\"", | |
225 | - "<token of kind 110>", | |
226 | - "\"\\\"\"", | |
227 | - "\"\\\\\\\"\"", | |
228 | - "<token of kind 113>", | |
229 | - "\"\\\'\"", | |
230 | - "\"\\\\\\\'\"", | |
231 | - "<token of kind 116>", | |
232 | - }; | |
233 | - | |
234 | -} | |
1 | +/* Generated By:JavaCC: Do not edit this line. AlinousScriptParserConstants.java */ | |
2 | +package org.alinous.parser.script; | |
3 | + | |
4 | +public interface AlinousScriptParserConstants { | |
5 | + | |
6 | + int EOF = 0; | |
7 | + int NOTASCII = 5; | |
8 | + int ASCILETTER = 6; | |
9 | + int NUMBERLETTER = 7; | |
10 | + int CHARACTOR = 8; | |
11 | + int SEMI_COLON = 9; | |
12 | + int EQUALS = 10; | |
13 | + int ASTERISK = 11; | |
14 | + int PLUSPLUS = 12; | |
15 | + int PLUS = 13; | |
16 | + int MINUSMINUS = 14; | |
17 | + int MINUS = 15; | |
18 | + int DIV = 16; | |
19 | + int MODULO = 17; | |
20 | + int LOGICAL_AND = 18; | |
21 | + int LOGICAL_OR = 19; | |
22 | + int BIT_AND = 20; | |
23 | + int BIT_OR = 21; | |
24 | + int L_PARENTHESIS = 22; | |
25 | + int R_PARENTHESIS = 23; | |
26 | + int L_BRACKET = 24; | |
27 | + int R_BRACKET = 25; | |
28 | + int DOLLAR = 26; | |
29 | + int DOT = 27; | |
30 | + int COMMA = 28; | |
31 | + int SQL_NOT_EQUALS = 29; | |
32 | + int AT_AT_MARK = 30; | |
33 | + int AT_MARK = 31; | |
34 | + int L_BRACE = 32; | |
35 | + int R_BRACE = 33; | |
36 | + int CMP_EQUALS = 34; | |
37 | + int CMP_NOTEQUALS = 35; | |
38 | + int GT = 36; | |
39 | + int GEQ = 37; | |
40 | + int LT = 38; | |
41 | + int LEQ = 39; | |
42 | + int NOT = 40; | |
43 | + int SELECT = 41; | |
44 | + int INSERT = 42; | |
45 | + int UPDATE = 43; | |
46 | + int DELETE = 44; | |
47 | + int INTO = 45; | |
48 | + int FROM = 46; | |
49 | + int WHERE = 47; | |
50 | + int OR = 48; | |
51 | + int AND = 49; | |
52 | + int LIKE = 50; | |
53 | + int ESCAPE = 51; | |
54 | + int LEFT = 52; | |
55 | + int RIGHT = 53; | |
56 | + int NATURAL = 54; | |
57 | + int INNER = 55; | |
58 | + int OUTER = 56; | |
59 | + int FULL = 57; | |
60 | + int JOIN = 58; | |
61 | + int CROSS = 59; | |
62 | + int SET = 60; | |
63 | + int VALUES = 61; | |
64 | + int IF = 62; | |
65 | + int ELSE = 63; | |
66 | + int GROUP = 64; | |
67 | + int BY = 65; | |
68 | + int HAVING = 66; | |
69 | + int ORDER = 67; | |
70 | + int ASC = 68; | |
71 | + int DESC = 69; | |
72 | + int LIMIT = 70; | |
73 | + int OFFSET = 71; | |
74 | + int ON = 72; | |
75 | + int SQL_NOT = 73; | |
76 | + int AS = 74; | |
77 | + int DISTINCT = 75; | |
78 | + int SHARE = 76; | |
79 | + int NOWAIT = 77; | |
80 | + int OF = 78; | |
81 | + int IN = 79; | |
82 | + int BETWEEN = 80; | |
83 | + int IS = 81; | |
84 | + int BEGIN = 82; | |
85 | + int COMMIT = 83; | |
86 | + int END = 84; | |
87 | + int ROLLBACK = 85; | |
88 | + int ADJUST_WHERE = 86; | |
89 | + int ADJUST_SET = 87; | |
90 | + int TRUE = 88; | |
91 | + int FALSE = 89; | |
92 | + int BOOL = 90; | |
93 | + int NULL = 91; | |
94 | + int FUNCTION = 92; | |
95 | + int RETURN = 93; | |
96 | + int USE = 94; | |
97 | + int WHILE = 95; | |
98 | + int DO = 96; | |
99 | + int FOR = 97; | |
100 | + int BREAK = 98; | |
101 | + int CONTINUE = 99; | |
102 | + int IDENTIFIER = 100; | |
103 | + int NUMERIC = 101; | |
104 | + int DOUBLE = 102; | |
105 | + int DQSTRLIT = 111; | |
106 | + int SQSTRLIT = 114; | |
107 | + | |
108 | + int DEFAULT = 0; | |
109 | + int SQ_STR = 1; | |
110 | + int DQ_STR = 2; | |
111 | + int COMM = 3; | |
112 | + int L_COMM = 4; | |
113 | + | |
114 | + String[] tokenImage = { | |
115 | + "<EOF>", | |
116 | + "\" \"", | |
117 | + "\"\\t\"", | |
118 | + "\"\\n\"", | |
119 | + "\"\\r\"", | |
120 | + "<NOTASCII>", | |
121 | + "<ASCILETTER>", | |
122 | + "<NUMBERLETTER>", | |
123 | + "<CHARACTOR>", | |
124 | + "\";\"", | |
125 | + "\"=\"", | |
126 | + "\"*\"", | |
127 | + "\"++\"", | |
128 | + "\"+\"", | |
129 | + "\"--\"", | |
130 | + "\"-\"", | |
131 | + "\"/\"", | |
132 | + "\"%\"", | |
133 | + "\"&&\"", | |
134 | + "\"||\"", | |
135 | + "\"&\"", | |
136 | + "\"|\"", | |
137 | + "\"(\"", | |
138 | + "\")\"", | |
139 | + "\"[\"", | |
140 | + "\"]\"", | |
141 | + "\"$\"", | |
142 | + "\".\"", | |
143 | + "\",\"", | |
144 | + "\"<>\"", | |
145 | + "\"@@\"", | |
146 | + "\"@\"", | |
147 | + "\"{\"", | |
148 | + "\"}\"", | |
149 | + "\"==\"", | |
150 | + "\"!=\"", | |
151 | + "\">\"", | |
152 | + "\">=\"", | |
153 | + "\"<\"", | |
154 | + "\"<=\"", | |
155 | + "\"!\"", | |
156 | + "\"SELECT\"", | |
157 | + "\"INSERT\"", | |
158 | + "\"UPDATE\"", | |
159 | + "\"DELETE\"", | |
160 | + "\"INTO\"", | |
161 | + "\"FROM\"", | |
162 | + "\"WHERE\"", | |
163 | + "\"OR\"", | |
164 | + "\"AND\"", | |
165 | + "\"LIKE\"", | |
166 | + "\"<ESCAPE>\"", | |
167 | + "\"LEFT\"", | |
168 | + "\"RIGHT\"", | |
169 | + "\"NATURAL\"", | |
170 | + "\"INNER\"", | |
171 | + "\"OUTER\"", | |
172 | + "\"FULL\"", | |
173 | + "\"JOIN\"", | |
174 | + "\"CROSS\"", | |
175 | + "\"SET\"", | |
176 | + "\"VALUES\"", | |
177 | + "\"IF\"", | |
178 | + "\"ELSE\"", | |
179 | + "\"GROUP\"", | |
180 | + "\"BY\"", | |
181 | + "\"HAVING\"", | |
182 | + "\"ORDER\"", | |
183 | + "\"ASC\"", | |
184 | + "\"DESC\"", | |
185 | + "\"LIMIT\"", | |
186 | + "\"OFFSET\"", | |
187 | + "\"ON\"", | |
188 | + "\"NOT\"", | |
189 | + "\"AS\"", | |
190 | + "\"DISTINCT\"", | |
191 | + "\"SHARE\"", | |
192 | + "\"NOWAIT\"", | |
193 | + "\"OF\"", | |
194 | + "\"IN\"", | |
195 | + "\"BETWEEN\"", | |
196 | + "\"IS\"", | |
197 | + "\"BEGIN\"", | |
198 | + "\"COMMIT\"", | |
199 | + "\"END\"", | |
200 | + "\"ROLLBACK\"", | |
201 | + "\"ADJUST_WHERE\"", | |
202 | + "\"ADJUST_SET\"", | |
203 | + "\"TRUE\"", | |
204 | + "\"FALSE\"", | |
205 | + "\"BOOL\"", | |
206 | + "\"NULL\"", | |
207 | + "\"FUNCTION\"", | |
208 | + "\"RETURN\"", | |
209 | + "\"USE\"", | |
210 | + "\"WHILE\"", | |
211 | + "\"DO\"", | |
212 | + "\"FOR\"", | |
213 | + "\"BREAK\"", | |
214 | + "\"CONTINUE\"", | |
215 | + "<IDENTIFIER>", | |
216 | + "<NUMERIC>", | |
217 | + "<DOUBLE>", | |
218 | + "\"\\\"\"", | |
219 | + "\"\\\'\"", | |
220 | + "\"/*\"", | |
221 | + "\"//\"", | |
222 | + "\"\\n\"", | |
223 | + "<token of kind 108>", | |
224 | + "\"*/\"", | |
225 | + "<token of kind 110>", | |
226 | + "\"\\\"\"", | |
227 | + "\"\\\\\\\"\"", | |
228 | + "<token of kind 113>", | |
229 | + "\"\\\'\"", | |
230 | + "\"\\\\\\\'\"", | |
231 | + "<token of kind 116>", | |
232 | + }; | |
233 | + | |
234 | +} |
@@ -1,5960 +1,5964 @@ | ||
1 | -/* Generated By:JavaCC: Do not edit this line. AlinousScriptParser.java */ | |
2 | -package org.alinous.parser.script; | |
3 | - | |
4 | -import org.alinous.script.runtime.ArrayPathElement; | |
5 | -import org.alinous.script.runtime.IPathElement; | |
6 | -import org.alinous.script.runtime.PathElement; | |
7 | -import org.alinous.script.sql.ISQLScriptObject; | |
8 | -import org.alinous.script.AlinousScript; | |
9 | -import org.alinous.script.IScriptBlock; | |
10 | -import org.alinous.script.IScriptSentence; | |
11 | -import org.alinous.script.sql.SelectSentence; | |
12 | -import org.alinous.script.sql.UpdateSentence; | |
13 | -import org.alinous.script.sql.SetClause; | |
14 | -import org.alinous.script.sql.lock.ForUpdateClause; | |
15 | -import org.alinous.script.sql.other.SetPair; | |
16 | -import org.alinous.script.sql.BeginSentence; | |
17 | -import org.alinous.script.sql.CommitSentence; | |
18 | -import org.alinous.script.sql.DeleteSentence; | |
19 | -import org.alinous.script.sql.GroupByClause; | |
20 | -import org.alinous.script.sql.HavingClause; | |
21 | -import org.alinous.script.sql.InsertSentence; | |
22 | -import org.alinous.script.sql.OrderByClause; | |
23 | -import org.alinous.script.sql.LimitOffsetClause; | |
24 | -import org.alinous.script.sql.RollbackSentence; | |
25 | -import org.alinous.script.sql.SelectColumns; | |
26 | -import org.alinous.script.sql.IntoClause; | |
27 | -import org.alinous.script.sql.FromClause; | |
28 | -import org.alinous.script.sql.JoinClause; | |
29 | -import org.alinous.script.sql.other.JoinCondition; | |
30 | -import org.alinous.script.sql.WhereClause; | |
31 | -import org.alinous.script.sql.adjustopt.AdjustSet; | |
32 | -import org.alinous.script.sql.adjustopt.AdjustWhere; | |
33 | -import org.alinous.script.sql.condition.BetweenClauseExpression; | |
34 | -import org.alinous.script.sql.condition.ISQLExpression; | |
35 | -import org.alinous.script.sql.condition.InClauseExpression; | |
36 | -import org.alinous.script.sql.condition.IsNullClauseExpression; | |
37 | -import org.alinous.script.sql.condition.LikeExpression; | |
38 | -import org.alinous.script.sql.condition.OrExpression; | |
39 | -import org.alinous.script.sql.condition.AndExpression; | |
40 | -import org.alinous.script.sql.condition.SQLNotExpression; | |
41 | -import org.alinous.script.sql.condition.TwoClauseExpression; | |
42 | -import org.alinous.script.sql.condition.ParenthesisExpression; | |
43 | -import org.alinous.script.sql.statement.ISQLStatement; | |
44 | -import org.alinous.script.sql.statement.SQLAllStatemtet; | |
45 | -import org.alinous.script.sql.statement.SQLParenthesisStatement; | |
46 | -import org.alinous.script.sql.statement.SQLVariable; | |
47 | -import org.alinous.script.sql.statement.SQLStringConst; | |
48 | -import org.alinous.script.sql.statement.SQLNumericConst; | |
49 | -import org.alinous.script.sql.statement.Identifier; | |
50 | -import org.alinous.script.sql.statement.SQLSubStatement; | |
51 | -import org.alinous.script.sql.statement.SQLStatement; | |
52 | -import org.alinous.script.sql.statement.ColumnIdentifier; | |
53 | -import org.alinous.script.sql.statement.SQLFunctionCallStatement; | |
54 | -import org.alinous.script.sql.statement.SQLFunctionCallArguments; | |
55 | -import org.alinous.script.sql.statement.SubQueryStatement; | |
56 | -import org.alinous.script.sql.other.SelectColumnElement; | |
57 | -import org.alinous.script.sql.other.TablesList; | |
58 | -import org.alinous.script.sql.other.TableIdentifier; | |
59 | -import org.alinous.script.sql.other.ColumnList; | |
60 | -import org.alinous.script.sql.other.VariableList; | |
61 | - | |
62 | - | |
63 | -import org.alinous.script.basic.BreakSentence; | |
64 | -import org.alinous.script.basic.ContinueSentence; | |
65 | -import org.alinous.script.basic.ElseBlock; | |
66 | -import org.alinous.script.basic.FunctionCallSentence; | |
67 | -import org.alinous.script.basic.PlusPlusSentence; | |
68 | -import org.alinous.script.basic.ReturnSentence; | |
69 | -import org.alinous.script.basic.SubstituteSentence; | |
70 | -import org.alinous.script.basic.UseSentence; | |
71 | -import org.alinous.script.basic.type.BooleanConst; | |
72 | -import org.alinous.script.basic.type.DoubleConst; | |
73 | -import org.alinous.script.basic.type.IStatement; | |
74 | -import org.alinous.script.basic.type.IVariableDescription; | |
75 | -import org.alinous.script.basic.type.NullConst; | |
76 | -import org.alinous.script.basic.type.NumericConst; | |
77 | -import org.alinous.script.basic.type.StringConst; | |
78 | -import org.alinous.script.basic.type.VariableDescriptor; | |
79 | -import org.alinous.script.basic.IfBlock; | |
80 | -import org.alinous.script.basic.WhileBlock; | |
81 | -import org.alinous.script.basic.DoWhileBlock; | |
82 | -import org.alinous.script.basic.ForBlock; | |
83 | - | |
84 | -import org.alinous.script.basic.condition.DivStmtCondition; | |
85 | -import org.alinous.script.basic.condition.IScriptCondition; | |
86 | -import org.alinous.script.basic.condition.DirectCondition; | |
87 | -import org.alinous.script.basic.condition.MinusStmtCondition; | |
88 | -import org.alinous.script.basic.condition.ModuloStmtCondition; | |
89 | -import org.alinous.script.basic.condition.MultipleStmtCondition; | |
90 | -import org.alinous.script.basic.condition.NotCondition; | |
91 | -import org.alinous.script.basic.condition.ParenthesisCondition; | |
92 | -import org.alinous.script.basic.condition.AndCondition; | |
93 | -import org.alinous.script.basic.condition.OrCondition; | |
94 | -import org.alinous.script.basic.condition.PlusStmtCondition; | |
95 | -import org.alinous.script.basic.condition.VariableStmtCondition; | |
96 | - | |
97 | -import org.alinous.script.functions.ArgumentDeclare; | |
98 | -import org.alinous.script.functions.ArgumentsDeclare; | |
99 | -import org.alinous.script.functions.FuncDeclarations; | |
100 | -import org.alinous.script.functions.FunctionDeclaration; | |
101 | - | |
102 | -import org.alinous.script.statement.BooleanStatement; | |
103 | -import org.alinous.script.statement.FunctionCall; | |
104 | -import org.alinous.script.statement.FuncArguments; | |
105 | -import org.alinous.script.statement.ModuloStatement; | |
106 | -import org.alinous.script.statement.MultipleStatement; | |
107 | -import org.alinous.script.statement.ParenthesisElemenet; | |
108 | -import org.alinous.script.statement.PlusPlusStatement; | |
109 | -import org.alinous.script.statement.PlusStatement; | |
110 | -import org.alinous.script.statement.SubStatement; | |
111 | - | |
112 | - | |
113 | - | |
114 | - | |
115 | -public class AlinousScriptParser implements AlinousScriptParserConstants { | |
116 | - private String filePath; | |
117 | - public void setFilePath(String filePath) | |
118 | - { | |
119 | - this.filePath = filePath; | |
120 | - } | |
121 | - | |
122 | - final public AlinousScript parse() throws ParseException { | |
123 | - AlinousScript topObj = new AlinousScript(this.filePath); | |
124 | - IScriptSentence sentence = null; | |
125 | - FuncDeclarations funcDec = null; | |
126 | - label_1: | |
127 | - while (true) { | |
128 | - if (jj_2_1(2)) { | |
129 | - ; | |
130 | - } else { | |
131 | - break label_1; | |
132 | - } | |
133 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
134 | - case PLUSPLUS: | |
135 | - case MINUSMINUS: | |
136 | - case DOLLAR: | |
137 | - case AT_MARK: | |
138 | - case SELECT: | |
139 | - case INSERT: | |
140 | - case UPDATE: | |
141 | - case DELETE: | |
142 | - case INTO: | |
143 | - case FROM: | |
144 | - case WHERE: | |
145 | - case OR: | |
146 | - case AND: | |
147 | - case LIKE: | |
148 | - case ESCAPE: | |
149 | - case LEFT: | |
150 | - case RIGHT: | |
151 | - case NATURAL: | |
152 | - case INNER: | |
153 | - case OUTER: | |
154 | - case FULL: | |
155 | - case JOIN: | |
156 | - case CROSS: | |
157 | - case SET: | |
158 | - case VALUES: | |
159 | - case GROUP: | |
160 | - case BY: | |
161 | - case HAVING: | |
162 | - case ORDER: | |
163 | - case ASC: | |
164 | - case DESC: | |
165 | - case LIMIT: | |
166 | - case OFFSET: | |
167 | - case ON: | |
168 | - case SQL_NOT: | |
169 | - case AS: | |
170 | - case DISTINCT: | |
171 | - case IN: | |
172 | - case BETWEEN: | |
173 | - case IS: | |
174 | - case BEGIN: | |
175 | - case COMMIT: | |
176 | - case END: | |
177 | - case ROLLBACK: | |
178 | - case TRUE: | |
179 | - case FALSE: | |
180 | - case BOOL: | |
181 | - case NULL: | |
182 | - case RETURN: | |
183 | - case USE: | |
184 | - case BREAK: | |
185 | - case CONTINUE: | |
186 | - case IDENTIFIER: | |
187 | - case NUMERIC: | |
188 | - case DOUBLE: | |
189 | - case DQSTRLIT: | |
190 | - case SQSTRLIT: | |
191 | - sentence = sentence(); | |
192 | - jj_consume_token(SEMI_COLON); | |
193 | - break; | |
194 | - case IF: | |
195 | - case WHILE: | |
196 | - case DO: | |
197 | - case FOR: | |
198 | - sentence = block(); | |
199 | - break; | |
200 | - default: | |
201 | - jj_la1[0] = jj_gen; | |
202 | - jj_consume_token(-1); | |
203 | - throw new ParseException(); | |
204 | - } | |
205 | - topObj.addSentence(sentence); | |
206 | - } | |
207 | - funcDec = funcDeclarations(); | |
208 | - jj_consume_token(0); | |
209 | - topObj.setFuncDeclarations(funcDec); | |
210 | - {if (true) return topObj;} | |
211 | - throw new Error("Missing return statement in function"); | |
212 | - } | |
213 | - | |
214 | - final public FuncDeclarations funcDeclarations() throws ParseException { | |
215 | - FuncDeclarations declarations = new FuncDeclarations(this.filePath); | |
216 | - FunctionDeclaration declare = null; | |
217 | - label_2: | |
218 | - while (true) { | |
219 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
220 | - case FUNCTION: | |
221 | - ; | |
222 | - break; | |
223 | - default: | |
224 | - jj_la1[1] = jj_gen; | |
225 | - break label_2; | |
226 | - } | |
227 | - declare = functionDeclare(); | |
228 | - declarations.addFunction(declare); | |
229 | - } | |
230 | - {if (true) return declarations;} | |
231 | - throw new Error("Missing return statement in function"); | |
232 | - } | |
233 | - | |
234 | - final public FunctionDeclaration functionDeclare() throws ParseException { | |
235 | - FunctionDeclaration funcDeclare = new FunctionDeclaration(); | |
236 | - ArgumentsDeclare arg = null; | |
237 | - | |
238 | - Token retToken = null; | |
239 | - Token packageName = null; | |
240 | - Token funcName = null; | |
241 | - retToken = jj_consume_token(FUNCTION); | |
242 | - if (jj_2_2(2)) { | |
243 | - packageName = domPathElement(); | |
244 | - jj_consume_token(DOT); | |
245 | - } else { | |
246 | - ; | |
247 | - } | |
248 | - funcName = domPathElement(); | |
249 | - jj_consume_token(L_PARENTHESIS); | |
250 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
251 | - case DOLLAR: | |
252 | - case AT_MARK: | |
253 | - arg = argumentsDeclare(); | |
254 | - break; | |
255 | - default: | |
256 | - jj_la1[2] = jj_gen; | |
257 | - ; | |
258 | - } | |
259 | - jj_consume_token(R_PARENTHESIS); | |
260 | - jj_consume_token(L_BRACE); | |
261 | - sentences(funcDeclare); | |
262 | - jj_consume_token(R_BRACE); | |
263 | - funcDeclare.setLine(retToken.beginLine); | |
264 | - funcDeclare.setLinePosition(retToken.beginColumn); | |
265 | - | |
266 | - funcDeclare.setReturnType(retToken.image); | |
267 | - | |
268 | - if(packageName != null){ | |
269 | - funcDeclare.setPackageName(packageName.image); | |
270 | - } | |
271 | - | |
272 | - funcDeclare.setFuncName(funcName.image); | |
273 | - if(arg != null){ | |
274 | - funcDeclare.setArguments(arg); | |
275 | - } | |
276 | - | |
277 | - {if (true) return funcDeclare;} | |
278 | - throw new Error("Missing return statement in function"); | |
279 | - } | |
280 | - | |
281 | - final public ArgumentsDeclare argumentsDeclare() throws ParseException { | |
282 | - ArgumentsDeclare argDec = new ArgumentsDeclare(); | |
283 | - ArgumentDeclare dec = null; | |
284 | - Token prefix = null; | |
285 | - Token name = null; | |
286 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
287 | - case DOLLAR: | |
288 | - prefix = jj_consume_token(DOLLAR); | |
289 | - break; | |
290 | - case AT_MARK: | |
291 | - prefix = jj_consume_token(AT_MARK); | |
292 | - break; | |
293 | - default: | |
294 | - jj_la1[3] = jj_gen; | |
295 | - jj_consume_token(-1); | |
296 | - throw new ParseException(); | |
297 | - } | |
298 | - name = domPathElement(); | |
299 | - dec = new ArgumentDeclare(); | |
300 | - | |
301 | - dec.setPrefix(prefix.image); | |
302 | - dec.setName(name.image); | |
303 | - | |
304 | - argDec.addArgument(dec); | |
305 | - label_3: | |
306 | - while (true) { | |
307 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
308 | - case COMMA: | |
309 | - ; | |
310 | - break; | |
311 | - default: | |
312 | - jj_la1[4] = jj_gen; | |
313 | - break label_3; | |
314 | - } | |
315 | - jj_consume_token(COMMA); | |
316 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
317 | - case DOLLAR: | |
318 | - prefix = jj_consume_token(DOLLAR); | |
319 | - break; | |
320 | - case AT_MARK: | |
321 | - prefix = jj_consume_token(AT_MARK); | |
322 | - break; | |
323 | - default: | |
324 | - jj_la1[5] = jj_gen; | |
325 | - jj_consume_token(-1); | |
326 | - throw new ParseException(); | |
327 | - } | |
328 | - name = domPathElement(); | |
329 | - dec = new ArgumentDeclare(); | |
330 | - | |
331 | - dec.setPrefix(prefix.image); | |
332 | - dec.setName(name.image); | |
333 | - | |
334 | - argDec.addArgument(dec); | |
335 | - } | |
336 | - {if (true) return argDec;} | |
337 | - throw new Error("Missing return statement in function"); | |
338 | - } | |
339 | - | |
340 | - final public void sentences(IScriptBlock parent) throws ParseException { | |
341 | - IScriptSentence stnc; | |
342 | - label_4: | |
343 | - while (true) { | |
344 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
345 | - case PLUSPLUS: | |
346 | - case MINUSMINUS: | |
347 | - case DOLLAR: | |
348 | - case AT_MARK: | |
349 | - case SELECT: | |
350 | - case INSERT: | |
351 | - case UPDATE: | |
352 | - case DELETE: | |
353 | - case INTO: | |
354 | - case FROM: | |
355 | - case WHERE: | |
356 | - case OR: | |
357 | - case AND: | |
358 | - case LIKE: | |
359 | - case ESCAPE: | |
360 | - case LEFT: | |
361 | - case RIGHT: | |
362 | - case NATURAL: | |
363 | - case INNER: | |
364 | - case OUTER: | |
365 | - case FULL: | |
366 | - case JOIN: | |
367 | - case CROSS: | |
368 | - case SET: | |
369 | - case VALUES: | |
370 | - case IF: | |
371 | - case GROUP: | |
372 | - case BY: | |
373 | - case HAVING: | |
374 | - case ORDER: | |
375 | - case ASC: | |
376 | - case DESC: | |
377 | - case LIMIT: | |
378 | - case OFFSET: | |
379 | - case ON: | |
380 | - case SQL_NOT: | |
381 | - case AS: | |
382 | - case DISTINCT: | |
383 | - case IN: | |
384 | - case BETWEEN: | |
385 | - case IS: | |
386 | - case BEGIN: | |
387 | - case COMMIT: | |
388 | - case END: | |
389 | - case ROLLBACK: | |
390 | - case TRUE: | |
391 | - case FALSE: | |
392 | - case BOOL: | |
393 | - case NULL: | |
394 | - case RETURN: | |
395 | - case USE: | |
396 | - case WHILE: | |
397 | - case DO: | |
398 | - case FOR: | |
399 | - case BREAK: | |
400 | - case CONTINUE: | |
401 | - case IDENTIFIER: | |
402 | - case NUMERIC: | |
403 | - case DOUBLE: | |
404 | - case DQSTRLIT: | |
405 | - case SQSTRLIT: | |
406 | - ; | |
407 | - break; | |
408 | - default: | |
409 | - jj_la1[6] = jj_gen; | |
410 | - break label_4; | |
411 | - } | |
412 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
413 | - case PLUSPLUS: | |
414 | - case MINUSMINUS: | |
415 | - case DOLLAR: | |
416 | - case AT_MARK: | |
417 | - case SELECT: | |
418 | - case INSERT: | |
419 | - case UPDATE: | |
420 | - case DELETE: | |
421 | - case INTO: | |
422 | - case FROM: | |
423 | - case WHERE: | |
424 | - case OR: | |
425 | - case AND: | |
426 | - case LIKE: | |
427 | - case ESCAPE: | |
428 | - case LEFT: | |
429 | - case RIGHT: | |
430 | - case NATURAL: | |
431 | - case INNER: | |
432 | - case OUTER: | |
433 | - case FULL: | |
434 | - case JOIN: | |
435 | - case CROSS: | |
436 | - case SET: | |
437 | - case VALUES: | |
438 | - case GROUP: | |
439 | - case BY: | |
440 | - case HAVING: | |
441 | - case ORDER: | |
442 | - case ASC: | |
443 | - case DESC: | |
444 | - case LIMIT: | |
445 | - case OFFSET: | |
446 | - case ON: | |
447 | - case SQL_NOT: | |
448 | - case AS: | |
449 | - case DISTINCT: | |
450 | - case IN: | |
451 | - case BETWEEN: | |
452 | - case IS: | |
453 | - case BEGIN: | |
454 | - case COMMIT: | |
455 | - case END: | |
456 | - case ROLLBACK: | |
457 | - case TRUE: | |
458 | - case FALSE: | |
459 | - case BOOL: | |
460 | - case NULL: | |
461 | - case RETURN: | |
462 | - case USE: | |
463 | - case BREAK: | |
464 | - case CONTINUE: | |
465 | - case IDENTIFIER: | |
466 | - case NUMERIC: | |
467 | - case DOUBLE: | |
468 | - case DQSTRLIT: | |
469 | - case SQSTRLIT: | |
470 | - stnc = sentence(); | |
471 | - jj_consume_token(SEMI_COLON); | |
472 | - break; | |
473 | - case IF: | |
474 | - case WHILE: | |
475 | - case DO: | |
476 | - case FOR: | |
477 | - stnc = block(); | |
478 | - break; | |
479 | - default: | |
480 | - jj_la1[7] = jj_gen; | |
481 | - jj_consume_token(-1); | |
482 | - throw new ParseException(); | |
483 | - } | |
484 | - parent.addSentence(stnc); | |
485 | - } | |
486 | - } | |
487 | - | |
488 | - final public IScriptSentence sentence() throws ParseException { | |
489 | - IScriptSentence sentence; | |
490 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
491 | - case COMMIT: | |
492 | - case END: | |
493 | - sentence = commitSentence(); | |
494 | - break; | |
495 | - case BEGIN: | |
496 | - sentence = beginSentence(); | |
497 | - break; | |
498 | - case ROLLBACK: | |
499 | - sentence = rollbackSentence(); | |
500 | - break; | |
501 | - case SELECT: | |
502 | - sentence = select(); | |
503 | - break; | |
504 | - case UPDATE: | |
505 | - sentence = update(); | |
506 | - break; | |
507 | - case DELETE: | |
508 | - sentence = delete(); | |
509 | - break; | |
510 | - case INSERT: | |
511 | - sentence = insert(); | |
512 | - break; | |
513 | - default: | |
514 | - jj_la1[8] = jj_gen; | |
515 | - if (jj_2_3(3)) { | |
516 | - sentence = substituteSentence(); | |
517 | - } else if (jj_2_4(3)) { | |
518 | - sentence = functionCallSentence(); | |
519 | - } else { | |
520 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
521 | - case RETURN: | |
522 | - sentence = returnSentence(); | |
523 | - break; | |
524 | - case BREAK: | |
525 | - sentence = breakSentence(); | |
526 | - break; | |
527 | - case CONTINUE: | |
528 | - sentence = continueSentence(); | |
529 | - break; | |
530 | - case USE: | |
531 | - sentence = useSentence(); | |
532 | - break; | |
533 | - case PLUSPLUS: | |
534 | - case MINUSMINUS: | |
535 | - case DOLLAR: | |
536 | - case AT_MARK: | |
537 | - case INTO: | |
538 | - case FROM: | |
539 | - case WHERE: | |
540 | - case OR: | |
541 | - case AND: | |
542 | - case LIKE: | |
543 | - case ESCAPE: | |
544 | - case LEFT: | |
545 | - case RIGHT: | |
546 | - case NATURAL: | |
547 | - case INNER: | |
548 | - case OUTER: | |
549 | - case FULL: | |
550 | - case JOIN: | |
551 | - case CROSS: | |
552 | - case SET: | |
553 | - case VALUES: | |
554 | - case GROUP: | |
555 | - case BY: | |
556 | - case HAVING: | |
557 | - case ORDER: | |
558 | - case ASC: | |
559 | - case DESC: | |
560 | - case LIMIT: | |
561 | - case OFFSET: | |
562 | - case ON: | |
563 | - case SQL_NOT: | |
564 | - case AS: | |
565 | - case DISTINCT: | |
566 | - case IN: | |
567 | - case BETWEEN: | |
568 | - case IS: | |
569 | - case TRUE: | |
570 | - case FALSE: | |
571 | - case BOOL: | |
572 | - case NULL: | |
573 | - case IDENTIFIER: | |
574 | - case NUMERIC: | |
575 | - case DOUBLE: | |
576 | - case DQSTRLIT: | |
577 | - case SQSTRLIT: | |
578 | - sentence = plusPlusSentence(); | |
579 | - break; | |
580 | - default: | |
581 | - jj_la1[9] = jj_gen; | |
582 | - jj_consume_token(-1); | |
583 | - throw new ParseException(); | |
584 | - } | |
585 | - } | |
586 | - } | |
587 | - {if (true) return sentence;} | |
588 | - throw new Error("Missing return statement in function"); | |
589 | - } | |
590 | - | |
591 | - final public IScriptSentence block() throws ParseException { | |
592 | - IScriptSentence sentence = null; | |
593 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
594 | - case IF: | |
595 | - sentence = ifBlock(); | |
596 | - break; | |
597 | - case WHILE: | |
598 | - sentence = whileBlock(); | |
599 | - break; | |
600 | - case DO: | |
601 | - sentence = doWhileBlock(); | |
602 | - break; | |
603 | - case FOR: | |
604 | - sentence = forBlock(); | |
605 | - break; | |
606 | - default: | |
607 | - jj_la1[10] = jj_gen; | |
608 | - jj_consume_token(-1); | |
609 | - throw new ParseException(); | |
610 | - } | |
611 | - {if (true) return sentence;} | |
612 | - throw new Error("Missing return statement in function"); | |
613 | - } | |
614 | - | |
615 | - final public BeginSentence beginSentence() throws ParseException { | |
616 | - BeginSentence sentence = new BeginSentence(); | |
617 | - | |
618 | - Token t = null; | |
619 | - t = jj_consume_token(BEGIN); | |
620 | - sentence.setLine(t.beginLine); | |
621 | - sentence.setLinePosition(t.beginColumn); | |
622 | - | |
623 | - {if (true) return sentence;} | |
624 | - throw new Error("Missing return statement in function"); | |
625 | - } | |
626 | - | |
627 | - final public CommitSentence commitSentence() throws ParseException { | |
628 | - CommitSentence sentence = new CommitSentence(); | |
629 | - | |
630 | - Token t = null; | |
631 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
632 | - case COMMIT: | |
633 | - t = jj_consume_token(COMMIT); | |
634 | - break; | |
635 | - case END: | |
636 | - t = jj_consume_token(END); | |
637 | - break; | |
638 | - default: | |
639 | - jj_la1[11] = jj_gen; | |
640 | - jj_consume_token(-1); | |
641 | - throw new ParseException(); | |
642 | - } | |
643 | - sentence.setLine(t.beginLine); | |
644 | - sentence.setLinePosition(t.beginColumn); | |
645 | - | |
646 | - {if (true) return sentence;} | |
647 | - throw new Error("Missing return statement in function"); | |
648 | - } | |
649 | - | |
650 | - final public RollbackSentence rollbackSentence() throws ParseException { | |
651 | - RollbackSentence sentence = new RollbackSentence(); | |
652 | - | |
653 | - Token t = null; | |
654 | - t = jj_consume_token(ROLLBACK); | |
655 | - sentence.setLine(t.beginLine); | |
656 | - sentence.setLinePosition(t.beginColumn); | |
657 | - | |
658 | - {if (true) return sentence;} | |
659 | - throw new Error("Missing return statement in function"); | |
660 | - } | |
661 | - | |
662 | - final public SelectSentence select() throws ParseException { | |
663 | - SelectSentence sentence = new SelectSentence(); | |
664 | - SelectColumns columns = null; | |
665 | - IntoClause into = null; | |
666 | - FromClause from = null; | |
667 | - WhereClause where = null; | |
668 | - GroupByClause grp = null; | |
669 | - OrderByClause ord = null; | |
670 | - LimitOffsetClause limitoffset = null; | |
671 | - ForUpdateClause forUpdate = null; | |
672 | - AdjustWhere adjustWhere = null; | |
673 | - | |
674 | - Token distinctToken = null; | |
675 | - | |
676 | - Token t = null; | |
677 | - t = jj_consume_token(SELECT); | |
678 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
679 | - case DISTINCT: | |
680 | - distinctToken = jj_consume_token(DISTINCT); | |
681 | - break; | |
682 | - default: | |
683 | - jj_la1[12] = jj_gen; | |
684 | - ; | |
685 | - } | |
686 | - columns = selectColumns(); | |
687 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
688 | - case INTO: | |
689 | - into = into(); | |
690 | - break; | |
691 | - default: | |
692 | - jj_la1[13] = jj_gen; | |
693 | - ; | |
694 | - } | |
695 | - from = from(); | |
696 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
697 | - case WHERE: | |
698 | - where = where(); | |
699 | - break; | |
700 | - default: | |
701 | - jj_la1[14] = jj_gen; | |
702 | - ; | |
703 | - } | |
704 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
705 | - case GROUP: | |
706 | - grp = groupby(); | |
707 | - break; | |
708 | - default: | |
709 | - jj_la1[15] = jj_gen; | |
710 | - ; | |
711 | - } | |
712 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
713 | - case ORDER: | |
714 | - ord = orderby(); | |
715 | - break; | |
716 | - default: | |
717 | - jj_la1[16] = jj_gen; | |
718 | - ; | |
719 | - } | |
720 | - limitoffset = limit(); | |
721 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
722 | - case FOR: | |
723 | - forUpdate = forUpdate(); | |
724 | - break; | |
725 | - default: | |
726 | - jj_la1[17] = jj_gen; | |
727 | - ; | |
728 | - } | |
729 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
730 | - case ADJUST_WHERE: | |
731 | - adjustWhere = adjustWhere(); | |
732 | - break; | |
733 | - default: | |
734 | - jj_la1[18] = jj_gen; | |
735 | - ; | |
736 | - } | |
737 | - sentence.setColumns(columns); | |
738 | - sentence.setInto(into); | |
739 | - sentence.setFrom(from); | |
740 | - sentence.setWhere(where); | |
741 | - sentence.setGroupBy(grp); | |
742 | - sentence.setOrderby(ord); | |
743 | - sentence.setLimitOffset(limitoffset); | |
744 | - sentence.setForUpdate(forUpdate); | |
745 | - sentence.setAdjustWhere(adjustWhere); | |
746 | - | |
747 | - if(distinctToken != null){ | |
748 | - sentence.setDistinct(distinctToken.image); | |
749 | - } | |
750 | - | |
751 | - sentence.setLine(t.beginLine); | |
752 | - sentence.setLinePosition(t.beginColumn); | |
753 | - | |
754 | - {if (true) return sentence;} | |
755 | - throw new Error("Missing return statement in function"); | |
756 | - } | |
757 | - | |
758 | - final public ForUpdateClause forUpdate() throws ParseException { | |
759 | - ForUpdateClause forUpdate = new ForUpdateClause(); | |
760 | - Token type = null; | |
761 | - Token nowait = null; | |
762 | - TablesList tables = null; | |
763 | - jj_consume_token(FOR); | |
764 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
765 | - case UPDATE: | |
766 | - type = jj_consume_token(UPDATE); | |
767 | - break; | |
768 | - case SHARE: | |
769 | - type = jj_consume_token(SHARE); | |
770 | - break; | |
771 | - default: | |
772 | - jj_la1[19] = jj_gen; | |
773 | - jj_consume_token(-1); | |
774 | - throw new ParseException(); | |
775 | - } | |
776 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
777 | - case OF: | |
778 | - jj_consume_token(OF); | |
779 | - tables = tables(); | |
780 | - break; | |
781 | - default: | |
782 | - jj_la1[20] = jj_gen; | |
783 | - ; | |
784 | - } | |
785 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
786 | - case NOWAIT: | |
787 | - nowait = jj_consume_token(NOWAIT); | |
788 | - break; | |
789 | - default: | |
790 | - jj_la1[21] = jj_gen; | |
791 | - ; | |
792 | - } | |
793 | - forUpdate.setType(type.image); | |
794 | - forUpdate.setWait(nowait.image); | |
795 | - | |
796 | - forUpdate.setTables(tables); | |
797 | - | |
798 | - {if (true) return forUpdate;} | |
799 | - throw new Error("Missing return statement in function"); | |
800 | - } | |
801 | - | |
802 | - final public LimitOffsetClause limit() throws ParseException { | |
803 | - LimitOffsetClause limitoffset = new LimitOffsetClause(); | |
804 | - ISQLStatement limit = null; | |
805 | - ISQLStatement offset = null; | |
806 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
807 | - case LIMIT: | |
808 | - jj_consume_token(LIMIT); | |
809 | - limit = variable(); | |
810 | - break; | |
811 | - default: | |
812 | - jj_la1[22] = jj_gen; | |
813 | - ; | |
814 | - } | |
815 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
816 | - case OFFSET: | |
817 | - jj_consume_token(OFFSET); | |
818 | - offset = variable(); | |
819 | - break; | |
820 | - default: | |
821 | - jj_la1[23] = jj_gen; | |
822 | - ; | |
823 | - } | |
824 | - if(limit != null){ | |
825 | - limitoffset.setLimit(limit); | |
826 | - } | |
827 | - if(offset != null){ | |
828 | - limitoffset.setOffset(offset); | |
829 | - } | |
830 | - | |
831 | - {if (true) return limitoffset;} | |
832 | - throw new Error("Missing return statement in function"); | |
833 | - } | |
834 | - | |
835 | - final public OrderByClause orderby() throws ParseException { | |
836 | - OrderByClause ord = new OrderByClause(); | |
837 | - ColumnList colList = null; | |
838 | - jj_consume_token(ORDER); | |
839 | - jj_consume_token(BY); | |
840 | - colList = columnList(); | |
841 | - ord.setColumnList(colList); | |
842 | - | |
843 | - {if (true) return ord;} | |
844 | - throw new Error("Missing return statement in function"); | |
845 | - } | |
846 | - | |
847 | - final public ColumnList columnList() throws ParseException { | |
848 | - ColumnList colList = new ColumnList(); | |
849 | - ColumnIdentifier col; | |
850 | - Token t = null; | |
851 | - col = columnIdentifier(); | |
852 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
853 | - case ASC: | |
854 | - case DESC: | |
855 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
856 | - case ASC: | |
857 | - t = jj_consume_token(ASC); | |
858 | - break; | |
859 | - case DESC: | |
860 | - t = jj_consume_token(DESC); | |
861 | - break; | |
862 | - default: | |
863 | - jj_la1[24] = jj_gen; | |
864 | - jj_consume_token(-1); | |
865 | - throw new ParseException(); | |
866 | - } | |
867 | - break; | |
868 | - default: | |
869 | - jj_la1[25] = jj_gen; | |
870 | - ; | |
871 | - } | |
872 | - colList = new ColumnList(); | |
873 | - | |
874 | - if(t != null){ | |
875 | - colList.addColumns(col, t.image); | |
876 | - } | |
877 | - else{ | |
878 | - colList.addColumns(col); | |
879 | - } | |
880 | - label_5: | |
881 | - while (true) { | |
882 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
883 | - case COMMA: | |
884 | - ; | |
885 | - break; | |
886 | - default: | |
887 | - jj_la1[26] = jj_gen; | |
888 | - break label_5; | |
889 | - } | |
890 | - jj_consume_token(COMMA); | |
891 | - col = columnIdentifier(); | |
892 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
893 | - case ASC: | |
894 | - case DESC: | |
895 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
896 | - case ASC: | |
897 | - t = jj_consume_token(ASC); | |
898 | - break; | |
899 | - case DESC: | |
900 | - t = jj_consume_token(DESC); | |
901 | - break; | |
902 | - default: | |
903 | - jj_la1[27] = jj_gen; | |
904 | - jj_consume_token(-1); | |
905 | - throw new ParseException(); | |
906 | - } | |
907 | - break; | |
908 | - default: | |
909 | - jj_la1[28] = jj_gen; | |
910 | - ; | |
911 | - } | |
912 | - if(t != null){ | |
913 | - colList.addColumns(col, t.image); | |
914 | - } | |
915 | - else{ | |
916 | - colList.addColumns(col); | |
917 | - } | |
918 | - } | |
919 | - {if (true) return colList;} | |
920 | - throw new Error("Missing return statement in function"); | |
921 | - } | |
922 | - | |
923 | - final public GroupByClause groupby() throws ParseException { | |
924 | - GroupByClause grp = new GroupByClause(); | |
925 | - ColumnList colList = null; | |
926 | - HavingClause having = null; | |
927 | - jj_consume_token(GROUP); | |
928 | - jj_consume_token(BY); | |
929 | - colList = columnList(); | |
930 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
931 | - case HAVING: | |
932 | - having = having(); | |
933 | - break; | |
934 | - default: | |
935 | - jj_la1[29] = jj_gen; | |
936 | - ; | |
937 | - } | |
938 | - grp.setColList(colList); | |
939 | - grp.setHaving(having); | |
940 | - | |
941 | - {if (true) return grp;} | |
942 | - throw new Error("Missing return statement in function"); | |
943 | - } | |
944 | - | |
945 | - final public HavingClause having() throws ParseException { | |
946 | - HavingClause having = new HavingClause(); | |
947 | - ISQLExpression exp = null; | |
948 | - jj_consume_token(HAVING); | |
949 | - exp = orExp(); | |
950 | - having.setExpression(exp); | |
951 | - {if (true) return having;} | |
952 | - throw new Error("Missing return statement in function"); | |
953 | - } | |
954 | - | |
955 | - final public SelectColumns selectColumns() throws ParseException { | |
956 | - SelectColumns cols = new SelectColumns(); | |
957 | - ColumnList colList; | |
958 | - ISQLStatement col; | |
959 | - SelectColumnElement colElement = null; | |
960 | - Identifier asId = null; | |
961 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
962 | - case ASTERISK: | |
963 | - jj_consume_token(ASTERISK); | |
964 | - {if (true) return cols;} | |
965 | - break; | |
966 | - case L_PARENTHESIS: | |
967 | - case IDENTIFIER: | |
968 | - if (jj_2_5(2)) { | |
969 | - col = sqlFunctionCall(); | |
970 | - } else { | |
971 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
972 | - case IDENTIFIER: | |
973 | - col = columnIdentifier(); | |
974 | - break; | |
975 | - case L_PARENTHESIS: | |
976 | - col = sqlSubQuery(); | |
977 | - break; | |
978 | - default: | |
979 | - jj_la1[30] = jj_gen; | |
980 | - jj_consume_token(-1); | |
981 | - throw new ParseException(); | |
982 | - } | |
983 | - } | |
984 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
985 | - case AS: | |
986 | - case IDENTIFIER: | |
987 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
988 | - case AS: | |
989 | - jj_consume_token(AS); | |
990 | - break; | |
991 | - default: | |
992 | - jj_la1[31] = jj_gen; | |
993 | - ; | |
994 | - } | |
995 | - asId = identifier(); | |
996 | - break; | |
997 | - default: | |
998 | - jj_la1[32] = jj_gen; | |
999 | - ; | |
1000 | - } | |
1001 | - colList = new ColumnList(); | |
1002 | - | |
1003 | - colElement = new SelectColumnElement(); | |
1004 | - colElement.setColumnName(col); | |
1005 | - | |
1006 | - if(asId != null){ | |
1007 | - colElement.setAsName(asId); | |
1008 | - asId = null; | |
1009 | - } | |
1010 | - | |
1011 | - colList.addColumns(colElement); | |
1012 | - label_6: | |
1013 | - while (true) { | |
1014 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1015 | - case COMMA: | |
1016 | - ; | |
1017 | - break; | |
1018 | - default: | |
1019 | - jj_la1[33] = jj_gen; | |
1020 | - break label_6; | |
1021 | - } | |
1022 | - jj_consume_token(COMMA); | |
1023 | - if (jj_2_6(2)) { | |
1024 | - col = sqlFunctionCall(); | |
1025 | - } else { | |
1026 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1027 | - case IDENTIFIER: | |
1028 | - col = columnIdentifier(); | |
1029 | - break; | |
1030 | - case L_PARENTHESIS: | |
1031 | - col = sqlSubQuery(); | |
1032 | - break; | |
1033 | - default: | |
1034 | - jj_la1[34] = jj_gen; | |
1035 | - jj_consume_token(-1); | |
1036 | - throw new ParseException(); | |
1037 | - } | |
1038 | - } | |
1039 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1040 | - case AS: | |
1041 | - case IDENTIFIER: | |
1042 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1043 | - case AS: | |
1044 | - jj_consume_token(AS); | |
1045 | - break; | |
1046 | - default: | |
1047 | - jj_la1[35] = jj_gen; | |
1048 | - ; | |
1049 | - } | |
1050 | - asId = identifier(); | |
1051 | - break; | |
1052 | - default: | |
1053 | - jj_la1[36] = jj_gen; | |
1054 | - ; | |
1055 | - } | |
1056 | - colElement = new SelectColumnElement(); | |
1057 | - colElement.setColumnName(col); | |
1058 | - | |
1059 | - if(asId != null){ | |
1060 | - colElement.setAsName(asId); | |
1061 | - asId = null; | |
1062 | - } | |
1063 | - | |
1064 | - colList.addColumns(colElement); | |
1065 | - } | |
1066 | - cols.setColumns(colList); | |
1067 | - | |
1068 | - {if (true) return cols;} | |
1069 | - break; | |
1070 | - default: | |
1071 | - jj_la1[37] = jj_gen; | |
1072 | - jj_consume_token(-1); | |
1073 | - throw new ParseException(); | |
1074 | - } | |
1075 | - throw new Error("Missing return statement in function"); | |
1076 | - } | |
1077 | - | |
1078 | - final public IntoClause into() throws ParseException { | |
1079 | - IntoClause into = new IntoClause(); | |
1080 | - Identifier val = new Identifier(); | |
1081 | - Token t = null; | |
1082 | - jj_consume_token(INTO); | |
1083 | - t = jj_consume_token(IDENTIFIER); | |
1084 | - val.setName(t.image); | |
1085 | - into.setVariable(val); | |
1086 | - | |
1087 | - {if (true) return into;} | |
1088 | - throw new Error("Missing return statement in function"); | |
1089 | - } | |
1090 | - | |
1091 | - final public FromClause from() throws ParseException { | |
1092 | - FromClause from = new FromClause(); | |
1093 | - TablesList tableList = null; | |
1094 | - jj_consume_token(FROM); | |
1095 | - tableList = tables(); | |
1096 | - from.setTableList(tableList); | |
1097 | - {if (true) return from;} | |
1098 | - throw new Error("Missing return statement in function"); | |
1099 | - } | |
1100 | - | |
1101 | - final public TablesList tables() throws ParseException { | |
1102 | - TablesList tblList = new TablesList(); | |
1103 | - ISQLScriptObject tbl = null; | |
1104 | - tbl = select_table(); | |
1105 | - tblList.addTable(tbl); | |
1106 | - label_7: | |
1107 | - while (true) { | |
1108 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1109 | - case COMMA: | |
1110 | - ; | |
1111 | - break; | |
1112 | - default: | |
1113 | - jj_la1[38] = jj_gen; | |
1114 | - break label_7; | |
1115 | - } | |
1116 | - jj_consume_token(COMMA); | |
1117 | - tbl = select_table(); | |
1118 | - tblList.addTable(tbl); | |
1119 | - } | |
1120 | - {if (true) return tblList;} | |
1121 | - throw new Error("Missing return statement in function"); | |
1122 | - } | |
1123 | - | |
1124 | - final public TableIdentifier table() throws ParseException { | |
1125 | - TableIdentifier tbl = new TableIdentifier(); | |
1126 | - Token t1 = null; | |
1127 | - Token t2 = null; | |
1128 | - Token t3 = null; | |
1129 | - t1 = jj_consume_token(IDENTIFIER); | |
1130 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1131 | - case DOT: | |
1132 | - jj_consume_token(DOT); | |
1133 | - t2 = jj_consume_token(IDENTIFIER); | |
1134 | - break; | |
1135 | - default: | |
1136 | - jj_la1[39] = jj_gen; | |
1137 | - ; | |
1138 | - } | |
1139 | - if (jj_2_7(2)) { | |
1140 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1141 | - case AS: | |
1142 | - jj_consume_token(AS); | |
1143 | - break; | |
1144 | - default: | |
1145 | - jj_la1[40] = jj_gen; | |
1146 | - ; | |
1147 | - } | |
1148 | - t3 = jj_consume_token(IDENTIFIER); | |
1149 | - } else { | |
1150 | - ; | |
1151 | - } | |
1152 | - if(t2 == null){ | |
1153 | - tbl.setTableName(t1.image); | |
1154 | - }else{ | |
1155 | - tbl.setDatabaseName(t1.image); | |
1156 | - tbl.setTableName(t2 != null ? t2.image : null); | |
1157 | - } | |
1158 | - | |
1159 | - if(t3 != null){ | |
1160 | - tbl.setAsName(t3.image); | |
1161 | - } | |
1162 | - | |
1163 | - | |
1164 | - {if (true) return tbl;} | |
1165 | - throw new Error("Missing return statement in function"); | |
1166 | - } | |
1167 | - | |
1168 | - final public ISQLScriptObject select_table() throws ParseException { | |
1169 | - ISQLScriptObject j1 = null; | |
1170 | - j1 = join(); | |
1171 | - {if (true) return j1;} | |
1172 | - throw new Error("Missing return statement in function"); | |
1173 | - } | |
1174 | - | |
1175 | - final public ISQLScriptObject join() throws ParseException { | |
1176 | - JoinClause join = null; | |
1177 | - ISQLScriptObject left = null; | |
1178 | - ISQLScriptObject right = null; | |
1179 | - JoinCondition cnd = null; | |
1180 | - left = joinTarget(); | |
1181 | - | |
1182 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1183 | - case LEFT: | |
1184 | - case RIGHT: | |
1185 | - case NATURAL: | |
1186 | - case INNER: | |
1187 | - case JOIN: | |
1188 | - case CROSS: | |
1189 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1190 | - case JOIN: | |
1191 | - jj_consume_token(JOIN); | |
1192 | - right = joinTarget(); | |
1193 | - cnd = joinCondition(); | |
1194 | - join = new JoinClause(); | |
1195 | - join.setJoinType(JoinClause.DEFAULT); | |
1196 | - join.setLeft(left); | |
1197 | - join.setRight(right); | |
1198 | - join.setCondition(cnd); | |
1199 | - break; | |
1200 | - case INNER: | |
1201 | - jj_consume_token(INNER); | |
1202 | - jj_consume_token(JOIN); | |
1203 | - right = joinTarget(); | |
1204 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1205 | - case ON: | |
1206 | - cnd = joinCondition(); | |
1207 | - break; | |
1208 | - default: | |
1209 | - jj_la1[41] = jj_gen; | |
1210 | - ; | |
1211 | - } | |
1212 | - join = new JoinClause(); | |
1213 | - join.setJoinType(JoinClause.INNER_JOIN); | |
1214 | - join.setLeft(left); | |
1215 | - join.setRight(right); | |
1216 | - join.setCondition(cnd); | |
1217 | - break; | |
1218 | - case LEFT: | |
1219 | - jj_consume_token(LEFT); | |
1220 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1221 | - case OUTER: | |
1222 | - jj_consume_token(OUTER); | |
1223 | - break; | |
1224 | - default: | |
1225 | - jj_la1[42] = jj_gen; | |
1226 | - ; | |
1227 | - } | |
1228 | - jj_consume_token(JOIN); | |
1229 | - right = joinTarget(); | |
1230 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1231 | - case ON: | |
1232 | - cnd = joinCondition(); | |
1233 | - break; | |
1234 | - default: | |
1235 | - jj_la1[43] = jj_gen; | |
1236 | - ; | |
1237 | - } | |
1238 | - join = new JoinClause(); | |
1239 | - join.setJoinType(JoinClause.LEFT_JOIN); | |
1240 | - join.setLeft(left); | |
1241 | - join.setRight(right); | |
1242 | - join.setCondition(cnd); | |
1243 | - break; | |
1244 | - case RIGHT: | |
1245 | - jj_consume_token(RIGHT); | |
1246 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1247 | - case OUTER: | |
1248 | - jj_consume_token(OUTER); | |
1249 | - break; | |
1250 | - default: | |
1251 | - jj_la1[44] = jj_gen; | |
1252 | - ; | |
1253 | - } | |
1254 | - jj_consume_token(JOIN); | |
1255 | - right = joinTarget(); | |
1256 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1257 | - case ON: | |
1258 | - cnd = joinCondition(); | |
1259 | - break; | |
1260 | - default: | |
1261 | - jj_la1[45] = jj_gen; | |
1262 | - ; | |
1263 | - } | |
1264 | - join = new JoinClause(); | |
1265 | - join.setJoinType(JoinClause.RIGHT_JOIN); | |
1266 | - join.setLeft(left); | |
1267 | - join.setRight(right); | |
1268 | - join.setCondition(cnd); | |
1269 | - break; | |
1270 | - case NATURAL: | |
1271 | - jj_consume_token(NATURAL); | |
1272 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1273 | - case LEFT: | |
1274 | - case RIGHT: | |
1275 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1276 | - case RIGHT: | |
1277 | - jj_consume_token(RIGHT); | |
1278 | - break; | |
1279 | - case LEFT: | |
1280 | - jj_consume_token(LEFT); | |
1281 | - break; | |
1282 | - default: | |
1283 | - jj_la1[46] = jj_gen; | |
1284 | - jj_consume_token(-1); | |
1285 | - throw new ParseException(); | |
1286 | - } | |
1287 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1288 | - case OUTER: | |
1289 | - jj_consume_token(OUTER); | |
1290 | - break; | |
1291 | - default: | |
1292 | - jj_la1[47] = jj_gen; | |
1293 | - ; | |
1294 | - } | |
1295 | - break; | |
1296 | - default: | |
1297 | - jj_la1[48] = jj_gen; | |
1298 | - ; | |
1299 | - } | |
1300 | - jj_consume_token(JOIN); | |
1301 | - right = joinTarget(); | |
1302 | - join = new JoinClause(); | |
1303 | - join.setJoinType(JoinClause.NATURAL_JOIN); | |
1304 | - join.setLeft(left); | |
1305 | - join.setRight(right); | |
1306 | - break; | |
1307 | - case CROSS: | |
1308 | - jj_consume_token(CROSS); | |
1309 | - jj_consume_token(JOIN); | |
1310 | - right = joinTarget(); | |
1311 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1312 | - case ON: | |
1313 | - cnd = joinCondition(); | |
1314 | - break; | |
1315 | - default: | |
1316 | - jj_la1[49] = jj_gen; | |
1317 | - ; | |
1318 | - } | |
1319 | - join = new JoinClause(); | |
1320 | - join.setJoinType(JoinClause.CROSS_JOIN); | |
1321 | - join.setLeft(left); | |
1322 | - join.setRight(right); | |
1323 | - join.setCondition(cnd); | |
1324 | - break; | |
1325 | - default: | |
1326 | - jj_la1[50] = jj_gen; | |
1327 | - jj_consume_token(-1); | |
1328 | - throw new ParseException(); | |
1329 | - } | |
1330 | - break; | |
1331 | - default: | |
1332 | - jj_la1[51] = jj_gen; | |
1333 | - ; | |
1334 | - } | |
1335 | - if(join == null){ | |
1336 | - {if (true) return left;} | |
1337 | - } | |
1338 | - {if (true) return join;} | |
1339 | - throw new Error("Missing return statement in function"); | |
1340 | - } | |
1341 | - | |
1342 | - final public ISQLScriptObject joinTarget() throws ParseException { | |
1343 | - ISQLScriptObject target = null; | |
1344 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1345 | - case IDENTIFIER: | |
1346 | - target = table(); | |
1347 | - break; | |
1348 | - case L_PARENTHESIS: | |
1349 | - jj_consume_token(L_PARENTHESIS); | |
1350 | - target = join(); | |
1351 | - jj_consume_token(R_PARENTHESIS); | |
1352 | - break; | |
1353 | - default: | |
1354 | - jj_la1[52] = jj_gen; | |
1355 | - jj_consume_token(-1); | |
1356 | - throw new ParseException(); | |
1357 | - } | |
1358 | - {if (true) return target;} | |
1359 | - throw new Error("Missing return statement in function"); | |
1360 | - } | |
1361 | - | |
1362 | - final public JoinCondition joinCondition() throws ParseException { | |
1363 | - JoinCondition cnd = new JoinCondition(); | |
1364 | - ISQLExpression exp = null; | |
1365 | - jj_consume_token(ON); | |
1366 | - exp = orExp(); | |
1367 | - cnd.setExpression(exp); | |
1368 | - {if (true) return cnd;} | |
1369 | - throw new Error("Missing return statement in function"); | |
1370 | - } | |
1371 | - | |
1372 | - final public WhereClause where() throws ParseException { | |
1373 | - WhereClause where = new WhereClause(); | |
1374 | - ISQLExpression exp = null; | |
1375 | - jj_consume_token(WHERE); | |
1376 | - exp = orExp(); | |
1377 | - where.setExpression(exp); | |
1378 | - | |
1379 | - {if (true) return where;} | |
1380 | - throw new Error("Missing return statement in function"); | |
1381 | - } | |
1382 | - | |
1383 | - final public ISQLExpression orExp() throws ParseException { | |
1384 | - ISQLExpression fexp = null; | |
1385 | - ISQLExpression exp = null; | |
1386 | - OrExpression or = null; | |
1387 | - fexp = andExp(); | |
1388 | - label_8: | |
1389 | - while (true) { | |
1390 | - if (jj_2_8(2)) { | |
1391 | - ; | |
1392 | - } else { | |
1393 | - break label_8; | |
1394 | - } | |
1395 | - jj_consume_token(OR); | |
1396 | - exp = andExp(); | |
1397 | - if(or == null){ | |
1398 | - or = new OrExpression(); | |
1399 | - or.addExpressions(fexp); | |
1400 | - } | |
1401 | - | |
1402 | - or.addExpressions(exp); | |
1403 | - } | |
1404 | - if(or != null){ | |
1405 | - {if (true) return or;} | |
1406 | - } | |
1407 | - {if (true) return fexp;} | |
1408 | - throw new Error("Missing return statement in function"); | |
1409 | - } | |
1410 | - | |
1411 | - final public ISQLExpression andExp() throws ParseException { | |
1412 | - ISQLExpression fexp = null; | |
1413 | - ISQLExpression exp = null; | |
1414 | - AndExpression and = null; | |
1415 | - fexp = parenthesisExp(); | |
1416 | - label_9: | |
1417 | - while (true) { | |
1418 | - if (jj_2_9(2)) { | |
1419 | - ; | |
1420 | - } else { | |
1421 | - break label_9; | |
1422 | - } | |
1423 | - jj_consume_token(AND); | |
1424 | - exp = parenthesisExp(); | |
1425 | - if(and == null){ | |
1426 | - and = new AndExpression(); | |
1427 | - and.addExpressions(fexp); | |
1428 | - } | |
1429 | - | |
1430 | - and.addExpressions(exp); | |
1431 | - } | |
1432 | - if(and != null){ | |
1433 | - {if (true) return and;} | |
1434 | - } | |
1435 | - {if (true) return fexp;} | |
1436 | - throw new Error("Missing return statement in function"); | |
1437 | - } | |
1438 | - | |
1439 | - final public ISQLExpression parenthesisExp() throws ParseException { | |
1440 | - ISQLExpression exp = null; | |
1441 | - if (jj_2_10(2)) { | |
1442 | - jj_consume_token(L_PARENTHESIS); | |
1443 | - exp = orExp(); | |
1444 | - jj_consume_token(R_PARENTHESIS); | |
1445 | - ParenthesisExpression pexp = new ParenthesisExpression(); | |
1446 | - pexp.addExpressions(exp); | |
1447 | - | |
1448 | - {if (true) return pexp;} | |
1449 | - } else { | |
1450 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1451 | - case ASTERISK: | |
1452 | - case L_PARENTHESIS: | |
1453 | - case DOLLAR: | |
1454 | - case AT_MARK: | |
1455 | - case SQL_NOT: | |
1456 | - case IDENTIFIER: | |
1457 | - case NUMERIC: | |
1458 | - case DQSTRLIT: | |
1459 | - case SQSTRLIT: | |
1460 | - exp = sqlNotExpression(); | |
1461 | - {if (true) return exp;} | |
1462 | - break; | |
1463 | - default: | |
1464 | - jj_la1[53] = jj_gen; | |
1465 | - jj_consume_token(-1); | |
1466 | - throw new ParseException(); | |
1467 | - } | |
1468 | - } | |
1469 | - throw new Error("Missing return statement in function"); | |
1470 | - } | |
1471 | - | |
1472 | - final public ISQLExpression sqlNotExpression() throws ParseException { | |
1473 | - SQLNotExpression sqlNotExp = null; | |
1474 | - ISQLExpression exp = null; | |
1475 | - if (jj_2_11(2)) { | |
1476 | - exp = twoClauseExpression(); | |
1477 | - {if (true) return exp;} | |
1478 | - } else { | |
1479 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1480 | - case SQL_NOT: | |
1481 | - jj_consume_token(SQL_NOT); | |
1482 | - exp = orExp(); | |
1483 | - sqlNotExp = new SQLNotExpression(); | |
1484 | - sqlNotExp.addExpressions(exp); | |
1485 | - | |
1486 | - {if (true) return sqlNotExp;} | |
1487 | - break; | |
1488 | - default: | |
1489 | - jj_la1[54] = jj_gen; | |
1490 | - if (jj_2_12(3)) { | |
1491 | - exp = betweenClauseExpression(); | |
1492 | - {if (true) return exp;} | |
1493 | - } else if (jj_2_13(3)) { | |
1494 | - exp = inClauseExpression(); | |
1495 | - {if (true) return exp;} | |
1496 | - } else { | |
1497 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1498 | - case ASTERISK: | |
1499 | - case L_PARENTHESIS: | |
1500 | - case DOLLAR: | |
1501 | - case AT_MARK: | |
1502 | - case IDENTIFIER: | |
1503 | - case NUMERIC: | |
1504 | - case DQSTRLIT: | |
1505 | - case SQSTRLIT: | |
1506 | - exp = isNullExpression(); | |
1507 | - {if (true) return exp;} | |
1508 | - break; | |
1509 | - default: | |
1510 | - jj_la1[55] = jj_gen; | |
1511 | - jj_consume_token(-1); | |
1512 | - throw new ParseException(); | |
1513 | - } | |
1514 | - } | |
1515 | - } | |
1516 | - } | |
1517 | - throw new Error("Missing return statement in function"); | |
1518 | - } | |
1519 | - | |
1520 | - final public ISQLExpression isNullExpression() throws ParseException { | |
1521 | - IsNullClauseExpression exp = new IsNullClauseExpression(); | |
1522 | - ISQLStatement top = null; | |
1523 | - Token t = null; | |
1524 | - top = sqlStatement(); | |
1525 | - jj_consume_token(IS); | |
1526 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1527 | - case SQL_NOT: | |
1528 | - t = jj_consume_token(SQL_NOT); | |
1529 | - break; | |
1530 | - default: | |
1531 | - jj_la1[56] = jj_gen; | |
1532 | - ; | |
1533 | - } | |
1534 | - jj_consume_token(NULL); | |
1535 | - if(t != null){ | |
1536 | - exp.setNot(true); | |
1537 | - } | |
1538 | - | |
1539 | - exp.setStmt(top); | |
1540 | - | |
1541 | - {if (true) return exp;} | |
1542 | - throw new Error("Missing return statement in function"); | |
1543 | - } | |
1544 | - | |
1545 | - final public ISQLExpression inClauseExpression() throws ParseException { | |
1546 | - InClauseExpression inClause = new InClauseExpression(); | |
1547 | - ISQLStatement top = null; | |
1548 | - | |
1549 | - Object inElement = null; | |
1550 | - top = sqlStatement(); | |
1551 | - jj_consume_token(IN); | |
1552 | - inElement = inElement(); | |
1553 | - inClause.setTop(top); | |
1554 | - | |
1555 | - if(inElement instanceof VariableList){ | |
1556 | - inClause.setValList((VariableList)inElement); | |
1557 | - } | |
1558 | - else if(inElement instanceof SubQueryStatement){ | |
1559 | - inClause.setSubQuery((SubQueryStatement)inElement); | |
1560 | - } | |
1561 | - | |
1562 | - {if (true) return inClause;} | |
1563 | - throw new Error("Missing return statement in function"); | |
1564 | - } | |
1565 | - | |
1566 | - final public Object inElement() throws ParseException { | |
1567 | - SubQueryStatement subQuery = null; | |
1568 | - SelectSentence selectSentence = null; | |
1569 | - | |
1570 | - VariableList vals = new VariableList(); | |
1571 | - ISQLStatement val = null; | |
1572 | - jj_consume_token(L_PARENTHESIS); | |
1573 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1574 | - case L_PARENTHESIS: | |
1575 | - case DOLLAR: | |
1576 | - case AT_MARK: | |
1577 | - case IDENTIFIER: | |
1578 | - case NUMERIC: | |
1579 | - case DQSTRLIT: | |
1580 | - case SQSTRLIT: | |
1581 | - val = variable(); | |
1582 | - vals.addValues(val); | |
1583 | - label_10: | |
1584 | - while (true) { | |
1585 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1586 | - case COMMA: | |
1587 | - ; | |
1588 | - break; | |
1589 | - default: | |
1590 | - jj_la1[57] = jj_gen; | |
1591 | - break label_10; | |
1592 | - } | |
1593 | - jj_consume_token(COMMA); | |
1594 | - val = variable(); | |
1595 | - vals.addValues(val); | |
1596 | - } | |
1597 | - break; | |
1598 | - case SELECT: | |
1599 | - selectSentence = select(); | |
1600 | - break; | |
1601 | - default: | |
1602 | - jj_la1[58] = jj_gen; | |
1603 | - jj_consume_token(-1); | |
1604 | - throw new ParseException(); | |
1605 | - } | |
1606 | - jj_consume_token(R_PARENTHESIS); | |
1607 | - if(selectSentence != null){ | |
1608 | - subQuery = new SubQueryStatement(); | |
1609 | - subQuery.setSelectSentence(selectSentence); | |
1610 | - | |
1611 | - {if (true) return subQuery;} | |
1612 | - } | |
1613 | - | |
1614 | - {if (true) return vals;} | |
1615 | - throw new Error("Missing return statement in function"); | |
1616 | - } | |
1617 | - | |
1618 | - final public ISQLExpression betweenClauseExpression() throws ParseException { | |
1619 | - BetweenClauseExpression betweenClause = new BetweenClauseExpression(); | |
1620 | - ISQLStatement top = null; | |
1621 | - ISQLStatement left = null; | |
1622 | - ISQLStatement right = null; | |
1623 | - top = sqlStatement(); | |
1624 | - jj_consume_token(BETWEEN); | |
1625 | - left = sqlStatement(); | |
1626 | - jj_consume_token(AND); | |
1627 | - right = sqlStatement(); | |
1628 | - betweenClause.setTop(top); | |
1629 | - betweenClause.setLeft(left); | |
1630 | - betweenClause.setRight(right); | |
1631 | - | |
1632 | - {if (true) return betweenClause;} | |
1633 | - throw new Error("Missing return statement in function"); | |
1634 | - } | |
1635 | - | |
1636 | - final public ISQLExpression twoClauseExpression() throws ParseException { | |
1637 | - TwoClauseExpression exp = null; | |
1638 | - LikeExpression likeExp = null; | |
1639 | - ISQLStatement left = null; | |
1640 | - ISQLStatement right = null; | |
1641 | - ISQLStatement escape = null; | |
1642 | - Token op = null; | |
1643 | - left = sqlStatement(); | |
1644 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1645 | - case EQUALS: | |
1646 | - op = jj_consume_token(EQUALS); | |
1647 | - break; | |
1648 | - case SQL_NOT_EQUALS: | |
1649 | - op = jj_consume_token(SQL_NOT_EQUALS); | |
1650 | - break; | |
1651 | - case GT: | |
1652 | - op = jj_consume_token(GT); | |
1653 | - break; | |
1654 | - case GEQ: | |
1655 | - op = jj_consume_token(GEQ); | |
1656 | - break; | |
1657 | - case LT: | |
1658 | - op = jj_consume_token(LT); | |
1659 | - break; | |
1660 | - case LEQ: | |
1661 | - op = jj_consume_token(LEQ); | |
1662 | - break; | |
1663 | - case AT_AT_MARK: | |
1664 | - op = jj_consume_token(AT_AT_MARK); | |
1665 | - break; | |
1666 | - case LIKE: | |
1667 | - op = jj_consume_token(LIKE); | |
1668 | - break; | |
1669 | - default: | |
1670 | - jj_la1[59] = jj_gen; | |
1671 | - jj_consume_token(-1); | |
1672 | - throw new ParseException(); | |
1673 | - } | |
1674 | - right = sqlStatement(); | |
1675 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1676 | - case ESCAPE: | |
1677 | - jj_consume_token(ESCAPE); | |
1678 | - escape = variable(); | |
1679 | - break; | |
1680 | - default: | |
1681 | - jj_la1[60] = jj_gen; | |
1682 | - ; | |
1683 | - } | |
1684 | - if(op.image.toUpperCase().equals("LIKE")){ | |
1685 | - likeExp = new LikeExpression(); | |
1686 | - | |
1687 | - likeExp.setLeft(left); | |
1688 | - likeExp.setRight(right); | |
1689 | - | |
1690 | - if(escape != null){ | |
1691 | - likeExp.setEscape(escape); | |
1692 | - } | |
1693 | - | |
1694 | - {if (true) return likeExp;} | |
1695 | - } | |
1696 | - | |
1697 | - exp = new TwoClauseExpression(); | |
1698 | - | |
1699 | - exp.setLeft(left); | |
1700 | - exp.setRight(right); | |
1701 | - exp.setOpe(op.image); | |
1702 | - | |
1703 | - | |
1704 | - {if (true) return exp;} | |
1705 | - throw new Error("Missing return statement in function"); | |
1706 | - } | |
1707 | - | |
1708 | - final public ISQLStatement sqlStatement() throws ParseException { | |
1709 | - SQLStatement stmt = new SQLStatement(); | |
1710 | - ISQLStatement first = null; | |
1711 | - SQLSubStatement sub = null; | |
1712 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1713 | - case L_PARENTHESIS: | |
1714 | - case DOLLAR: | |
1715 | - case AT_MARK: | |
1716 | - case IDENTIFIER: | |
1717 | - case NUMERIC: | |
1718 | - case DQSTRLIT: | |
1719 | - case SQSTRLIT: | |
1720 | - first = sqlSubStatementOperand(); | |
1721 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1722 | - case ASTERISK: | |
1723 | - case PLUS: | |
1724 | - case MINUS: | |
1725 | - case DIV: | |
1726 | - case BIT_AND: | |
1727 | - case BIT_OR: | |
1728 | - sub = sqlSubStatement(); | |
1729 | - break; | |
1730 | - default: | |
1731 | - jj_la1[61] = jj_gen; | |
1732 | - ; | |
1733 | - } | |
1734 | - stmt.setFirstStmt(first); | |
1735 | - stmt.setSubStatement(sub); | |
1736 | - | |
1737 | - {if (true) return stmt;} | |
1738 | - break; | |
1739 | - case ASTERISK: | |
1740 | - jj_consume_token(ASTERISK); | |
1741 | - {if (true) return new SQLAllStatemtet();} | |
1742 | - break; | |
1743 | - default: | |
1744 | - jj_la1[62] = jj_gen; | |
1745 | - jj_consume_token(-1); | |
1746 | - throw new ParseException(); | |
1747 | - } | |
1748 | - throw new Error("Missing return statement in function"); | |
1749 | - } | |
1750 | - | |
1751 | - final public SQLSubStatement sqlSubStatement() throws ParseException { | |
1752 | - SQLSubStatement subStmt = new SQLSubStatement(); | |
1753 | - ISQLStatement operand = null; | |
1754 | - Token t = null; | |
1755 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1756 | - case BIT_AND: | |
1757 | - t = jj_consume_token(BIT_AND); | |
1758 | - break; | |
1759 | - case BIT_OR: | |
1760 | - t = jj_consume_token(BIT_OR); | |
1761 | - break; | |
1762 | - case PLUS: | |
1763 | - t = jj_consume_token(PLUS); | |
1764 | - break; | |
1765 | - case MINUS: | |
1766 | - t = jj_consume_token(MINUS); | |
1767 | - break; | |
1768 | - case DIV: | |
1769 | - t = jj_consume_token(DIV); | |
1770 | - break; | |
1771 | - case ASTERISK: | |
1772 | - t = jj_consume_token(ASTERISK); | |
1773 | - break; | |
1774 | - default: | |
1775 | - jj_la1[63] = jj_gen; | |
1776 | - jj_consume_token(-1); | |
1777 | - throw new ParseException(); | |
1778 | - } | |
1779 | - operand = sqlSubStatementOperand(); | |
1780 | - subStmt.setOpe(t.image); | |
1781 | - subStmt.setStatement(operand); | |
1782 | - {if (true) return subStmt;} | |
1783 | - throw new Error("Missing return statement in function"); | |
1784 | - } | |
1785 | - | |
1786 | - final public ISQLStatement sqlSubStatementOperand() throws ParseException { | |
1787 | - ISQLStatement opernd = null; | |
1788 | - SQLParenthesisStatement pStmt = null; | |
1789 | - if (jj_2_14(2)) { | |
1790 | - opernd = variable(); | |
1791 | - {if (true) return opernd;} | |
1792 | - } else { | |
1793 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1794 | - case IDENTIFIER: | |
1795 | - opernd = columnIdentifier(); | |
1796 | - {if (true) return opernd;} | |
1797 | - break; | |
1798 | - case L_PARENTHESIS: | |
1799 | - jj_consume_token(L_PARENTHESIS); | |
1800 | - opernd = sqlStatement(); | |
1801 | - jj_consume_token(R_PARENTHESIS); | |
1802 | - pStmt = new SQLParenthesisStatement(); | |
1803 | - pStmt.setStmt(opernd); | |
1804 | - | |
1805 | - {if (true) return pStmt;} | |
1806 | - break; | |
1807 | - default: | |
1808 | - jj_la1[64] = jj_gen; | |
1809 | - jj_consume_token(-1); | |
1810 | - throw new ParseException(); | |
1811 | - } | |
1812 | - } | |
1813 | - throw new Error("Missing return statement in function"); | |
1814 | - } | |
1815 | - | |
1816 | - final public ColumnIdentifier columnIdentifier() throws ParseException { | |
1817 | - ColumnIdentifier id = new ColumnIdentifier(); | |
1818 | - Token t1 = null; | |
1819 | - Token t2 = null; | |
1820 | - Token t3 = null; | |
1821 | - t1 = jj_consume_token(IDENTIFIER); | |
1822 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1823 | - case DOT: | |
1824 | - jj_consume_token(DOT); | |
1825 | - t2 = jj_consume_token(IDENTIFIER); | |
1826 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1827 | - case DOT: | |
1828 | - jj_consume_token(DOT); | |
1829 | - t3 = jj_consume_token(IDENTIFIER); | |
1830 | - break; | |
1831 | - default: | |
1832 | - jj_la1[65] = jj_gen; | |
1833 | - ; | |
1834 | - } | |
1835 | - break; | |
1836 | - default: | |
1837 | - jj_la1[66] = jj_gen; | |
1838 | - ; | |
1839 | - } | |
1840 | - if(t2 != null && t3 != null){ | |
1841 | - id.setDatabaseName(t1.image); | |
1842 | - id.setTableName(t2.image); | |
1843 | - id.setColumnName(t3.image); | |
1844 | - }else if(t2 != null && t3 == null){ | |
1845 | - id.setTableName(t1.image); | |
1846 | - id.setColumnName(t2.image); | |
1847 | - }else{ | |
1848 | - id.setColumnName(t1.image); | |
1849 | - } | |
1850 | - | |
1851 | - {if (true) return id;} | |
1852 | - throw new Error("Missing return statement in function"); | |
1853 | - } | |
1854 | - | |
1855 | - final public ISQLStatement variable() throws ParseException { | |
1856 | - Token t = null; | |
1857 | - IPathElement pathElement = null; | |
1858 | - ISQLStatement stmt = null; | |
1859 | - SQLVariable variable = null; | |
1860 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1861 | - case DOLLAR: | |
1862 | - jj_consume_token(DOLLAR); | |
1863 | - pathElement = domPath(); | |
1864 | - variable = new SQLVariable(); | |
1865 | - variable.setPathElement(pathElement); | |
1866 | - variable.setPrefix("$"); | |
1867 | - | |
1868 | - {if (true) return variable;} | |
1869 | - break; | |
1870 | - case AT_MARK: | |
1871 | - jj_consume_token(AT_MARK); | |
1872 | - pathElement = domPath(); | |
1873 | - variable = new SQLVariable(); | |
1874 | - variable.setPathElement(pathElement); | |
1875 | - variable.setPrefix("@"); | |
1876 | - | |
1877 | - {if (true) return variable;} | |
1878 | - break; | |
1879 | - case DQSTRLIT: | |
1880 | - case SQSTRLIT: | |
1881 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1882 | - case DQSTRLIT: | |
1883 | - t = jj_consume_token(DQSTRLIT); | |
1884 | - break; | |
1885 | - case SQSTRLIT: | |
1886 | - t = jj_consume_token(SQSTRLIT); | |
1887 | - break; | |
1888 | - default: | |
1889 | - jj_la1[67] = jj_gen; | |
1890 | - jj_consume_token(-1); | |
1891 | - throw new ParseException(); | |
1892 | - } | |
1893 | - SQLStringConst strvariable = new SQLStringConst(); | |
1894 | - strvariable.setStr(t.image); | |
1895 | - | |
1896 | - {if (true) return strvariable;} | |
1897 | - break; | |
1898 | - case NUMERIC: | |
1899 | - t = jj_consume_token(NUMERIC); | |
1900 | - SQLNumericConst numericVal = new SQLNumericConst(); | |
1901 | - numericVal.setNumber(t.image); | |
1902 | - | |
1903 | - {if (true) return numericVal;} | |
1904 | - break; | |
1905 | - case IDENTIFIER: | |
1906 | - stmt = sqlFunctionCall(); | |
1907 | - {if (true) return stmt;} | |
1908 | - break; | |
1909 | - case L_PARENTHESIS: | |
1910 | - stmt = sqlSubQuery(); | |
1911 | - {if (true) return stmt;} | |
1912 | - break; | |
1913 | - default: | |
1914 | - jj_la1[68] = jj_gen; | |
1915 | - jj_consume_token(-1); | |
1916 | - throw new ParseException(); | |
1917 | - } | |
1918 | - throw new Error("Missing return statement in function"); | |
1919 | - } | |
1920 | - | |
1921 | - final public ISQLStatement sqlSubQuery() throws ParseException { | |
1922 | - SubQueryStatement subQuery = new SubQueryStatement(); | |
1923 | - SelectSentence selectSentence = null; | |
1924 | - jj_consume_token(L_PARENTHESIS); | |
1925 | - selectSentence = select(); | |
1926 | - jj_consume_token(R_PARENTHESIS); | |
1927 | - subQuery.setSelectSentence(selectSentence); | |
1928 | - | |
1929 | - {if (true) return subQuery;} | |
1930 | - throw new Error("Missing return statement in function"); | |
1931 | - } | |
1932 | - | |
1933 | - final public ISQLStatement sqlFunctionCall() throws ParseException { | |
1934 | - SQLFunctionCallStatement funcCall = new SQLFunctionCallStatement(); | |
1935 | - SQLFunctionCallArguments arguments = null; | |
1936 | - | |
1937 | - Token t = null; | |
1938 | - t = jj_consume_token(IDENTIFIER); | |
1939 | - jj_consume_token(L_PARENTHESIS); | |
1940 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1941 | - case ASTERISK: | |
1942 | - case L_PARENTHESIS: | |
1943 | - case DOLLAR: | |
1944 | - case AT_MARK: | |
1945 | - case IDENTIFIER: | |
1946 | - case NUMERIC: | |
1947 | - case DQSTRLIT: | |
1948 | - case SQSTRLIT: | |
1949 | - arguments = sqlFunctionArguments(); | |
1950 | - funcCall.setArguments(arguments); | |
1951 | - break; | |
1952 | - default: | |
1953 | - jj_la1[69] = jj_gen; | |
1954 | - ; | |
1955 | - } | |
1956 | - jj_consume_token(R_PARENTHESIS); | |
1957 | - funcCall.setName(t.image); | |
1958 | - | |
1959 | - {if (true) return funcCall;} | |
1960 | - throw new Error("Missing return statement in function"); | |
1961 | - } | |
1962 | - | |
1963 | - final public SQLFunctionCallArguments sqlFunctionArguments() throws ParseException { | |
1964 | - SQLFunctionCallArguments args = new SQLFunctionCallArguments(); | |
1965 | - ISQLStatement argument = null; | |
1966 | - argument = sqlStatement(); | |
1967 | - args.addArgument(argument); | |
1968 | - label_11: | |
1969 | - while (true) { | |
1970 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1971 | - case COMMA: | |
1972 | - ; | |
1973 | - break; | |
1974 | - default: | |
1975 | - jj_la1[70] = jj_gen; | |
1976 | - break label_11; | |
1977 | - } | |
1978 | - jj_consume_token(COMMA); | |
1979 | - argument = sqlStatement(); | |
1980 | - args.addArgument(argument); | |
1981 | - } | |
1982 | - {if (true) return args;} | |
1983 | - throw new Error("Missing return statement in function"); | |
1984 | - } | |
1985 | - | |
1986 | - final public Identifier identifier() throws ParseException { | |
1987 | - Identifier idf = new Identifier(); | |
1988 | - Token t = null; | |
1989 | - t = jj_consume_token(IDENTIFIER); | |
1990 | - idf.setName(t.image); | |
1991 | - {if (true) return idf;} | |
1992 | - throw new Error("Missing return statement in function"); | |
1993 | - } | |
1994 | - | |
1995 | - final public AdjustWhere adjustWhere() throws ParseException { | |
1996 | - AdjustWhere adWhere = new AdjustWhere(); | |
1997 | - Token t = null; | |
1998 | - jj_consume_token(ADJUST_WHERE); | |
1999 | - jj_consume_token(EQUALS); | |
2000 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2001 | - case TRUE: | |
2002 | - t = jj_consume_token(TRUE); | |
2003 | - break; | |
2004 | - case FALSE: | |
2005 | - t = jj_consume_token(FALSE); | |
2006 | - break; | |
2007 | - default: | |
2008 | - jj_la1[71] = jj_gen; | |
2009 | - jj_consume_token(-1); | |
2010 | - throw new ParseException(); | |
2011 | - } | |
2012 | - adWhere.setValue(t.image); | |
2013 | - | |
2014 | - {if (true) return adWhere;} | |
2015 | - throw new Error("Missing return statement in function"); | |
2016 | - } | |
2017 | - | |
2018 | - final public AdjustSet adjustSet() throws ParseException { | |
2019 | - AdjustSet adSet = new AdjustSet(); | |
2020 | - Token t = null; | |
2021 | - jj_consume_token(ADJUST_SET); | |
2022 | - jj_consume_token(EQUALS); | |
2023 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2024 | - case TRUE: | |
2025 | - t = jj_consume_token(TRUE); | |
2026 | - break; | |
2027 | - case FALSE: | |
2028 | - t = jj_consume_token(FALSE); | |
2029 | - break; | |
2030 | - default: | |
2031 | - jj_la1[72] = jj_gen; | |
2032 | - jj_consume_token(-1); | |
2033 | - throw new ParseException(); | |
2034 | - } | |
2035 | - adSet.setValue(t.image); | |
2036 | - | |
2037 | - {if (true) return adSet;} | |
2038 | - throw new Error("Missing return statement in function"); | |
2039 | - } | |
2040 | - | |
2041 | - final public UpdateSentence update() throws ParseException { | |
2042 | - UpdateSentence sentence = new UpdateSentence(); | |
2043 | - TableIdentifier tbl = null; | |
2044 | - SetClause set = null; | |
2045 | - WhereClause where = null; | |
2046 | - AdjustWhere adjustWhere = null; | |
2047 | - AdjustSet adjustSet = null; | |
2048 | - | |
2049 | - Token t = null; | |
2050 | - t = jj_consume_token(UPDATE); | |
2051 | - tbl = table(); | |
2052 | - set = set(); | |
2053 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2054 | - case WHERE: | |
2055 | - where = where(); | |
2056 | - break; | |
2057 | - default: | |
2058 | - jj_la1[73] = jj_gen; | |
2059 | - ; | |
2060 | - } | |
2061 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2062 | - case ADJUST_SET: | |
2063 | - adjustSet = adjustSet(); | |
2064 | - break; | |
2065 | - default: | |
2066 | - jj_la1[74] = jj_gen; | |
2067 | - ; | |
2068 | - } | |
2069 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2070 | - case ADJUST_WHERE: | |
2071 | - adjustWhere = adjustWhere(); | |
2072 | - break; | |
2073 | - default: | |
2074 | - jj_la1[75] = jj_gen; | |
2075 | - ; | |
2076 | - } | |
2077 | - sentence.setTable(tbl); | |
2078 | - sentence.setSet(set); | |
2079 | - sentence.setWhere(where); | |
2080 | - sentence.setAdjustWhere(adjustWhere); | |
2081 | - sentence.setAdjustSet(adjustSet); | |
2082 | - | |
2083 | - sentence.setLine(t.beginLine); | |
2084 | - sentence.setLinePosition(t.beginColumn); | |
2085 | - | |
2086 | - {if (true) return sentence;} | |
2087 | - throw new Error("Missing return statement in function"); | |
2088 | - } | |
2089 | - | |
2090 | - final public SetClause set() throws ParseException { | |
2091 | - SetClause set = new SetClause(); | |
2092 | - SetPair pair = null; | |
2093 | - jj_consume_token(SET); | |
2094 | - pair = setPair(); | |
2095 | - set.addSet(pair); | |
2096 | - label_12: | |
2097 | - while (true) { | |
2098 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2099 | - case COMMA: | |
2100 | - ; | |
2101 | - break; | |
2102 | - default: | |
2103 | - jj_la1[76] = jj_gen; | |
2104 | - break label_12; | |
2105 | - } | |
2106 | - jj_consume_token(COMMA); | |
2107 | - pair = setPair(); | |
2108 | - set.addSet(pair); | |
2109 | - } | |
2110 | - {if (true) return set;} | |
2111 | - throw new Error("Missing return statement in function"); | |
2112 | - } | |
2113 | - | |
2114 | - final public SetPair setPair() throws ParseException { | |
2115 | - SetPair pair = new SetPair(); | |
2116 | - ColumnIdentifier col = null; | |
2117 | - ISQLStatement val = null; | |
2118 | - col = columnIdentifier(); | |
2119 | - jj_consume_token(EQUALS); | |
2120 | - val = sqlStatement(); | |
2121 | - pair.setColumn(col); | |
2122 | - pair.setValue(val); | |
2123 | - | |
2124 | - {if (true) return pair;} | |
2125 | - throw new Error("Missing return statement in function"); | |
2126 | - } | |
2127 | - | |
2128 | - final public DeleteSentence delete() throws ParseException { | |
2129 | - DeleteSentence sentence = new DeleteSentence(); | |
2130 | - FromClause from = null; | |
2131 | - WhereClause where = null; | |
2132 | - AdjustWhere adjustWhere = null; | |
2133 | - | |
2134 | - Token t = null; | |
2135 | - t = jj_consume_token(DELETE); | |
2136 | - from = from(); | |
2137 | - where = where(); | |
2138 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2139 | - case ADJUST_WHERE: | |
2140 | - adjustWhere = adjustWhere(); | |
2141 | - break; | |
2142 | - default: | |
2143 | - jj_la1[77] = jj_gen; | |
2144 | - ; | |
2145 | - } | |
2146 | - sentence.setFrom(from); | |
2147 | - sentence.setWhere(where); | |
2148 | - sentence.setAdjustWhere(adjustWhere); | |
2149 | - | |
2150 | - sentence.setLine(t.beginLine); | |
2151 | - sentence.setLinePosition(t.beginColumn); | |
2152 | - | |
2153 | - {if (true) return sentence;} | |
2154 | - throw new Error("Missing return statement in function"); | |
2155 | - } | |
2156 | - | |
2157 | - final public InsertSentence insert() throws ParseException { | |
2158 | - InsertSentence sentence = new InsertSentence(); | |
2159 | - TableIdentifier tbl = null; | |
2160 | - ColumnList cols = null; | |
2161 | - VariableList vals = null; | |
2162 | - | |
2163 | - Token t = null; | |
2164 | - t = jj_consume_token(INSERT); | |
2165 | - jj_consume_token(INTO); | |
2166 | - tbl = table(); | |
2167 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2168 | - case L_PARENTHESIS: | |
2169 | - cols = insertColumns(); | |
2170 | - break; | |
2171 | - default: | |
2172 | - jj_la1[78] = jj_gen; | |
2173 | - ; | |
2174 | - } | |
2175 | - jj_consume_token(VALUES); | |
2176 | - vals = values(); | |
2177 | - sentence.addValues(vals); | |
2178 | - label_13: | |
2179 | - while (true) { | |
2180 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2181 | - case COMMA: | |
2182 | - ; | |
2183 | - break; | |
2184 | - default: | |
2185 | - jj_la1[79] = jj_gen; | |
2186 | - break label_13; | |
2187 | - } | |
2188 | - jj_consume_token(COMMA); | |
2189 | - vals = values(); | |
2190 | - sentence.addValues(vals); | |
2191 | - } | |
2192 | - sentence.setCols(cols); | |
2193 | - sentence.setTbl(tbl); | |
2194 | - | |
2195 | - sentence.setLine(t.beginLine); | |
2196 | - sentence.setLinePosition(t.beginColumn); | |
2197 | - | |
2198 | - {if (true) return sentence;} | |
2199 | - throw new Error("Missing return statement in function"); | |
2200 | - } | |
2201 | - | |
2202 | - final public ColumnList insertColumns() throws ParseException { | |
2203 | - ColumnList colList; | |
2204 | - ColumnIdentifier col; | |
2205 | - jj_consume_token(L_PARENTHESIS); | |
2206 | - col = columnIdentifier(); | |
2207 | - colList = new ColumnList(); | |
2208 | - colList.addColumns(col); | |
2209 | - label_14: | |
2210 | - while (true) { | |
2211 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2212 | - case COMMA: | |
2213 | - ; | |
2214 | - break; | |
2215 | - default: | |
2216 | - jj_la1[80] = jj_gen; | |
2217 | - break label_14; | |
2218 | - } | |
2219 | - jj_consume_token(COMMA); | |
2220 | - col = columnIdentifier(); | |
2221 | - colList.addColumns(col); | |
2222 | - } | |
2223 | - jj_consume_token(R_PARENTHESIS); | |
2224 | - {if (true) return colList;} | |
2225 | - throw new Error("Missing return statement in function"); | |
2226 | - } | |
2227 | - | |
2228 | - final public VariableList values() throws ParseException { | |
2229 | - VariableList vals = new VariableList(); | |
2230 | - ISQLStatement val = null; | |
2231 | - jj_consume_token(L_PARENTHESIS); | |
2232 | - val = variable(); | |
2233 | - vals.addValues(val); | |
2234 | - label_15: | |
2235 | - while (true) { | |
2236 | - switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2237 | - case COMMA: | |
2238 | - ; | |
2239 | - break; | |
2240 | - default: | |
2241 | - jj_la1[81] = jj_gen; | |
2242 | - break label_15; | |
2243 | - } | |
2244 | - jj_consume_token(COMMA); | |
2245 | - val = variable(); | |
2246 | - vals.addValues(val); | |
2247 | - } | |
2248 | - jj_consume_token(R_PARENTHESIS); | |
2249 | - {if (true) return vals;} | |
2250 | - throw new Error("Missing return statement in function"); | |
2251 | - } | |
2252 | - | |
1 | +/* Generated By:JavaCC: Do not edit this line. AlinousScriptParser.java */ | |
2 | +package org.alinous.parser.script; | |
3 | + | |
4 | +import org.alinous.script.runtime.ArrayPathElement; | |
5 | +import org.alinous.script.runtime.IPathElement; | |
6 | +import org.alinous.script.runtime.PathElement; | |
7 | +import org.alinous.script.sql.ISQLScriptObject; | |
8 | +import org.alinous.script.AlinousScript; | |
9 | +import org.alinous.script.IScriptBlock; | |
10 | +import org.alinous.script.IScriptSentence; | |
11 | +import org.alinous.script.sql.SelectSentence; | |
12 | +import org.alinous.script.sql.UpdateSentence; | |
13 | +import org.alinous.script.sql.SetClause; | |
14 | +import org.alinous.script.sql.lock.ForUpdateClause; | |
15 | +import org.alinous.script.sql.other.SetPair; | |
16 | +import org.alinous.script.sql.BeginSentence; | |
17 | +import org.alinous.script.sql.CommitSentence; | |
18 | +import org.alinous.script.sql.DeleteSentence; | |
19 | +import org.alinous.script.sql.GroupByClause; | |
20 | +import org.alinous.script.sql.HavingClause; | |
21 | +import org.alinous.script.sql.InsertSentence; | |
22 | +import org.alinous.script.sql.OrderByClause; | |
23 | +import org.alinous.script.sql.LimitOffsetClause; | |
24 | +import org.alinous.script.sql.RollbackSentence; | |
25 | +import org.alinous.script.sql.SelectColumns; | |
26 | +import org.alinous.script.sql.IntoClause; | |
27 | +import org.alinous.script.sql.FromClause; | |
28 | +import org.alinous.script.sql.JoinClause; | |
29 | +import org.alinous.script.sql.other.JoinCondition; | |
30 | +import org.alinous.script.sql.WhereClause; | |
31 | +import org.alinous.script.sql.adjustopt.AdjustSet; | |
32 | +import org.alinous.script.sql.adjustopt.AdjustWhere; | |
33 | +import org.alinous.script.sql.condition.BetweenClauseExpression; | |
34 | +import org.alinous.script.sql.condition.ISQLExpression; | |
35 | +import org.alinous.script.sql.condition.InClauseExpression; | |
36 | +import org.alinous.script.sql.condition.IsNullClauseExpression; | |
37 | +import org.alinous.script.sql.condition.LikeExpression; | |
38 | +import org.alinous.script.sql.condition.OrExpression; | |
39 | +import org.alinous.script.sql.condition.AndExpression; | |
40 | +import org.alinous.script.sql.condition.SQLNotExpression; | |
41 | +import org.alinous.script.sql.condition.TwoClauseExpression; | |
42 | +import org.alinous.script.sql.condition.ParenthesisExpression; | |
43 | +import org.alinous.script.sql.statement.ISQLStatement; | |
44 | +import org.alinous.script.sql.statement.SQLAllStatemtet; | |
45 | +import org.alinous.script.sql.statement.SQLParenthesisStatement; | |
46 | +import org.alinous.script.sql.statement.SQLVariable; | |
47 | +import org.alinous.script.sql.statement.SQLStringConst; | |
48 | +import org.alinous.script.sql.statement.SQLNumericConst; | |
49 | +import org.alinous.script.sql.statement.Identifier; | |
50 | +import org.alinous.script.sql.statement.SQLSubStatement; | |
51 | +import org.alinous.script.sql.statement.SQLStatement; | |
52 | +import org.alinous.script.sql.statement.ColumnIdentifier; | |
53 | +import org.alinous.script.sql.statement.SQLFunctionCallStatement; | |
54 | +import org.alinous.script.sql.statement.SQLFunctionCallArguments; | |
55 | +import org.alinous.script.sql.statement.SubQueryStatement; | |
56 | +import org.alinous.script.sql.other.SelectColumnElement; | |
57 | +import org.alinous.script.sql.other.TablesList; | |
58 | +import org.alinous.script.sql.other.TableIdentifier; | |
59 | +import org.alinous.script.sql.other.ColumnList; | |
60 | +import org.alinous.script.sql.other.VariableList; | |
61 | + | |
62 | + | |
63 | +import org.alinous.script.basic.BreakSentence; | |
64 | +import org.alinous.script.basic.ContinueSentence; | |
65 | +import org.alinous.script.basic.ElseBlock; | |
66 | +import org.alinous.script.basic.FunctionCallSentence; | |
67 | +import org.alinous.script.basic.PlusPlusSentence; | |
68 | +import org.alinous.script.basic.ReturnSentence; | |
69 | +import org.alinous.script.basic.SubstituteSentence; | |
70 | +import org.alinous.script.basic.UseSentence; | |
71 | +import org.alinous.script.basic.type.BooleanConst; | |
72 | +import org.alinous.script.basic.type.DoubleConst; | |
73 | +import org.alinous.script.basic.type.IStatement; | |
74 | +import org.alinous.script.basic.type.IVariableDescription; | |
75 | +import org.alinous.script.basic.type.NullConst; | |
76 | +import org.alinous.script.basic.type.NumericConst; | |
77 | +import org.alinous.script.basic.type.StringConst; | |
78 | +import org.alinous.script.basic.type.VariableDescriptor; | |
79 | +import org.alinous.script.basic.IfBlock; | |
80 | +import org.alinous.script.basic.WhileBlock; | |
81 | +import org.alinous.script.basic.DoWhileBlock; | |
82 | +import org.alinous.script.basic.ForBlock; | |
83 | + | |
84 | +import org.alinous.script.basic.condition.DivStmtCondition; | |
85 | +import org.alinous.script.basic.condition.IScriptCondition; | |
86 | +import org.alinous.script.basic.condition.DirectCondition; | |
87 | +import org.alinous.script.basic.condition.MinusStmtCondition; | |
88 | +import org.alinous.script.basic.condition.ModuloStmtCondition; | |
89 | +import org.alinous.script.basic.condition.MultipleStmtCondition; | |
90 | +import org.alinous.script.basic.condition.NotCondition; | |
91 | +import org.alinous.script.basic.condition.ParenthesisCondition; | |
92 | +import org.alinous.script.basic.condition.AndCondition; | |
93 | +import org.alinous.script.basic.condition.OrCondition; | |
94 | +import org.alinous.script.basic.condition.PlusStmtCondition; | |
95 | +import org.alinous.script.basic.condition.VariableStmtCondition; | |
96 | + | |
97 | +import org.alinous.script.functions.ArgumentDeclare; | |
98 | +import org.alinous.script.functions.ArgumentsDeclare; | |
99 | +import org.alinous.script.functions.FuncDeclarations; | |
100 | +import org.alinous.script.functions.FunctionDeclaration; | |
101 | + | |
102 | +import org.alinous.script.statement.BooleanStatement; | |
103 | +import org.alinous.script.statement.FunctionCall; | |
104 | +import org.alinous.script.statement.FuncArguments; | |
105 | +import org.alinous.script.statement.ModuloStatement; | |
106 | +import org.alinous.script.statement.MultipleStatement; | |
107 | +import org.alinous.script.statement.ParenthesisElemenet; | |
108 | +import org.alinous.script.statement.PlusPlusStatement; | |
109 | +import org.alinous.script.statement.PlusStatement; | |
110 | +import org.alinous.script.statement.SubStatement; | |
111 | + | |
112 | + | |
113 | + | |
114 | + | |
115 | +public class AlinousScriptParser implements AlinousScriptParserConstants { | |
116 | + private String filePath; | |
117 | + public void setFilePath(String filePath) | |
118 | + { | |
119 | + this.filePath = filePath; | |
120 | + } | |
121 | + | |
122 | + final public AlinousScript parse() throws ParseException { | |
123 | + AlinousScript topObj = new AlinousScript(this.filePath); | |
124 | + IScriptSentence sentence = null; | |
125 | + FuncDeclarations funcDec = null; | |
126 | + label_1: | |
127 | + while (true) { | |
128 | + if (jj_2_1(2)) { | |
129 | + ; | |
130 | + } else { | |
131 | + break label_1; | |
132 | + } | |
133 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
134 | + case PLUSPLUS: | |
135 | + case MINUSMINUS: | |
136 | + case DOLLAR: | |
137 | + case AT_MARK: | |
138 | + case SELECT: | |
139 | + case INSERT: | |
140 | + case UPDATE: | |
141 | + case DELETE: | |
142 | + case INTO: | |
143 | + case FROM: | |
144 | + case WHERE: | |
145 | + case OR: | |
146 | + case AND: | |
147 | + case LIKE: | |
148 | + case ESCAPE: | |
149 | + case LEFT: | |
150 | + case RIGHT: | |
151 | + case NATURAL: | |
152 | + case INNER: | |
153 | + case OUTER: | |
154 | + case FULL: | |
155 | + case JOIN: | |
156 | + case CROSS: | |
157 | + case SET: | |
158 | + case VALUES: | |
159 | + case GROUP: | |
160 | + case BY: | |
161 | + case HAVING: | |
162 | + case ORDER: | |
163 | + case ASC: | |
164 | + case DESC: | |
165 | + case LIMIT: | |
166 | + case OFFSET: | |
167 | + case ON: | |
168 | + case SQL_NOT: | |
169 | + case AS: | |
170 | + case DISTINCT: | |
171 | + case IN: | |
172 | + case BETWEEN: | |
173 | + case IS: | |
174 | + case BEGIN: | |
175 | + case COMMIT: | |
176 | + case END: | |
177 | + case ROLLBACK: | |
178 | + case TRUE: | |
179 | + case FALSE: | |
180 | + case BOOL: | |
181 | + case NULL: | |
182 | + case RETURN: | |
183 | + case USE: | |
184 | + case BREAK: | |
185 | + case CONTINUE: | |
186 | + case IDENTIFIER: | |
187 | + case NUMERIC: | |
188 | + case DOUBLE: | |
189 | + case DQSTRLIT: | |
190 | + case SQSTRLIT: | |
191 | + sentence = sentence(); | |
192 | + jj_consume_token(SEMI_COLON); | |
193 | + break; | |
194 | + case IF: | |
195 | + case WHILE: | |
196 | + case DO: | |
197 | + case FOR: | |
198 | + sentence = block(); | |
199 | + break; | |
200 | + default: | |
201 | + jj_la1[0] = jj_gen; | |
202 | + jj_consume_token(-1); | |
203 | + throw new ParseException(); | |
204 | + } | |
205 | + topObj.addSentence(sentence); | |
206 | + } | |
207 | + funcDec = funcDeclarations(); | |
208 | + jj_consume_token(0); | |
209 | + topObj.setFuncDeclarations(funcDec); | |
210 | + {if (true) return topObj;} | |
211 | + throw new Error("Missing return statement in function"); | |
212 | + } | |
213 | + | |
214 | + final public FuncDeclarations funcDeclarations() throws ParseException { | |
215 | + FuncDeclarations declarations = new FuncDeclarations(this.filePath); | |
216 | + FunctionDeclaration declare = null; | |
217 | + label_2: | |
218 | + while (true) { | |
219 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
220 | + case FUNCTION: | |
221 | + ; | |
222 | + break; | |
223 | + default: | |
224 | + jj_la1[1] = jj_gen; | |
225 | + break label_2; | |
226 | + } | |
227 | + declare = functionDeclare(); | |
228 | + declarations.addFunction(declare); | |
229 | + } | |
230 | + {if (true) return declarations;} | |
231 | + throw new Error("Missing return statement in function"); | |
232 | + } | |
233 | + | |
234 | + final public FunctionDeclaration functionDeclare() throws ParseException { | |
235 | + FunctionDeclaration funcDeclare = new FunctionDeclaration(); | |
236 | + ArgumentsDeclare arg = null; | |
237 | + | |
238 | + Token retToken = null; | |
239 | + Token packageName = null; | |
240 | + Token funcName = null; | |
241 | + retToken = jj_consume_token(FUNCTION); | |
242 | + if (jj_2_2(2)) { | |
243 | + packageName = domPathElement(); | |
244 | + jj_consume_token(DOT); | |
245 | + } else { | |
246 | + ; | |
247 | + } | |
248 | + funcName = domPathElement(); | |
249 | + jj_consume_token(L_PARENTHESIS); | |
250 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
251 | + case DOLLAR: | |
252 | + case AT_MARK: | |
253 | + arg = argumentsDeclare(); | |
254 | + break; | |
255 | + default: | |
256 | + jj_la1[2] = jj_gen; | |
257 | + ; | |
258 | + } | |
259 | + jj_consume_token(R_PARENTHESIS); | |
260 | + jj_consume_token(L_BRACE); | |
261 | + sentences(funcDeclare); | |
262 | + jj_consume_token(R_BRACE); | |
263 | + funcDeclare.setLine(retToken.beginLine); | |
264 | + funcDeclare.setLinePosition(retToken.beginColumn); | |
265 | + | |
266 | + funcDeclare.setReturnType(retToken.image); | |
267 | + | |
268 | + if(packageName != null){ | |
269 | + funcDeclare.setPackageName(packageName.image); | |
270 | + } | |
271 | + | |
272 | + funcDeclare.setFuncName(funcName.image); | |
273 | + if(arg != null){ | |
274 | + funcDeclare.setArguments(arg); | |
275 | + } | |
276 | + | |
277 | + {if (true) return funcDeclare;} | |
278 | + throw new Error("Missing return statement in function"); | |
279 | + } | |
280 | + | |
281 | + final public ArgumentsDeclare argumentsDeclare() throws ParseException { | |
282 | + ArgumentsDeclare argDec = new ArgumentsDeclare(); | |
283 | + ArgumentDeclare dec = null; | |
284 | + Token prefix = null; | |
285 | + Token name = null; | |
286 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
287 | + case DOLLAR: | |
288 | + prefix = jj_consume_token(DOLLAR); | |
289 | + break; | |
290 | + case AT_MARK: | |
291 | + prefix = jj_consume_token(AT_MARK); | |
292 | + break; | |
293 | + default: | |
294 | + jj_la1[3] = jj_gen; | |
295 | + jj_consume_token(-1); | |
296 | + throw new ParseException(); | |
297 | + } | |
298 | + name = domPathElement(); | |
299 | + dec = new ArgumentDeclare(); | |
300 | + | |
301 | + dec.setPrefix(prefix.image); | |
302 | + dec.setName(name.image); | |
303 | + | |
304 | + argDec.addArgument(dec); | |
305 | + label_3: | |
306 | + while (true) { | |
307 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
308 | + case COMMA: | |
309 | + ; | |
310 | + break; | |
311 | + default: | |
312 | + jj_la1[4] = jj_gen; | |
313 | + break label_3; | |
314 | + } | |
315 | + jj_consume_token(COMMA); | |
316 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
317 | + case DOLLAR: | |
318 | + prefix = jj_consume_token(DOLLAR); | |
319 | + break; | |
320 | + case AT_MARK: | |
321 | + prefix = jj_consume_token(AT_MARK); | |
322 | + break; | |
323 | + default: | |
324 | + jj_la1[5] = jj_gen; | |
325 | + jj_consume_token(-1); | |
326 | + throw new ParseException(); | |
327 | + } | |
328 | + name = domPathElement(); | |
329 | + dec = new ArgumentDeclare(); | |
330 | + | |
331 | + dec.setPrefix(prefix.image); | |
332 | + dec.setName(name.image); | |
333 | + | |
334 | + argDec.addArgument(dec); | |
335 | + } | |
336 | + {if (true) return argDec;} | |
337 | + throw new Error("Missing return statement in function"); | |
338 | + } | |
339 | + | |
340 | + final public void sentences(IScriptBlock parent) throws ParseException { | |
341 | + IScriptSentence stnc; | |
342 | + label_4: | |
343 | + while (true) { | |
344 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
345 | + case PLUSPLUS: | |
346 | + case MINUSMINUS: | |
347 | + case DOLLAR: | |
348 | + case AT_MARK: | |
349 | + case SELECT: | |
350 | + case INSERT: | |
351 | + case UPDATE: | |
352 | + case DELETE: | |
353 | + case INTO: | |
354 | + case FROM: | |
355 | + case WHERE: | |
356 | + case OR: | |
357 | + case AND: | |
358 | + case LIKE: | |
359 | + case ESCAPE: | |
360 | + case LEFT: | |
361 | + case RIGHT: | |
362 | + case NATURAL: | |
363 | + case INNER: | |
364 | + case OUTER: | |
365 | + case FULL: | |
366 | + case JOIN: | |
367 | + case CROSS: | |
368 | + case SET: | |
369 | + case VALUES: | |
370 | + case IF: | |
371 | + case GROUP: | |
372 | + case BY: | |
373 | + case HAVING: | |
374 | + case ORDER: | |
375 | + case ASC: | |
376 | + case DESC: | |
377 | + case LIMIT: | |
378 | + case OFFSET: | |
379 | + case ON: | |
380 | + case SQL_NOT: | |
381 | + case AS: | |
382 | + case DISTINCT: | |
383 | + case IN: | |
384 | + case BETWEEN: | |
385 | + case IS: | |
386 | + case BEGIN: | |
387 | + case COMMIT: | |
388 | + case END: | |
389 | + case ROLLBACK: | |
390 | + case TRUE: | |
391 | + case FALSE: | |
392 | + case BOOL: | |
393 | + case NULL: | |
394 | + case RETURN: | |
395 | + case USE: | |
396 | + case WHILE: | |
397 | + case DO: | |
398 | + case FOR: | |
399 | + case BREAK: | |
400 | + case CONTINUE: | |
401 | + case IDENTIFIER: | |
402 | + case NUMERIC: | |
403 | + case DOUBLE: | |
404 | + case DQSTRLIT: | |
405 | + case SQSTRLIT: | |
406 | + ; | |
407 | + break; | |
408 | + default: | |
409 | + jj_la1[6] = jj_gen; | |
410 | + break label_4; | |
411 | + } | |
412 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
413 | + case PLUSPLUS: | |
414 | + case MINUSMINUS: | |
415 | + case DOLLAR: | |
416 | + case AT_MARK: | |
417 | + case SELECT: | |
418 | + case INSERT: | |
419 | + case UPDATE: | |
420 | + case DELETE: | |
421 | + case INTO: | |
422 | + case FROM: | |
423 | + case WHERE: | |
424 | + case OR: | |
425 | + case AND: | |
426 | + case LIKE: | |
427 | + case ESCAPE: | |
428 | + case LEFT: | |
429 | + case RIGHT: | |
430 | + case NATURAL: | |
431 | + case INNER: | |
432 | + case OUTER: | |
433 | + case FULL: | |
434 | + case JOIN: | |
435 | + case CROSS: | |
436 | + case SET: | |
437 | + case VALUES: | |
438 | + case GROUP: | |
439 | + case BY: | |
440 | + case HAVING: | |
441 | + case ORDER: | |
442 | + case ASC: | |
443 | + case DESC: | |
444 | + case LIMIT: | |
445 | + case OFFSET: | |
446 | + case ON: | |
447 | + case SQL_NOT: | |
448 | + case AS: | |
449 | + case DISTINCT: | |
450 | + case IN: | |
451 | + case BETWEEN: | |
452 | + case IS: | |
453 | + case BEGIN: | |
454 | + case COMMIT: | |
455 | + case END: | |
456 | + case ROLLBACK: | |
457 | + case TRUE: | |
458 | + case FALSE: | |
459 | + case BOOL: | |
460 | + case NULL: | |
461 | + case RETURN: | |
462 | + case USE: | |
463 | + case BREAK: | |
464 | + case CONTINUE: | |
465 | + case IDENTIFIER: | |
466 | + case NUMERIC: | |
467 | + case DOUBLE: | |
468 | + case DQSTRLIT: | |
469 | + case SQSTRLIT: | |
470 | + stnc = sentence(); | |
471 | + jj_consume_token(SEMI_COLON); | |
472 | + break; | |
473 | + case IF: | |
474 | + case WHILE: | |
475 | + case DO: | |
476 | + case FOR: | |
477 | + stnc = block(); | |
478 | + break; | |
479 | + default: | |
480 | + jj_la1[7] = jj_gen; | |
481 | + jj_consume_token(-1); | |
482 | + throw new ParseException(); | |
483 | + } | |
484 | + parent.addSentence(stnc); | |
485 | + } | |
486 | + } | |
487 | + | |
488 | + final public IScriptSentence sentence() throws ParseException { | |
489 | + IScriptSentence sentence; | |
490 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
491 | + case COMMIT: | |
492 | + case END: | |
493 | + sentence = commitSentence(); | |
494 | + break; | |
495 | + case BEGIN: | |
496 | + sentence = beginSentence(); | |
497 | + break; | |
498 | + case ROLLBACK: | |
499 | + sentence = rollbackSentence(); | |
500 | + break; | |
501 | + case SELECT: | |
502 | + sentence = select(); | |
503 | + break; | |
504 | + case UPDATE: | |
505 | + sentence = update(); | |
506 | + break; | |
507 | + case DELETE: | |
508 | + sentence = delete(); | |
509 | + break; | |
510 | + case INSERT: | |
511 | + sentence = insert(); | |
512 | + break; | |
513 | + default: | |
514 | + jj_la1[8] = jj_gen; | |
515 | + if (jj_2_3(3)) { | |
516 | + sentence = substituteSentence(); | |
517 | + } else if (jj_2_4(3)) { | |
518 | + sentence = functionCallSentence(); | |
519 | + } else { | |
520 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
521 | + case RETURN: | |
522 | + sentence = returnSentence(); | |
523 | + break; | |
524 | + case BREAK: | |
525 | + sentence = breakSentence(); | |
526 | + break; | |
527 | + case CONTINUE: | |
528 | + sentence = continueSentence(); | |
529 | + break; | |
530 | + case USE: | |
531 | + sentence = useSentence(); | |
532 | + break; | |
533 | + case PLUSPLUS: | |
534 | + case MINUSMINUS: | |
535 | + case DOLLAR: | |
536 | + case AT_MARK: | |
537 | + case INTO: | |
538 | + case FROM: | |
539 | + case WHERE: | |
540 | + case OR: | |
541 | + case AND: | |
542 | + case LIKE: | |
543 | + case ESCAPE: | |
544 | + case LEFT: | |
545 | + case RIGHT: | |
546 | + case NATURAL: | |
547 | + case INNER: | |
548 | + case OUTER: | |
549 | + case FULL: | |
550 | + case JOIN: | |
551 | + case CROSS: | |
552 | + case SET: | |
553 | + case VALUES: | |
554 | + case GROUP: | |
555 | + case BY: | |
556 | + case HAVING: | |
557 | + case ORDER: | |
558 | + case ASC: | |
559 | + case DESC: | |
560 | + case LIMIT: | |
561 | + case OFFSET: | |
562 | + case ON: | |
563 | + case SQL_NOT: | |
564 | + case AS: | |
565 | + case DISTINCT: | |
566 | + case IN: | |
567 | + case BETWEEN: | |
568 | + case IS: | |
569 | + case TRUE: | |
570 | + case FALSE: | |
571 | + case BOOL: | |
572 | + case NULL: | |
573 | + case IDENTIFIER: | |
574 | + case NUMERIC: | |
575 | + case DOUBLE: | |
576 | + case DQSTRLIT: | |
577 | + case SQSTRLIT: | |
578 | + sentence = plusPlusSentence(); | |
579 | + break; | |
580 | + default: | |
581 | + jj_la1[9] = jj_gen; | |
582 | + jj_consume_token(-1); | |
583 | + throw new ParseException(); | |
584 | + } | |
585 | + } | |
586 | + } | |
587 | + {if (true) return sentence;} | |
588 | + throw new Error("Missing return statement in function"); | |
589 | + } | |
590 | + | |
591 | + final public IScriptSentence block() throws ParseException { | |
592 | + IScriptSentence sentence = null; | |
593 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
594 | + case IF: | |
595 | + sentence = ifBlock(); | |
596 | + break; | |
597 | + case WHILE: | |
598 | + sentence = whileBlock(); | |
599 | + break; | |
600 | + case DO: | |
601 | + sentence = doWhileBlock(); | |
602 | + break; | |
603 | + case FOR: | |
604 | + sentence = forBlock(); | |
605 | + break; | |
606 | + default: | |
607 | + jj_la1[10] = jj_gen; | |
608 | + jj_consume_token(-1); | |
609 | + throw new ParseException(); | |
610 | + } | |
611 | + {if (true) return sentence;} | |
612 | + throw new Error("Missing return statement in function"); | |
613 | + } | |
614 | + | |
615 | + final public BeginSentence beginSentence() throws ParseException { | |
616 | + BeginSentence sentence = new BeginSentence(); | |
617 | + | |
618 | + Token t = null; | |
619 | + t = jj_consume_token(BEGIN); | |
620 | + sentence.setLine(t.beginLine); | |
621 | + sentence.setLinePosition(t.beginColumn); | |
622 | + | |
623 | + {if (true) return sentence;} | |
624 | + throw new Error("Missing return statement in function"); | |
625 | + } | |
626 | + | |
627 | + final public CommitSentence commitSentence() throws ParseException { | |
628 | + CommitSentence sentence = new CommitSentence(); | |
629 | + | |
630 | + Token t = null; | |
631 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
632 | + case COMMIT: | |
633 | + t = jj_consume_token(COMMIT); | |
634 | + break; | |
635 | + case END: | |
636 | + t = jj_consume_token(END); | |
637 | + break; | |
638 | + default: | |
639 | + jj_la1[11] = jj_gen; | |
640 | + jj_consume_token(-1); | |
641 | + throw new ParseException(); | |
642 | + } | |
643 | + sentence.setLine(t.beginLine); | |
644 | + sentence.setLinePosition(t.beginColumn); | |
645 | + | |
646 | + {if (true) return sentence;} | |
647 | + throw new Error("Missing return statement in function"); | |
648 | + } | |
649 | + | |
650 | + final public RollbackSentence rollbackSentence() throws ParseException { | |
651 | + RollbackSentence sentence = new RollbackSentence(); | |
652 | + | |
653 | + Token t = null; | |
654 | + t = jj_consume_token(ROLLBACK); | |
655 | + sentence.setLine(t.beginLine); | |
656 | + sentence.setLinePosition(t.beginColumn); | |
657 | + | |
658 | + {if (true) return sentence;} | |
659 | + throw new Error("Missing return statement in function"); | |
660 | + } | |
661 | + | |
662 | + final public SelectSentence select() throws ParseException { | |
663 | + SelectSentence sentence = new SelectSentence(); | |
664 | + SelectColumns columns = null; | |
665 | + IntoClause into = null; | |
666 | + FromClause from = null; | |
667 | + WhereClause where = null; | |
668 | + GroupByClause grp = null; | |
669 | + OrderByClause ord = null; | |
670 | + LimitOffsetClause limitoffset = null; | |
671 | + ForUpdateClause forUpdate = null; | |
672 | + AdjustWhere adjustWhere = null; | |
673 | + | |
674 | + Token distinctToken = null; | |
675 | + | |
676 | + Token t = null; | |
677 | + t = jj_consume_token(SELECT); | |
678 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
679 | + case DISTINCT: | |
680 | + distinctToken = jj_consume_token(DISTINCT); | |
681 | + break; | |
682 | + default: | |
683 | + jj_la1[12] = jj_gen; | |
684 | + ; | |
685 | + } | |
686 | + columns = selectColumns(); | |
687 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
688 | + case INTO: | |
689 | + into = into(); | |
690 | + break; | |
691 | + default: | |
692 | + jj_la1[13] = jj_gen; | |
693 | + ; | |
694 | + } | |
695 | + from = from(); | |
696 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
697 | + case WHERE: | |
698 | + where = where(); | |
699 | + break; | |
700 | + default: | |
701 | + jj_la1[14] = jj_gen; | |
702 | + ; | |
703 | + } | |
704 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
705 | + case GROUP: | |
706 | + grp = groupby(); | |
707 | + break; | |
708 | + default: | |
709 | + jj_la1[15] = jj_gen; | |
710 | + ; | |
711 | + } | |
712 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
713 | + case ORDER: | |
714 | + ord = orderby(); | |
715 | + break; | |
716 | + default: | |
717 | + jj_la1[16] = jj_gen; | |
718 | + ; | |
719 | + } | |
720 | + limitoffset = limit(); | |
721 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
722 | + case FOR: | |
723 | + forUpdate = forUpdate(); | |
724 | + break; | |
725 | + default: | |
726 | + jj_la1[17] = jj_gen; | |
727 | + ; | |
728 | + } | |
729 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
730 | + case ADJUST_WHERE: | |
731 | + adjustWhere = adjustWhere(); | |
732 | + break; | |
733 | + default: | |
734 | + jj_la1[18] = jj_gen; | |
735 | + ; | |
736 | + } | |
737 | + sentence.setColumns(columns); | |
738 | + sentence.setInto(into); | |
739 | + sentence.setFrom(from); | |
740 | + sentence.setWhere(where); | |
741 | + sentence.setGroupBy(grp); | |
742 | + sentence.setOrderby(ord); | |
743 | + sentence.setLimitOffset(limitoffset); | |
744 | + sentence.setForUpdate(forUpdate); | |
745 | + sentence.setAdjustWhere(adjustWhere); | |
746 | + | |
747 | + if(distinctToken != null){ | |
748 | + sentence.setDistinct(distinctToken.image); | |
749 | + } | |
750 | + | |
751 | + sentence.setLine(t.beginLine); | |
752 | + sentence.setLinePosition(t.beginColumn); | |
753 | + | |
754 | + {if (true) return sentence;} | |
755 | + throw new Error("Missing return statement in function"); | |
756 | + } | |
757 | + | |
758 | + final public ForUpdateClause forUpdate() throws ParseException { | |
759 | + ForUpdateClause forUpdate = new ForUpdateClause(); | |
760 | + Token type = null; | |
761 | + Token nowait = null; | |
762 | + TablesList tables = null; | |
763 | + jj_consume_token(FOR); | |
764 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
765 | + case UPDATE: | |
766 | + type = jj_consume_token(UPDATE); | |
767 | + break; | |
768 | + case SHARE: | |
769 | + type = jj_consume_token(SHARE); | |
770 | + break; | |
771 | + default: | |
772 | + jj_la1[19] = jj_gen; | |
773 | + jj_consume_token(-1); | |
774 | + throw new ParseException(); | |
775 | + } | |
776 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
777 | + case OF: | |
778 | + jj_consume_token(OF); | |
779 | + tables = tables(); | |
780 | + break; | |
781 | + default: | |
782 | + jj_la1[20] = jj_gen; | |
783 | + ; | |
784 | + } | |
785 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
786 | + case NOWAIT: | |
787 | + nowait = jj_consume_token(NOWAIT); | |
788 | + break; | |
789 | + default: | |
790 | + jj_la1[21] = jj_gen; | |
791 | + ; | |
792 | + } | |
793 | + forUpdate.setType(type.image); | |
794 | + forUpdate.setWait(nowait.image); | |
795 | + | |
796 | + forUpdate.setTables(tables); | |
797 | + | |
798 | + {if (true) return forUpdate;} | |
799 | + throw new Error("Missing return statement in function"); | |
800 | + } | |
801 | + | |
802 | + final public LimitOffsetClause limit() throws ParseException { | |
803 | + LimitOffsetClause limitoffset = new LimitOffsetClause(); | |
804 | + ISQLStatement limit = null; | |
805 | + ISQLStatement offset = null; | |
806 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
807 | + case LIMIT: | |
808 | + jj_consume_token(LIMIT); | |
809 | + limit = variable(); | |
810 | + break; | |
811 | + default: | |
812 | + jj_la1[22] = jj_gen; | |
813 | + ; | |
814 | + } | |
815 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
816 | + case OFFSET: | |
817 | + jj_consume_token(OFFSET); | |
818 | + offset = variable(); | |
819 | + break; | |
820 | + default: | |
821 | + jj_la1[23] = jj_gen; | |
822 | + ; | |
823 | + } | |
824 | + if(limit != null){ | |
825 | + limitoffset.setLimit(limit); | |
826 | + } | |
827 | + if(offset != null){ | |
828 | + limitoffset.setOffset(offset); | |
829 | + } | |
830 | + | |
831 | + {if (true) return limitoffset;} | |
832 | + throw new Error("Missing return statement in function"); | |
833 | + } | |
834 | + | |
835 | + final public OrderByClause orderby() throws ParseException { | |
836 | + OrderByClause ord = new OrderByClause(); | |
837 | + ColumnList colList = null; | |
838 | + jj_consume_token(ORDER); | |
839 | + jj_consume_token(BY); | |
840 | + colList = columnList(); | |
841 | + ord.setColumnList(colList); | |
842 | + | |
843 | + {if (true) return ord;} | |
844 | + throw new Error("Missing return statement in function"); | |
845 | + } | |
846 | + | |
847 | + final public ColumnList columnList() throws ParseException { | |
848 | + ColumnList colList = new ColumnList(); | |
849 | + ColumnIdentifier col; | |
850 | + Token t = null; | |
851 | + col = columnIdentifier(); | |
852 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
853 | + case ASC: | |
854 | + case DESC: | |
855 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
856 | + case ASC: | |
857 | + t = jj_consume_token(ASC); | |
858 | + break; | |
859 | + case DESC: | |
860 | + t = jj_consume_token(DESC); | |
861 | + break; | |
862 | + default: | |
863 | + jj_la1[24] = jj_gen; | |
864 | + jj_consume_token(-1); | |
865 | + throw new ParseException(); | |
866 | + } | |
867 | + break; | |
868 | + default: | |
869 | + jj_la1[25] = jj_gen; | |
870 | + ; | |
871 | + } | |
872 | + colList = new ColumnList(); | |
873 | + | |
874 | + if(t != null){ | |
875 | + colList.addColumns(col, t.image); | |
876 | + } | |
877 | + else{ | |
878 | + colList.addColumns(col); | |
879 | + } | |
880 | + label_5: | |
881 | + while (true) { | |
882 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
883 | + case COMMA: | |
884 | + ; | |
885 | + break; | |
886 | + default: | |
887 | + jj_la1[26] = jj_gen; | |
888 | + break label_5; | |
889 | + } | |
890 | + jj_consume_token(COMMA); | |
891 | + col = columnIdentifier(); | |
892 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
893 | + case ASC: | |
894 | + case DESC: | |
895 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
896 | + case ASC: | |
897 | + t = jj_consume_token(ASC); | |
898 | + break; | |
899 | + case DESC: | |
900 | + t = jj_consume_token(DESC); | |
901 | + break; | |
902 | + default: | |
903 | + jj_la1[27] = jj_gen; | |
904 | + jj_consume_token(-1); | |
905 | + throw new ParseException(); | |
906 | + } | |
907 | + break; | |
908 | + default: | |
909 | + jj_la1[28] = jj_gen; | |
910 | + ; | |
911 | + } | |
912 | + if(t != null){ | |
913 | + colList.addColumns(col, t.image); | |
914 | + } | |
915 | + else{ | |
916 | + colList.addColumns(col); | |
917 | + } | |
918 | + } | |
919 | + {if (true) return colList;} | |
920 | + throw new Error("Missing return statement in function"); | |
921 | + } | |
922 | + | |
923 | + final public GroupByClause groupby() throws ParseException { | |
924 | + GroupByClause grp = new GroupByClause(); | |
925 | + ColumnList colList = null; | |
926 | + HavingClause having = null; | |
927 | + jj_consume_token(GROUP); | |
928 | + jj_consume_token(BY); | |
929 | + colList = columnList(); | |
930 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
931 | + case HAVING: | |
932 | + having = having(); | |
933 | + break; | |
934 | + default: | |
935 | + jj_la1[29] = jj_gen; | |
936 | + ; | |
937 | + } | |
938 | + grp.setColList(colList); | |
939 | + grp.setHaving(having); | |
940 | + | |
941 | + {if (true) return grp;} | |
942 | + throw new Error("Missing return statement in function"); | |
943 | + } | |
944 | + | |
945 | + final public HavingClause having() throws ParseException { | |
946 | + HavingClause having = new HavingClause(); | |
947 | + ISQLExpression exp = null; | |
948 | + jj_consume_token(HAVING); | |
949 | + exp = orExp(); | |
950 | + having.setExpression(exp); | |
951 | + {if (true) return having;} | |
952 | + throw new Error("Missing return statement in function"); | |
953 | + } | |
954 | + | |
955 | + final public SelectColumns selectColumns() throws ParseException { | |
956 | + SelectColumns cols = new SelectColumns(); | |
957 | + ColumnList colList; | |
958 | + ISQLStatement col; | |
959 | + SelectColumnElement colElement = null; | |
960 | + Identifier asId = null; | |
961 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
962 | + case ASTERISK: | |
963 | + jj_consume_token(ASTERISK); | |
964 | + {if (true) return cols;} | |
965 | + break; | |
966 | + case L_PARENTHESIS: | |
967 | + case IDENTIFIER: | |
968 | + if (jj_2_5(2)) { | |
969 | + col = sqlFunctionCall(); | |
970 | + } else { | |
971 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
972 | + case IDENTIFIER: | |
973 | + col = columnIdentifier(); | |
974 | + break; | |
975 | + case L_PARENTHESIS: | |
976 | + col = sqlSubQuery(); | |
977 | + break; | |
978 | + default: | |
979 | + jj_la1[30] = jj_gen; | |
980 | + jj_consume_token(-1); | |
981 | + throw new ParseException(); | |
982 | + } | |
983 | + } | |
984 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
985 | + case AS: | |
986 | + case IDENTIFIER: | |
987 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
988 | + case AS: | |
989 | + jj_consume_token(AS); | |
990 | + break; | |
991 | + default: | |
992 | + jj_la1[31] = jj_gen; | |
993 | + ; | |
994 | + } | |
995 | + asId = identifier(); | |
996 | + break; | |
997 | + default: | |
998 | + jj_la1[32] = jj_gen; | |
999 | + ; | |
1000 | + } | |
1001 | + colList = new ColumnList(); | |
1002 | + | |
1003 | + colElement = new SelectColumnElement(); | |
1004 | + colElement.setColumnName(col); | |
1005 | + | |
1006 | + if(asId != null){ | |
1007 | + colElement.setAsName(asId); | |
1008 | + asId = null; | |
1009 | + } | |
1010 | + | |
1011 | + colList.addColumns(colElement); | |
1012 | + label_6: | |
1013 | + while (true) { | |
1014 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1015 | + case COMMA: | |
1016 | + ; | |
1017 | + break; | |
1018 | + default: | |
1019 | + jj_la1[33] = jj_gen; | |
1020 | + break label_6; | |
1021 | + } | |
1022 | + jj_consume_token(COMMA); | |
1023 | + if (jj_2_6(2)) { | |
1024 | + col = sqlFunctionCall(); | |
1025 | + } else { | |
1026 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1027 | + case IDENTIFIER: | |
1028 | + col = columnIdentifier(); | |
1029 | + break; | |
1030 | + case L_PARENTHESIS: | |
1031 | + col = sqlSubQuery(); | |
1032 | + break; | |
1033 | + default: | |
1034 | + jj_la1[34] = jj_gen; | |
1035 | + jj_consume_token(-1); | |
1036 | + throw new ParseException(); | |
1037 | + } | |
1038 | + } | |
1039 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1040 | + case AS: | |
1041 | + case IDENTIFIER: | |
1042 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1043 | + case AS: | |
1044 | + jj_consume_token(AS); | |
1045 | + break; | |
1046 | + default: | |
1047 | + jj_la1[35] = jj_gen; | |
1048 | + ; | |
1049 | + } | |
1050 | + asId = identifier(); | |
1051 | + break; | |
1052 | + default: | |
1053 | + jj_la1[36] = jj_gen; | |
1054 | + ; | |
1055 | + } | |
1056 | + colElement = new SelectColumnElement(); | |
1057 | + colElement.setColumnName(col); | |
1058 | + | |
1059 | + if(asId != null){ | |
1060 | + colElement.setAsName(asId); | |
1061 | + asId = null; | |
1062 | + } | |
1063 | + | |
1064 | + colList.addColumns(colElement); | |
1065 | + } | |
1066 | + cols.setColumns(colList); | |
1067 | + | |
1068 | + {if (true) return cols;} | |
1069 | + break; | |
1070 | + default: | |
1071 | + jj_la1[37] = jj_gen; | |
1072 | + jj_consume_token(-1); | |
1073 | + throw new ParseException(); | |
1074 | + } | |
1075 | + throw new Error("Missing return statement in function"); | |
1076 | + } | |
1077 | + | |
1078 | + final public IntoClause into() throws ParseException { | |
1079 | + IntoClause into = new IntoClause(); | |
1080 | + Identifier val = new Identifier(); | |
1081 | + Token t = null; | |
1082 | + jj_consume_token(INTO); | |
1083 | + t = jj_consume_token(IDENTIFIER); | |
1084 | + val.setName(t.image); | |
1085 | + into.setVariable(val); | |
1086 | + | |
1087 | + {if (true) return into;} | |
1088 | + throw new Error("Missing return statement in function"); | |
1089 | + } | |
1090 | + | |
1091 | + final public FromClause from() throws ParseException { | |
1092 | + FromClause from = new FromClause(); | |
1093 | + TablesList tableList = null; | |
1094 | + jj_consume_token(FROM); | |
1095 | + tableList = tables(); | |
1096 | + from.setTableList(tableList); | |
1097 | + {if (true) return from;} | |
1098 | + throw new Error("Missing return statement in function"); | |
1099 | + } | |
1100 | + | |
1101 | + final public TablesList tables() throws ParseException { | |
1102 | + TablesList tblList = new TablesList(); | |
1103 | + ISQLScriptObject tbl = null; | |
1104 | + tbl = select_table(); | |
1105 | + tblList.addTable(tbl); | |
1106 | + label_7: | |
1107 | + while (true) { | |
1108 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1109 | + case COMMA: | |
1110 | + ; | |
1111 | + break; | |
1112 | + default: | |
1113 | + jj_la1[38] = jj_gen; | |
1114 | + break label_7; | |
1115 | + } | |
1116 | + jj_consume_token(COMMA); | |
1117 | + tbl = select_table(); | |
1118 | + tblList.addTable(tbl); | |
1119 | + } | |
1120 | + {if (true) return tblList;} | |
1121 | + throw new Error("Missing return statement in function"); | |
1122 | + } | |
1123 | + | |
1124 | + final public TableIdentifier table() throws ParseException { | |
1125 | + TableIdentifier tbl = new TableIdentifier(); | |
1126 | + Token t1 = null; | |
1127 | + Token t2 = null; | |
1128 | + Token t3 = null; | |
1129 | + t1 = jj_consume_token(IDENTIFIER); | |
1130 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1131 | + case DOT: | |
1132 | + jj_consume_token(DOT); | |
1133 | + t2 = jj_consume_token(IDENTIFIER); | |
1134 | + break; | |
1135 | + default: | |
1136 | + jj_la1[39] = jj_gen; | |
1137 | + ; | |
1138 | + } | |
1139 | + if (jj_2_7(2)) { | |
1140 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1141 | + case AS: | |
1142 | + jj_consume_token(AS); | |
1143 | + break; | |
1144 | + default: | |
1145 | + jj_la1[40] = jj_gen; | |
1146 | + ; | |
1147 | + } | |
1148 | + t3 = jj_consume_token(IDENTIFIER); | |
1149 | + } else { | |
1150 | + ; | |
1151 | + } | |
1152 | + if(t2 == null){ | |
1153 | + tbl.setTableName(t1.image); | |
1154 | + }else{ | |
1155 | + tbl.setDatabaseName(t1.image); | |
1156 | + tbl.setTableName(t2 != null ? t2.image : null); | |
1157 | + } | |
1158 | + | |
1159 | + if(t3 != null){ | |
1160 | + tbl.setAsName(t3.image); | |
1161 | + } | |
1162 | + | |
1163 | + | |
1164 | + {if (true) return tbl;} | |
1165 | + throw new Error("Missing return statement in function"); | |
1166 | + } | |
1167 | + | |
1168 | + final public ISQLScriptObject select_table() throws ParseException { | |
1169 | + ISQLScriptObject j1 = null; | |
1170 | + j1 = join(); | |
1171 | + {if (true) return j1;} | |
1172 | + throw new Error("Missing return statement in function"); | |
1173 | + } | |
1174 | + | |
1175 | + final public ISQLScriptObject join() throws ParseException { | |
1176 | + JoinClause join = null; | |
1177 | + ISQLScriptObject left = null; | |
1178 | + ISQLScriptObject right = null; | |
1179 | + JoinCondition cnd = null; | |
1180 | + left = joinTarget(); | |
1181 | + | |
1182 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1183 | + case LEFT: | |
1184 | + case RIGHT: | |
1185 | + case NATURAL: | |
1186 | + case INNER: | |
1187 | + case JOIN: | |
1188 | + case CROSS: | |
1189 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1190 | + case JOIN: | |
1191 | + jj_consume_token(JOIN); | |
1192 | + right = joinTarget(); | |
1193 | + cnd = joinCondition(); | |
1194 | + join = new JoinClause(); | |
1195 | + join.setJoinType(JoinClause.DEFAULT); | |
1196 | + join.setLeft(left); | |
1197 | + join.setRight(right); | |
1198 | + join.setCondition(cnd); | |
1199 | + break; | |
1200 | + case INNER: | |
1201 | + jj_consume_token(INNER); | |
1202 | + jj_consume_token(JOIN); | |
1203 | + right = joinTarget(); | |
1204 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1205 | + case ON: | |
1206 | + cnd = joinCondition(); | |
1207 | + break; | |
1208 | + default: | |
1209 | + jj_la1[41] = jj_gen; | |
1210 | + ; | |
1211 | + } | |
1212 | + join = new JoinClause(); | |
1213 | + join.setJoinType(JoinClause.INNER_JOIN); | |
1214 | + join.setLeft(left); | |
1215 | + join.setRight(right); | |
1216 | + join.setCondition(cnd); | |
1217 | + break; | |
1218 | + case LEFT: | |
1219 | + jj_consume_token(LEFT); | |
1220 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1221 | + case OUTER: | |
1222 | + jj_consume_token(OUTER); | |
1223 | + break; | |
1224 | + default: | |
1225 | + jj_la1[42] = jj_gen; | |
1226 | + ; | |
1227 | + } | |
1228 | + jj_consume_token(JOIN); | |
1229 | + right = joinTarget(); | |
1230 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1231 | + case ON: | |
1232 | + cnd = joinCondition(); | |
1233 | + break; | |
1234 | + default: | |
1235 | + jj_la1[43] = jj_gen; | |
1236 | + ; | |
1237 | + } | |
1238 | + join = new JoinClause(); | |
1239 | + join.setJoinType(JoinClause.LEFT_JOIN); | |
1240 | + join.setLeft(left); | |
1241 | + join.setRight(right); | |
1242 | + join.setCondition(cnd); | |
1243 | + break; | |
1244 | + case RIGHT: | |
1245 | + jj_consume_token(RIGHT); | |
1246 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1247 | + case OUTER: | |
1248 | + jj_consume_token(OUTER); | |
1249 | + break; | |
1250 | + default: | |
1251 | + jj_la1[44] = jj_gen; | |
1252 | + ; | |
1253 | + } | |
1254 | + jj_consume_token(JOIN); | |
1255 | + right = joinTarget(); | |
1256 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1257 | + case ON: | |
1258 | + cnd = joinCondition(); | |
1259 | + break; | |
1260 | + default: | |
1261 | + jj_la1[45] = jj_gen; | |
1262 | + ; | |
1263 | + } | |
1264 | + join = new JoinClause(); | |
1265 | + join.setJoinType(JoinClause.RIGHT_JOIN); | |
1266 | + join.setLeft(left); | |
1267 | + join.setRight(right); | |
1268 | + join.setCondition(cnd); | |
1269 | + break; | |
1270 | + case NATURAL: | |
1271 | + jj_consume_token(NATURAL); | |
1272 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1273 | + case LEFT: | |
1274 | + case RIGHT: | |
1275 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1276 | + case RIGHT: | |
1277 | + jj_consume_token(RIGHT); | |
1278 | + break; | |
1279 | + case LEFT: | |
1280 | + jj_consume_token(LEFT); | |
1281 | + break; | |
1282 | + default: | |
1283 | + jj_la1[46] = jj_gen; | |
1284 | + jj_consume_token(-1); | |
1285 | + throw new ParseException(); | |
1286 | + } | |
1287 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1288 | + case OUTER: | |
1289 | + jj_consume_token(OUTER); | |
1290 | + break; | |
1291 | + default: | |
1292 | + jj_la1[47] = jj_gen; | |
1293 | + ; | |
1294 | + } | |
1295 | + break; | |
1296 | + default: | |
1297 | + jj_la1[48] = jj_gen; | |
1298 | + ; | |
1299 | + } | |
1300 | + jj_consume_token(JOIN); | |
1301 | + right = joinTarget(); | |
1302 | + join = new JoinClause(); | |
1303 | + join.setJoinType(JoinClause.NATURAL_JOIN); | |
1304 | + join.setLeft(left); | |
1305 | + join.setRight(right); | |
1306 | + break; | |
1307 | + case CROSS: | |
1308 | + jj_consume_token(CROSS); | |
1309 | + jj_consume_token(JOIN); | |
1310 | + right = joinTarget(); | |
1311 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1312 | + case ON: | |
1313 | + cnd = joinCondition(); | |
1314 | + break; | |
1315 | + default: | |
1316 | + jj_la1[49] = jj_gen; | |
1317 | + ; | |
1318 | + } | |
1319 | + join = new JoinClause(); | |
1320 | + join.setJoinType(JoinClause.CROSS_JOIN); | |
1321 | + join.setLeft(left); | |
1322 | + join.setRight(right); | |
1323 | + join.setCondition(cnd); | |
1324 | + break; | |
1325 | + default: | |
1326 | + jj_la1[50] = jj_gen; | |
1327 | + jj_consume_token(-1); | |
1328 | + throw new ParseException(); | |
1329 | + } | |
1330 | + break; | |
1331 | + default: | |
1332 | + jj_la1[51] = jj_gen; | |
1333 | + ; | |
1334 | + } | |
1335 | + if(join == null){ | |
1336 | + {if (true) return left;} | |
1337 | + } | |
1338 | + {if (true) return join;} | |
1339 | + throw new Error("Missing return statement in function"); | |
1340 | + } | |
1341 | + | |
1342 | + final public ISQLScriptObject joinTarget() throws ParseException { | |
1343 | + ISQLScriptObject target = null; | |
1344 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1345 | + case IDENTIFIER: | |
1346 | + target = table(); | |
1347 | + break; | |
1348 | + case L_PARENTHESIS: | |
1349 | + jj_consume_token(L_PARENTHESIS); | |
1350 | + target = join(); | |
1351 | + jj_consume_token(R_PARENTHESIS); | |
1352 | + break; | |
1353 | + default: | |
1354 | + jj_la1[52] = jj_gen; | |
1355 | + jj_consume_token(-1); | |
1356 | + throw new ParseException(); | |
1357 | + } | |
1358 | + {if (true) return target;} | |
1359 | + throw new Error("Missing return statement in function"); | |
1360 | + } | |
1361 | + | |
1362 | + final public JoinCondition joinCondition() throws ParseException { | |
1363 | + JoinCondition cnd = new JoinCondition(); | |
1364 | + ISQLExpression exp = null; | |
1365 | + jj_consume_token(ON); | |
1366 | + exp = orExp(); | |
1367 | + cnd.setExpression(exp); | |
1368 | + {if (true) return cnd;} | |
1369 | + throw new Error("Missing return statement in function"); | |
1370 | + } | |
1371 | + | |
1372 | + final public WhereClause where() throws ParseException { | |
1373 | + WhereClause where = new WhereClause(); | |
1374 | + ISQLExpression exp = null; | |
1375 | + jj_consume_token(WHERE); | |
1376 | + exp = orExp(); | |
1377 | + where.setExpression(exp); | |
1378 | + | |
1379 | + {if (true) return where;} | |
1380 | + throw new Error("Missing return statement in function"); | |
1381 | + } | |
1382 | + | |
1383 | + final public ISQLExpression orExp() throws ParseException { | |
1384 | + ISQLExpression fexp = null; | |
1385 | + ISQLExpression exp = null; | |
1386 | + OrExpression or = null; | |
1387 | + fexp = andExp(); | |
1388 | + label_8: | |
1389 | + while (true) { | |
1390 | + if (jj_2_8(2)) { | |
1391 | + ; | |
1392 | + } else { | |
1393 | + break label_8; | |
1394 | + } | |
1395 | + jj_consume_token(OR); | |
1396 | + exp = andExp(); | |
1397 | + if(or == null){ | |
1398 | + or = new OrExpression(); | |
1399 | + or.addExpressions(fexp); | |
1400 | + } | |
1401 | + | |
1402 | + or.addExpressions(exp); | |
1403 | + } | |
1404 | + if(or != null){ | |
1405 | + {if (true) return or;} | |
1406 | + } | |
1407 | + {if (true) return fexp;} | |
1408 | + throw new Error("Missing return statement in function"); | |
1409 | + } | |
1410 | + | |
1411 | + final public ISQLExpression andExp() throws ParseException { | |
1412 | + ISQLExpression fexp = null; | |
1413 | + ISQLExpression exp = null; | |
1414 | + AndExpression and = null; | |
1415 | + fexp = parenthesisExp(); | |
1416 | + label_9: | |
1417 | + while (true) { | |
1418 | + if (jj_2_9(2)) { | |
1419 | + ; | |
1420 | + } else { | |
1421 | + break label_9; | |
1422 | + } | |
1423 | + jj_consume_token(AND); | |
1424 | + exp = parenthesisExp(); | |
1425 | + if(and == null){ | |
1426 | + and = new AndExpression(); | |
1427 | + and.addExpressions(fexp); | |
1428 | + } | |
1429 | + | |
1430 | + and.addExpressions(exp); | |
1431 | + } | |
1432 | + if(and != null){ | |
1433 | + {if (true) return and;} | |
1434 | + } | |
1435 | + {if (true) return fexp;} | |
1436 | + throw new Error("Missing return statement in function"); | |
1437 | + } | |
1438 | + | |
1439 | + final public ISQLExpression parenthesisExp() throws ParseException { | |
1440 | + ISQLExpression exp = null; | |
1441 | + if (jj_2_10(2)) { | |
1442 | + jj_consume_token(L_PARENTHESIS); | |
1443 | + exp = orExp(); | |
1444 | + jj_consume_token(R_PARENTHESIS); | |
1445 | + ParenthesisExpression pexp = new ParenthesisExpression(); | |
1446 | + pexp.addExpressions(exp); | |
1447 | + | |
1448 | + {if (true) return pexp;} | |
1449 | + } else { | |
1450 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1451 | + case ASTERISK: | |
1452 | + case L_PARENTHESIS: | |
1453 | + case DOLLAR: | |
1454 | + case AT_MARK: | |
1455 | + case SQL_NOT: | |
1456 | + case IDENTIFIER: | |
1457 | + case NUMERIC: | |
1458 | + case DQSTRLIT: | |
1459 | + case SQSTRLIT: | |
1460 | + exp = sqlNotExpression(); | |
1461 | + {if (true) return exp;} | |
1462 | + break; | |
1463 | + default: | |
1464 | + jj_la1[53] = jj_gen; | |
1465 | + jj_consume_token(-1); | |
1466 | + throw new ParseException(); | |
1467 | + } | |
1468 | + } | |
1469 | + throw new Error("Missing return statement in function"); | |
1470 | + } | |
1471 | + | |
1472 | + final public ISQLExpression sqlNotExpression() throws ParseException { | |
1473 | + SQLNotExpression sqlNotExp = null; | |
1474 | + ISQLExpression exp = null; | |
1475 | + if (jj_2_11(2)) { | |
1476 | + exp = twoClauseExpression(); | |
1477 | + {if (true) return exp;} | |
1478 | + } else { | |
1479 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1480 | + case SQL_NOT: | |
1481 | + jj_consume_token(SQL_NOT); | |
1482 | + exp = orExp(); | |
1483 | + sqlNotExp = new SQLNotExpression(); | |
1484 | + sqlNotExp.addExpressions(exp); | |
1485 | + | |
1486 | + {if (true) return sqlNotExp;} | |
1487 | + break; | |
1488 | + default: | |
1489 | + jj_la1[54] = jj_gen; | |
1490 | + if (jj_2_12(3)) { | |
1491 | + exp = betweenClauseExpression(); | |
1492 | + {if (true) return exp;} | |
1493 | + } else if (jj_2_13(3)) { | |
1494 | + exp = inClauseExpression(); | |
1495 | + {if (true) return exp;} | |
1496 | + } else { | |
1497 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1498 | + case ASTERISK: | |
1499 | + case L_PARENTHESIS: | |
1500 | + case DOLLAR: | |
1501 | + case AT_MARK: | |
1502 | + case IDENTIFIER: | |
1503 | + case NUMERIC: | |
1504 | + case DQSTRLIT: | |
1505 | + case SQSTRLIT: | |
1506 | + exp = isNullExpression(); | |
1507 | + {if (true) return exp;} | |
1508 | + break; | |
1509 | + default: | |
1510 | + jj_la1[55] = jj_gen; | |
1511 | + jj_consume_token(-1); | |
1512 | + throw new ParseException(); | |
1513 | + } | |
1514 | + } | |
1515 | + } | |
1516 | + } | |
1517 | + throw new Error("Missing return statement in function"); | |
1518 | + } | |
1519 | + | |
1520 | + final public ISQLExpression isNullExpression() throws ParseException { | |
1521 | + IsNullClauseExpression exp = new IsNullClauseExpression(); | |
1522 | + ISQLStatement top = null; | |
1523 | + Token t = null; | |
1524 | + top = sqlStatement(); | |
1525 | + jj_consume_token(IS); | |
1526 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1527 | + case SQL_NOT: | |
1528 | + t = jj_consume_token(SQL_NOT); | |
1529 | + break; | |
1530 | + default: | |
1531 | + jj_la1[56] = jj_gen; | |
1532 | + ; | |
1533 | + } | |
1534 | + jj_consume_token(NULL); | |
1535 | + if(t != null){ | |
1536 | + exp.setNot(true); | |
1537 | + } | |
1538 | + | |
1539 | + exp.setStmt(top); | |
1540 | + | |
1541 | + {if (true) return exp;} | |
1542 | + throw new Error("Missing return statement in function"); | |
1543 | + } | |
1544 | + | |
1545 | + final public ISQLExpression inClauseExpression() throws ParseException { | |
1546 | + InClauseExpression inClause = new InClauseExpression(); | |
1547 | + ISQLStatement top = null; | |
1548 | + | |
1549 | + Object inElement = null; | |
1550 | + top = sqlStatement(); | |
1551 | + jj_consume_token(IN); | |
1552 | + inElement = inElement(); | |
1553 | + inClause.setTop(top); | |
1554 | + | |
1555 | + if(inElement instanceof VariableList){ | |
1556 | + inClause.setValList((VariableList)inElement); | |
1557 | + } | |
1558 | + else if(inElement instanceof SubQueryStatement){ | |
1559 | + inClause.setSubQuery((SubQueryStatement)inElement); | |
1560 | + } | |
1561 | + | |
1562 | + {if (true) return inClause;} | |
1563 | + throw new Error("Missing return statement in function"); | |
1564 | + } | |
1565 | + | |
1566 | + final public Object inElement() throws ParseException { | |
1567 | + SubQueryStatement subQuery = null; | |
1568 | + SelectSentence selectSentence = null; | |
1569 | + | |
1570 | + VariableList vals = new VariableList(); | |
1571 | + ISQLStatement val = null; | |
1572 | + jj_consume_token(L_PARENTHESIS); | |
1573 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1574 | + case L_PARENTHESIS: | |
1575 | + case DOLLAR: | |
1576 | + case AT_MARK: | |
1577 | + case IDENTIFIER: | |
1578 | + case NUMERIC: | |
1579 | + case DQSTRLIT: | |
1580 | + case SQSTRLIT: | |
1581 | + val = variable(); | |
1582 | + vals.addValues(val); | |
1583 | + label_10: | |
1584 | + while (true) { | |
1585 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1586 | + case COMMA: | |
1587 | + ; | |
1588 | + break; | |
1589 | + default: | |
1590 | + jj_la1[57] = jj_gen; | |
1591 | + break label_10; | |
1592 | + } | |
1593 | + jj_consume_token(COMMA); | |
1594 | + val = variable(); | |
1595 | + vals.addValues(val); | |
1596 | + } | |
1597 | + break; | |
1598 | + case SELECT: | |
1599 | + selectSentence = select(); | |
1600 | + break; | |
1601 | + default: | |
1602 | + jj_la1[58] = jj_gen; | |
1603 | + jj_consume_token(-1); | |
1604 | + throw new ParseException(); | |
1605 | + } | |
1606 | + jj_consume_token(R_PARENTHESIS); | |
1607 | + if(selectSentence != null){ | |
1608 | + subQuery = new SubQueryStatement(); | |
1609 | + subQuery.setSelectSentence(selectSentence); | |
1610 | + | |
1611 | + {if (true) return subQuery;} | |
1612 | + } | |
1613 | + | |
1614 | + {if (true) return vals;} | |
1615 | + throw new Error("Missing return statement in function"); | |
1616 | + } | |
1617 | + | |
1618 | + final public ISQLExpression betweenClauseExpression() throws ParseException { | |
1619 | + BetweenClauseExpression betweenClause = new BetweenClauseExpression(); | |
1620 | + ISQLStatement top = null; | |
1621 | + ISQLStatement left = null; | |
1622 | + ISQLStatement right = null; | |
1623 | + top = sqlStatement(); | |
1624 | + jj_consume_token(BETWEEN); | |
1625 | + left = sqlStatement(); | |
1626 | + jj_consume_token(AND); | |
1627 | + right = sqlStatement(); | |
1628 | + betweenClause.setTop(top); | |
1629 | + betweenClause.setLeft(left); | |
1630 | + betweenClause.setRight(right); | |
1631 | + | |
1632 | + {if (true) return betweenClause;} | |
1633 | + throw new Error("Missing return statement in function"); | |
1634 | + } | |
1635 | + | |
1636 | + final public ISQLExpression twoClauseExpression() throws ParseException { | |
1637 | + TwoClauseExpression exp = null; | |
1638 | + LikeExpression likeExp = null; | |
1639 | + ISQLStatement left = null; | |
1640 | + ISQLStatement right = null; | |
1641 | + ISQLStatement escape = null; | |
1642 | + Token op = null; | |
1643 | + left = sqlStatement(); | |
1644 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1645 | + case EQUALS: | |
1646 | + op = jj_consume_token(EQUALS); | |
1647 | + break; | |
1648 | + case SQL_NOT_EQUALS: | |
1649 | + op = jj_consume_token(SQL_NOT_EQUALS); | |
1650 | + break; | |
1651 | + case GT: | |
1652 | + op = jj_consume_token(GT); | |
1653 | + break; | |
1654 | + case GEQ: | |
1655 | + op = jj_consume_token(GEQ); | |
1656 | + break; | |
1657 | + case LT: | |
1658 | + op = jj_consume_token(LT); | |
1659 | + break; | |
1660 | + case LEQ: | |
1661 | + op = jj_consume_token(LEQ); | |
1662 | + break; | |
1663 | + case AT_AT_MARK: | |
1664 | + op = jj_consume_token(AT_AT_MARK); | |
1665 | + break; | |
1666 | + case LIKE: | |
1667 | + op = jj_consume_token(LIKE); | |
1668 | + break; | |
1669 | + default: | |
1670 | + jj_la1[59] = jj_gen; | |
1671 | + jj_consume_token(-1); | |
1672 | + throw new ParseException(); | |
1673 | + } | |
1674 | + right = sqlStatement(); | |
1675 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1676 | + case ESCAPE: | |
1677 | + jj_consume_token(ESCAPE); | |
1678 | + escape = variable(); | |
1679 | + break; | |
1680 | + default: | |
1681 | + jj_la1[60] = jj_gen; | |
1682 | + ; | |
1683 | + } | |
1684 | + if(op.image.toUpperCase().equals("LIKE")){ | |
1685 | + likeExp = new LikeExpression(); | |
1686 | + | |
1687 | + likeExp.setLeft(left); | |
1688 | + likeExp.setRight(right); | |
1689 | + | |
1690 | + if(escape != null){ | |
1691 | + likeExp.setEscape(escape); | |
1692 | + } | |
1693 | + | |
1694 | + {if (true) return likeExp;} | |
1695 | + } | |
1696 | + | |
1697 | + exp = new TwoClauseExpression(); | |
1698 | + | |
1699 | + exp.setLeft(left); | |
1700 | + exp.setRight(right); | |
1701 | + exp.setOpe(op.image); | |
1702 | + | |
1703 | + | |
1704 | + {if (true) return exp;} | |
1705 | + throw new Error("Missing return statement in function"); | |
1706 | + } | |
1707 | + | |
1708 | + final public ISQLStatement sqlStatement() throws ParseException { | |
1709 | + SQLStatement stmt = new SQLStatement(); | |
1710 | + ISQLStatement first = null; | |
1711 | + SQLSubStatement sub = null; | |
1712 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1713 | + case L_PARENTHESIS: | |
1714 | + case DOLLAR: | |
1715 | + case AT_MARK: | |
1716 | + case IDENTIFIER: | |
1717 | + case NUMERIC: | |
1718 | + case DQSTRLIT: | |
1719 | + case SQSTRLIT: | |
1720 | + first = sqlSubStatementOperand(); | |
1721 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1722 | + case ASTERISK: | |
1723 | + case PLUS: | |
1724 | + case MINUS: | |
1725 | + case DIV: | |
1726 | + case BIT_AND: | |
1727 | + case BIT_OR: | |
1728 | + sub = sqlSubStatement(); | |
1729 | + break; | |
1730 | + default: | |
1731 | + jj_la1[61] = jj_gen; | |
1732 | + ; | |
1733 | + } | |
1734 | + stmt.setFirstStmt(first); | |
1735 | + stmt.setSubStatement(sub); | |
1736 | + | |
1737 | + {if (true) return stmt;} | |
1738 | + break; | |
1739 | + case ASTERISK: | |
1740 | + jj_consume_token(ASTERISK); | |
1741 | + {if (true) return new SQLAllStatemtet();} | |
1742 | + break; | |
1743 | + default: | |
1744 | + jj_la1[62] = jj_gen; | |
1745 | + jj_consume_token(-1); | |
1746 | + throw new ParseException(); | |
1747 | + } | |
1748 | + throw new Error("Missing return statement in function"); | |
1749 | + } | |
1750 | + | |
1751 | + final public SQLSubStatement sqlSubStatement() throws ParseException { | |
1752 | + SQLSubStatement subStmt = new SQLSubStatement(); | |
1753 | + ISQLStatement operand = null; | |
1754 | + Token t = null; | |
1755 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1756 | + case BIT_AND: | |
1757 | + t = jj_consume_token(BIT_AND); | |
1758 | + break; | |
1759 | + case BIT_OR: | |
1760 | + t = jj_consume_token(BIT_OR); | |
1761 | + break; | |
1762 | + case PLUS: | |
1763 | + t = jj_consume_token(PLUS); | |
1764 | + break; | |
1765 | + case MINUS: | |
1766 | + t = jj_consume_token(MINUS); | |
1767 | + break; | |
1768 | + case DIV: | |
1769 | + t = jj_consume_token(DIV); | |
1770 | + break; | |
1771 | + case ASTERISK: | |
1772 | + t = jj_consume_token(ASTERISK); | |
1773 | + break; | |
1774 | + default: | |
1775 | + jj_la1[63] = jj_gen; | |
1776 | + jj_consume_token(-1); | |
1777 | + throw new ParseException(); | |
1778 | + } | |
1779 | + operand = sqlSubStatementOperand(); | |
1780 | + subStmt.setOpe(t.image); | |
1781 | + subStmt.setStatement(operand); | |
1782 | + {if (true) return subStmt;} | |
1783 | + throw new Error("Missing return statement in function"); | |
1784 | + } | |
1785 | + | |
1786 | + final public ISQLStatement sqlSubStatementOperand() throws ParseException { | |
1787 | + ISQLStatement opernd = null; | |
1788 | + SQLParenthesisStatement pStmt = null; | |
1789 | + if (jj_2_14(2)) { | |
1790 | + opernd = variable(); | |
1791 | + {if (true) return opernd;} | |
1792 | + } else { | |
1793 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1794 | + case IDENTIFIER: | |
1795 | + opernd = columnIdentifier(); | |
1796 | + {if (true) return opernd;} | |
1797 | + break; | |
1798 | + case L_PARENTHESIS: | |
1799 | + jj_consume_token(L_PARENTHESIS); | |
1800 | + opernd = sqlStatement(); | |
1801 | + jj_consume_token(R_PARENTHESIS); | |
1802 | + pStmt = new SQLParenthesisStatement(); | |
1803 | + pStmt.setStmt(opernd); | |
1804 | + | |
1805 | + {if (true) return pStmt;} | |
1806 | + break; | |
1807 | + default: | |
1808 | + jj_la1[64] = jj_gen; | |
1809 | + jj_consume_token(-1); | |
1810 | + throw new ParseException(); | |
1811 | + } | |
1812 | + } | |
1813 | + throw new Error("Missing return statement in function"); | |
1814 | + } | |
1815 | + | |
1816 | + final public ColumnIdentifier columnIdentifier() throws ParseException { | |
1817 | + ColumnIdentifier id = new ColumnIdentifier(); | |
1818 | + Token t1 = null; | |
1819 | + Token t2 = null; | |
1820 | + Token t3 = null; | |
1821 | + t1 = jj_consume_token(IDENTIFIER); | |
1822 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1823 | + case DOT: | |
1824 | + jj_consume_token(DOT); | |
1825 | + t2 = jj_consume_token(IDENTIFIER); | |
1826 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1827 | + case DOT: | |
1828 | + jj_consume_token(DOT); | |
1829 | + t3 = jj_consume_token(IDENTIFIER); | |
1830 | + break; | |
1831 | + default: | |
1832 | + jj_la1[65] = jj_gen; | |
1833 | + ; | |
1834 | + } | |
1835 | + break; | |
1836 | + default: | |
1837 | + jj_la1[66] = jj_gen; | |
1838 | + ; | |
1839 | + } | |
1840 | + if(t2 != null && t3 != null){ | |
1841 | + id.setDatabaseName(t1.image); | |
1842 | + id.setTableName(t2.image); | |
1843 | + id.setColumnName(t3.image); | |
1844 | + }else if(t2 != null && t3 == null){ | |
1845 | + id.setTableName(t1.image); | |
1846 | + id.setColumnName(t2.image); | |
1847 | + }else{ | |
1848 | + id.setColumnName(t1.image); | |
1849 | + } | |
1850 | + | |
1851 | + {if (true) return id;} | |
1852 | + throw new Error("Missing return statement in function"); | |
1853 | + } | |
1854 | + | |
1855 | + final public ISQLStatement variable() throws ParseException { | |
1856 | + Token t = null; | |
1857 | + IPathElement pathElement = null; | |
1858 | + ISQLStatement stmt = null; | |
1859 | + SQLVariable variable = null; | |
1860 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1861 | + case DOLLAR: | |
1862 | + jj_consume_token(DOLLAR); | |
1863 | + pathElement = domPath(); | |
1864 | + variable = new SQLVariable(); | |
1865 | + variable.setPathElement(pathElement); | |
1866 | + variable.setPrefix("$"); | |
1867 | + | |
1868 | + {if (true) return variable;} | |
1869 | + break; | |
1870 | + case AT_MARK: | |
1871 | + jj_consume_token(AT_MARK); | |
1872 | + pathElement = domPath(); | |
1873 | + variable = new SQLVariable(); | |
1874 | + variable.setPathElement(pathElement); | |
1875 | + variable.setPrefix("@"); | |
1876 | + | |
1877 | + {if (true) return variable;} | |
1878 | + break; | |
1879 | + case DQSTRLIT: | |
1880 | + case SQSTRLIT: | |
1881 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1882 | + case DQSTRLIT: | |
1883 | + t = jj_consume_token(DQSTRLIT); | |
1884 | + break; | |
1885 | + case SQSTRLIT: | |
1886 | + t = jj_consume_token(SQSTRLIT); | |
1887 | + break; | |
1888 | + default: | |
1889 | + jj_la1[67] = jj_gen; | |
1890 | + jj_consume_token(-1); | |
1891 | + throw new ParseException(); | |
1892 | + } | |
1893 | + SQLStringConst strvariable = new SQLStringConst(); | |
1894 | + strvariable.setStr(t.image); | |
1895 | + | |
1896 | + {if (true) return strvariable;} | |
1897 | + break; | |
1898 | + case NUMERIC: | |
1899 | + t = jj_consume_token(NUMERIC); | |
1900 | + SQLNumericConst numericVal = new SQLNumericConst(); | |
1901 | + numericVal.setNumber(t.image); | |
1902 | + | |
1903 | + {if (true) return numericVal;} | |
1904 | + break; | |
1905 | + case IDENTIFIER: | |
1906 | + stmt = sqlFunctionCall(); | |
1907 | + {if (true) return stmt;} | |
1908 | + break; | |
1909 | + case L_PARENTHESIS: | |
1910 | + stmt = sqlSubQuery(); | |
1911 | + {if (true) return stmt;} | |
1912 | + break; | |
1913 | + default: | |
1914 | + jj_la1[68] = jj_gen; | |
1915 | + jj_consume_token(-1); | |
1916 | + throw new ParseException(); | |
1917 | + } | |
1918 | + throw new Error("Missing return statement in function"); | |
1919 | + } | |
1920 | + | |
1921 | + final public ISQLStatement sqlSubQuery() throws ParseException { | |
1922 | + SubQueryStatement subQuery = new SubQueryStatement(); | |
1923 | + SelectSentence selectSentence = null; | |
1924 | + jj_consume_token(L_PARENTHESIS); | |
1925 | + selectSentence = select(); | |
1926 | + jj_consume_token(R_PARENTHESIS); | |
1927 | + subQuery.setSelectSentence(selectSentence); | |
1928 | + | |
1929 | + {if (true) return subQuery;} | |
1930 | + throw new Error("Missing return statement in function"); | |
1931 | + } | |
1932 | + | |
1933 | + final public ISQLStatement sqlFunctionCall() throws ParseException { | |
1934 | + SQLFunctionCallStatement funcCall = new SQLFunctionCallStatement(); | |
1935 | + SQLFunctionCallArguments arguments = null; | |
1936 | + | |
1937 | + Token t = null; | |
1938 | + t = jj_consume_token(IDENTIFIER); | |
1939 | + jj_consume_token(L_PARENTHESIS); | |
1940 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1941 | + case ASTERISK: | |
1942 | + case L_PARENTHESIS: | |
1943 | + case DOLLAR: | |
1944 | + case AT_MARK: | |
1945 | + case IDENTIFIER: | |
1946 | + case NUMERIC: | |
1947 | + case DQSTRLIT: | |
1948 | + case SQSTRLIT: | |
1949 | + arguments = sqlFunctionArguments(); | |
1950 | + funcCall.setArguments(arguments); | |
1951 | + break; | |
1952 | + default: | |
1953 | + jj_la1[69] = jj_gen; | |
1954 | + ; | |
1955 | + } | |
1956 | + jj_consume_token(R_PARENTHESIS); | |
1957 | + funcCall.setName(t.image); | |
1958 | + | |
1959 | + {if (true) return funcCall;} | |
1960 | + throw new Error("Missing return statement in function"); | |
1961 | + } | |
1962 | + | |
1963 | + final public SQLFunctionCallArguments sqlFunctionArguments() throws ParseException { | |
1964 | + SQLFunctionCallArguments args = new SQLFunctionCallArguments(); | |
1965 | + ISQLStatement argument = null; | |
1966 | + argument = sqlStatement(); | |
1967 | + args.addArgument(argument); | |
1968 | + label_11: | |
1969 | + while (true) { | |
1970 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
1971 | + case COMMA: | |
1972 | + ; | |
1973 | + break; | |
1974 | + default: | |
1975 | + jj_la1[70] = jj_gen; | |
1976 | + break label_11; | |
1977 | + } | |
1978 | + jj_consume_token(COMMA); | |
1979 | + argument = sqlStatement(); | |
1980 | + args.addArgument(argument); | |
1981 | + } | |
1982 | + {if (true) return args;} | |
1983 | + throw new Error("Missing return statement in function"); | |
1984 | + } | |
1985 | + | |
1986 | + final public Identifier identifier() throws ParseException { | |
1987 | + Identifier idf = new Identifier(); | |
1988 | + Token t = null; | |
1989 | + t = jj_consume_token(IDENTIFIER); | |
1990 | + idf.setName(t.image); | |
1991 | + {if (true) return idf;} | |
1992 | + throw new Error("Missing return statement in function"); | |
1993 | + } | |
1994 | + | |
1995 | + final public AdjustWhere adjustWhere() throws ParseException { | |
1996 | + AdjustWhere adWhere = new AdjustWhere(); | |
1997 | + Token t = null; | |
1998 | + jj_consume_token(ADJUST_WHERE); | |
1999 | + jj_consume_token(EQUALS); | |
2000 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2001 | + case TRUE: | |
2002 | + t = jj_consume_token(TRUE); | |
2003 | + break; | |
2004 | + case FALSE: | |
2005 | + t = jj_consume_token(FALSE); | |
2006 | + break; | |
2007 | + default: | |
2008 | + jj_la1[71] = jj_gen; | |
2009 | + jj_consume_token(-1); | |
2010 | + throw new ParseException(); | |
2011 | + } | |
2012 | + adWhere.setValue(t.image); | |
2013 | + | |
2014 | + {if (true) return adWhere;} | |
2015 | + throw new Error("Missing return statement in function"); | |
2016 | + } | |
2017 | + | |
2018 | + final public AdjustSet adjustSet() throws ParseException { | |
2019 | + AdjustSet adSet = new AdjustSet(); | |
2020 | + Token t = null; | |
2021 | + jj_consume_token(ADJUST_SET); | |
2022 | + jj_consume_token(EQUALS); | |
2023 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2024 | + case TRUE: | |
2025 | + t = jj_consume_token(TRUE); | |
2026 | + break; | |
2027 | + case FALSE: | |
2028 | + t = jj_consume_token(FALSE); | |
2029 | + break; | |
2030 | + default: | |
2031 | + jj_la1[72] = jj_gen; | |
2032 | + jj_consume_token(-1); | |
2033 | + throw new ParseException(); | |
2034 | + } | |
2035 | + adSet.setValue(t.image); | |
2036 | + | |
2037 | + {if (true) return adSet;} | |
2038 | + throw new Error("Missing return statement in function"); | |
2039 | + } | |
2040 | + | |
2041 | + final public UpdateSentence update() throws ParseException { | |
2042 | + UpdateSentence sentence = new UpdateSentence(); | |
2043 | + TableIdentifier tbl = null; | |
2044 | + SetClause set = null; | |
2045 | + WhereClause where = null; | |
2046 | + AdjustWhere adjustWhere = null; | |
2047 | + AdjustSet adjustSet = null; | |
2048 | + | |
2049 | + Token t = null; | |
2050 | + t = jj_consume_token(UPDATE); | |
2051 | + tbl = table(); | |
2052 | + set = set(); | |
2053 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2054 | + case WHERE: | |
2055 | + where = where(); | |
2056 | + break; | |
2057 | + default: | |
2058 | + jj_la1[73] = jj_gen; | |
2059 | + ; | |
2060 | + } | |
2061 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2062 | + case ADJUST_SET: | |
2063 | + adjustSet = adjustSet(); | |
2064 | + break; | |
2065 | + default: | |
2066 | + jj_la1[74] = jj_gen; | |
2067 | + ; | |
2068 | + } | |
2069 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2070 | + case ADJUST_WHERE: | |
2071 | + adjustWhere = adjustWhere(); | |
2072 | + break; | |
2073 | + default: | |
2074 | + jj_la1[75] = jj_gen; | |
2075 | + ; | |
2076 | + } | |
2077 | + sentence.setTable(tbl); | |
2078 | + sentence.setSet(set); | |
2079 | + sentence.setWhere(where); | |
2080 | + sentence.setAdjustWhere(adjustWhere); | |
2081 | + sentence.setAdjustSet(adjustSet); | |
2082 | + | |
2083 | + sentence.setLine(t.beginLine); | |
2084 | + sentence.setLinePosition(t.beginColumn); | |
2085 | + | |
2086 | + {if (true) return sentence;} | |
2087 | + throw new Error("Missing return statement in function"); | |
2088 | + } | |
2089 | + | |
2090 | + final public SetClause set() throws ParseException { | |
2091 | + SetClause set = new SetClause(); | |
2092 | + SetPair pair = null; | |
2093 | + jj_consume_token(SET); | |
2094 | + pair = setPair(); | |
2095 | + set.addSet(pair); | |
2096 | + label_12: | |
2097 | + while (true) { | |
2098 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2099 | + case COMMA: | |
2100 | + ; | |
2101 | + break; | |
2102 | + default: | |
2103 | + jj_la1[76] = jj_gen; | |
2104 | + break label_12; | |
2105 | + } | |
2106 | + jj_consume_token(COMMA); | |
2107 | + pair = setPair(); | |
2108 | + set.addSet(pair); | |
2109 | + } | |
2110 | + {if (true) return set;} | |
2111 | + throw new Error("Missing return statement in function"); | |
2112 | + } | |
2113 | + | |
2114 | + final public SetPair setPair() throws ParseException { | |
2115 | + SetPair pair = new SetPair(); | |
2116 | + ColumnIdentifier col = null; | |
2117 | + ISQLStatement val = null; | |
2118 | + col = columnIdentifier(); | |
2119 | + jj_consume_token(EQUALS); | |
2120 | + val = sqlStatement(); | |
2121 | + pair.setColumn(col); | |
2122 | + pair.setValue(val); | |
2123 | + | |
2124 | + {if (true) return pair;} | |
2125 | + throw new Error("Missing return statement in function"); | |
2126 | + } | |
2127 | + | |
2128 | + final public DeleteSentence delete() throws ParseException { | |
2129 | + DeleteSentence sentence = new DeleteSentence(); | |
2130 | + FromClause from = null; | |
2131 | + WhereClause where = null; | |
2132 | + AdjustWhere adjustWhere = null; | |
2133 | + | |
2134 | + Token t = null; | |
2135 | + t = jj_consume_token(DELETE); | |
2136 | + from = from(); | |
2137 | + where = where(); | |
2138 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2139 | + case ADJUST_WHERE: | |
2140 | + adjustWhere = adjustWhere(); | |
2141 | + break; | |
2142 | + default: | |
2143 | + jj_la1[77] = jj_gen; | |
2144 | + ; | |
2145 | + } | |
2146 | + sentence.setFrom(from); | |
2147 | + sentence.setWhere(where); | |
2148 | + sentence.setAdjustWhere(adjustWhere); | |
2149 | + | |
2150 | + sentence.setLine(t.beginLine); | |
2151 | + sentence.setLinePosition(t.beginColumn); | |
2152 | + | |
2153 | + {if (true) return sentence;} | |
2154 | + throw new Error("Missing return statement in function"); | |
2155 | + } | |
2156 | + | |
2157 | + final public InsertSentence insert() throws ParseException { | |
2158 | + InsertSentence sentence = new InsertSentence(); | |
2159 | + TableIdentifier tbl = null; | |
2160 | + ColumnList cols = null; | |
2161 | + VariableList vals = null; | |
2162 | + | |
2163 | + Token t = null; | |
2164 | + t = jj_consume_token(INSERT); | |
2165 | + jj_consume_token(INTO); | |
2166 | + tbl = table(); | |
2167 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2168 | + case L_PARENTHESIS: | |
2169 | + cols = insertColumns(); | |
2170 | + break; | |
2171 | + default: | |
2172 | + jj_la1[78] = jj_gen; | |
2173 | + ; | |
2174 | + } | |
2175 | + jj_consume_token(VALUES); | |
2176 | + vals = values(); | |
2177 | + sentence.addValues(vals); | |
2178 | + label_13: | |
2179 | + while (true) { | |
2180 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2181 | + case COMMA: | |
2182 | + ; | |
2183 | + break; | |
2184 | + default: | |
2185 | + jj_la1[79] = jj_gen; | |
2186 | + break label_13; | |
2187 | + } | |
2188 | + jj_consume_token(COMMA); | |
2189 | + vals = values(); | |
2190 | + sentence.addValues(vals); | |
2191 | + } | |
2192 | + sentence.setCols(cols); | |
2193 | + sentence.setTbl(tbl); | |
2194 | + | |
2195 | + sentence.setLine(t.beginLine); | |
2196 | + sentence.setLinePosition(t.beginColumn); | |
2197 | + | |
2198 | + {if (true) return sentence;} | |
2199 | + throw new Error("Missing return statement in function"); | |
2200 | + } | |
2201 | + | |
2202 | + final public ColumnList insertColumns() throws ParseException { | |
2203 | + ColumnList colList; | |
2204 | + ColumnIdentifier col; | |
2205 | + jj_consume_token(L_PARENTHESIS); | |
2206 | + col = columnIdentifier(); | |
2207 | + colList = new ColumnList(); | |
2208 | + colList.addColumns(col); | |
2209 | + label_14: | |
2210 | + while (true) { | |
2211 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2212 | + case COMMA: | |
2213 | + ; | |
2214 | + break; | |
2215 | + default: | |
2216 | + jj_la1[80] = jj_gen; | |
2217 | + break label_14; | |
2218 | + } | |
2219 | + jj_consume_token(COMMA); | |
2220 | + col = columnIdentifier(); | |
2221 | + colList.addColumns(col); | |
2222 | + } | |
2223 | + jj_consume_token(R_PARENTHESIS); | |
2224 | + {if (true) return colList;} | |
2225 | + throw new Error("Missing return statement in function"); | |
2226 | + } | |
2227 | + | |
2228 | + final public VariableList values() throws ParseException { | |
2229 | + VariableList vals = new VariableList(); | |
2230 | + ISQLStatement val = null; | |
2231 | + jj_consume_token(L_PARENTHESIS); | |
2232 | + val = variable(); | |
2233 | + vals.addValues(val); | |
2234 | + label_15: | |
2235 | + while (true) { | |
2236 | + switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { | |
2237 | + case COMMA: | |
2238 | + ; | |
2239 | + break; | |
2240 | + default: | |
2241 | + jj_la1[81] = jj_gen; | |
2242 | + break label_15; | |
2243 | + } | |
2244 | + jj_consume_token(COMMA); | |
2245 | + val = variable(); | |
2246 | + vals.addValues(val); | |
2247 | + } | |
2248 | + jj_consume_token(R_PARENTHESIS); | |
2249 | + {if (true) return vals;} | |
2250 | + throw new Error("Missing return statement in function"); | |
2251 | + } | |
2252 | + | |
2253 | 2253 | /////////////////////////////////////////////////////////////////////////// |
2254 | - final public SubstituteSentence substituteSentence() throws ParseException { | |
2255 | - SubstituteSentence sentence = new SubstituteSentence(); | |
2256 | - IVariableDescription operand = null; | |
2257 | - IStatement stmt = null; | |
2258 | - operand = scriptVariable(); | |
2259 | - jj_consume_token(EQUALS); | |
2260 | - stmt = statement(); | |
2261 | - sentence.setOperand((VariableDescriptor)operand); | |
2262 | - | |
2263 | - sentence.setStatement(stmt); | |
2264 | - | |
2265 | - sentence.setLine(operand.getLine()); | |
2266 | - sentence.setLinePosition(operand.getLinePosition()); | |
2267 | - | |
2268 | - {if (true) return sentence;} | |
2269 | - throw new Error("Missing return statement in function"); | |
2270 | - } | |
2271 | - | |
2272 | - final public PlusPlusSentence plusPlusSentence() throws ParseException { | |
2273 | - PlusPlusSentence sentence = new PlusPlusSentence(); | |
2274 | - IStatement stmt = null; | |
2275 | - PlusPlusStatement pstmt = null; | |
2276 | - stmt = plusplusStatement(); | |
2277 | - sentence.setPlusplusStatement(stmt); | |
2278 | - | |
2279 | - pstmt = (PlusPlusStatement)stmt; | |
2280 | - | |
2281 | - sentence.setLine(pstmt.getLine()); | |
2282 | - sentence.setLinePosition(pstmt.getLinePosition()); | |
2283 | - | |
2284 | - {if (true) return sentence;} | |
2285 | - throw new Error("Missing return statement in function"); | |
2286 | - } | |
2287 | - | |
2288 | - final public IStatement statement() throws ParseException { | |
2289 | - IStatement stmt = null; | |
2290 | - stmt = plusStatement(); | |
2291 | - {if (true) return stmt;} | |
2292 | - throw new Error("Missing return statement in function"); | |
2293 | - } | |
2294 | - | |
2295 | - final public IStatement plusStatement() throws ParseException { | |
2296 | - IStatement first = null; | |
2297 | - IStatement stmt = null; | |
2298 | - PlusStatement plusStatement = null; | |
2299 | - Token t = null; | |
2300 | - first = multipleStatement(); | |
2301 | - la |