2 * Copyright 2004 The Apache Software Foundation
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 /* Generated By:JavaCC: Do not edit this line. StandardTokenizerTokenManager.java */
20 namespace Lucene
.Net
.Analysis
.Standard
23 public class StandardTokenizerTokenManager
: StandardTokenizerConstants
25 /// <summary>By default, closes the input Reader. </summary>
31 private void InitBlock()
34 private int JjMoveStringLiteralDfa0_0()
36 return JjMoveNfa_0(0, 0);
38 private void JjCheckNAdd(int state
)
40 if (jjrounds
[state
] != jjround
)
42 jjstateSet
[jjnewStateCnt
++] = state
;
43 jjrounds
[state
] = jjround
;
46 private void JjAddStates(int start
, int end
)
50 jjstateSet
[jjnewStateCnt
++] = jjnextStates
[start
];
52 while (start
++ != end
);
54 private void JjCheckNAddTwoStates(int state1
, int state2
)
59 private void JjCheckNAddStates(int start
, int end
)
63 JjCheckNAdd(jjnextStates
[start
]);
65 while (start
++ != end
);
67 private void JjCheckNAddStates(int start
)
69 JjCheckNAdd(jjnextStates
[start
]);
70 JjCheckNAdd(jjnextStates
[start
+ 1]);
72 internal static readonly ulong[] jjbitVec0
= new ulong[]{0x1ff0000000000000L, 0xffffffffffffc000L, 0xffffffffL, 0x600000000000000L}
;
73 internal static readonly ulong[] jjbitVec2
= new ulong[]{0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL}
;
74 internal static readonly ulong[] jjbitVec3
= new ulong[]{0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffL, 0x0L}
;
75 internal static readonly ulong[] jjbitVec4
= new ulong[]{0xffffffffffffffffL, 0xffffffffffffffffL, 0x0L, 0x0L}
;
76 internal static readonly ulong[] jjbitVec5
= new ulong[]{0x3fffffffffffL, 0x0L, 0x0L, 0x0L}
;
77 internal static readonly ulong[] jjbitVec6
= new ulong[]{0x0L, 0x0L, 0xfffff00000000000L, 0x7fffffL}
;
78 internal static readonly ulong[] jjbitVec7
= new ulong[]{0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL, 0x3ffffffffffffffL}
;
79 internal static readonly ulong[] jjbitVec8
= new ulong[]{0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffL, 0x0L}
;
80 internal static readonly ulong[] jjbitVec9
= new ulong[]{0xfffffffeL, 0x0L, 0x0L, 0x0L}
;
81 internal static readonly ulong[] jjbitVec10
= new ulong[]{0x0L, 0x0L, 0x0L, 0xff7fffffff7fffffL}
;
82 internal static readonly ulong[] jjbitVec11
= new ulong[]{0x1600L, 0x0L, 0x0L, 0x0L}
;
83 internal static readonly ulong[] jjbitVec12
= new ulong[]{0x0L, 0xffc000000000L, 0x0L, 0xffc000000000L}
;
84 internal static readonly ulong[] jjbitVec13
= new ulong[]{0x0L, 0x3ff00000000L, 0x0L, 0x3ff000000000000L}
;
85 internal static readonly ulong[] jjbitVec14
= new ulong[]{0x0L, 0xffc000000000L, 0x0L, 0xff8000000000L}
;
86 internal static readonly ulong[] jjbitVec15
= new ulong[]{0x0L, 0xffc000000000L, 0x0L, 0x0L}
;
87 internal static readonly ulong[] jjbitVec16
= new ulong[]{0x0L, 0x3ff0000L, 0x0L, 0x3ff0000L}
;
88 internal static readonly ulong[] jjbitVec17
= new ulong[]{0x0L, 0x3ffL, 0x0L, 0x0L}
;
89 internal static readonly ulong[] jjbitVec18
= new ulong[]{0xfffffffeL, 0x0L, 0xfffff00000000000L, 0x7fffffL}
;
90 private int JjMoveNfa_0(int startState
, int curPos
)
96 jjstateSet
[0] = startState
;
97 int j
, kind
= 0x7fffffff;
100 if (++jjround
== 0x7fffffff)
104 ulong l
= ((ulong) 1L) << curChar
;
108 switch (jjstateSet
[--i
])
112 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
116 JjCheckNAddStates(0, 11);
118 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
119 JjCheckNAddStates(12, 17);
120 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
121 JjCheckNAddStates(18, 23);
125 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
126 JjCheckNAddStates(18, 23);
130 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
131 JjCheckNAddTwoStates(3, 4);
136 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
137 JjCheckNAddTwoStates(5, 6);
141 if ((0xf00000000000L
& l
) != (ulong) 0L)
146 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
154 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
155 JjCheckNAddTwoStates(8, 9);
160 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
161 JjCheckNAddTwoStates(10, 11);
165 if ((0xf00000000000L
& l
) != (ulong) 0L)
170 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
171 JjCheckNAddTwoStates(12, 13);
175 if ((0xf00000000000L
& l
) != (ulong) 0L)
176 JjCheckNAddTwoStates(14, 15);
180 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
181 JjCheckNAddTwoStates(14, 15);
186 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
190 JjCheckNAddTwoStates(11, 16);
194 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
195 JjCheckNAddTwoStates(17, 18);
200 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
201 JjCheckNAddTwoStates(19, 20);
205 if ((0xf00000000000L
& l
) != (ulong) 0L)
210 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
211 JjCheckNAddTwoStates(21, 22);
215 if ((0xf00000000000L
& l
) != (ulong) 0L)
216 JjCheckNAddTwoStates(23, 24);
220 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
221 JjCheckNAddTwoStates(23, 24);
226 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
227 JjCheckNAddTwoStates(25, 26);
231 if ((0xf00000000000L
& l
) != (ulong) 0L)
236 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
240 JjCheckNAddTwoStates(22, 27);
244 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
245 JjCheckNAddStates(12, 17);
249 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
253 JjCheckNAddStates(0, 11);
257 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
265 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
266 JjCheckNAddStates(24, 26);
270 if ((0x600000000000L
& l
) != (ulong) 0L)
275 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
276 JjCheckNAddStates(27, 29);
280 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
281 JjCheckNAddTwoStates(35, 36);
285 if ((0x600000000000L
& l
) != (ulong) 0L)
290 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
294 JjCheckNAddTwoStates(36, 37);
298 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
299 JjCheckNAddTwoStates(38, 39);
308 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
312 JjCheckNAddTwoStates(39, 40);
316 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
317 JjCheckNAddTwoStates(41, 42);
321 if ((0xf00000000000L
& l
) != (ulong) 0L)
322 JjCheckNAddTwoStates(43, 44);
326 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
327 JjCheckNAddTwoStates(43, 44);
332 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
340 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
341 JjCheckNAddTwoStates(46, 47);
345 if ((0xf00000000000L
& l
) != (ulong) 0L)
346 JjCheckNAddTwoStates(48, 49);
350 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
351 JjCheckNAddTwoStates(48, 49);
356 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
357 JjCheckNAddTwoStates(50, 51);
361 if ((0xf00000000000L
& l
) != (ulong) 0L)
366 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
370 JjCheckNAddTwoStates(47, 52);
374 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
375 JjCheckNAddTwoStates(53, 54);
379 if ((0xf00000000000L
& l
) != (ulong) 0L)
380 JjCheckNAddTwoStates(55, 56);
384 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
385 JjCheckNAddTwoStates(55, 56);
390 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
391 JjCheckNAddTwoStates(57, 58);
395 if ((0xf00000000000L
& l
) != (ulong) 0L)
400 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
401 JjCheckNAddTwoStates(59, 60);
405 if ((0xf00000000000L
& l
) != (ulong) 0L)
406 JjCheckNAddTwoStates(61, 62);
410 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
411 JjCheckNAddTwoStates(61, 62);
416 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
420 JjCheckNAddTwoStates(58, 63);
425 jjstateSet
[jjnewStateCnt
++] = 67;
443 jjstateSet
[jjnewStateCnt
++] = 74;
450 while (i
!= startsAt
);
452 else if (curChar
< 128)
454 ulong l
= ((ulong) 1L) << (curChar
& 63);
458 switch (jjstateSet
[--i
])
462 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
463 JjCheckNAddStates(30, 35);
464 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
468 JjCheckNAddStates(0, 11);
470 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
471 JjCheckNAddStates(18, 23);
475 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
476 JjCheckNAddStates(18, 23);
480 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
481 JjCheckNAddTwoStates(3, 4);
485 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
495 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
503 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
504 JjCheckNAddTwoStates(8, 9);
508 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
509 JjCheckNAddTwoStates(10, 11);
518 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
519 JjCheckNAddTwoStates(12, 13);
524 JjCheckNAddTwoStates(14, 15);
528 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
529 JjCheckNAddTwoStates(14, 15);
533 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
537 JjCheckNAddTwoStates(11, 16);
541 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
542 JjCheckNAddTwoStates(17, 18);
546 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
556 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
557 JjCheckNAddTwoStates(21, 22);
562 JjCheckNAddTwoStates(23, 24);
566 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
567 JjCheckNAddTwoStates(23, 24);
571 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
581 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
585 JjCheckNAddTwoStates(22, 27);
589 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
593 JjCheckNAddStates(0, 11);
597 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
605 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
606 JjCheckNAddStates(24, 26);
615 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
616 JjCheckNAddStates(27, 29);
625 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
626 JjCheckNAddTwoStates(35, 36);
630 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
634 JjCheckNAddTwoStates(36, 37);
638 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
639 JjCheckNAddTwoStates(38, 39);
643 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
647 JjCheckNAddTwoStates(39, 40);
651 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
652 JjCheckNAddTwoStates(41, 42);
657 JjCheckNAddTwoStates(43, 44);
661 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
662 JjCheckNAddTwoStates(43, 44);
666 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
670 jjstateSet
[jjnewStateCnt
++] = 45;
674 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
675 JjCheckNAddTwoStates(46, 47);
680 JjCheckNAddTwoStates(48, 49);
684 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
685 JjCheckNAddTwoStates(48, 49);
689 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
699 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
703 JjCheckNAddTwoStates(47, 52);
707 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
708 JjCheckNAddTwoStates(53, 54);
713 JjCheckNAddTwoStates(55, 56);
717 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
718 JjCheckNAddTwoStates(55, 56);
722 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
723 JjCheckNAddTwoStates(57, 58);
732 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
733 JjCheckNAddTwoStates(59, 60);
738 JjCheckNAddTwoStates(61, 62);
742 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
743 JjCheckNAddTwoStates(61, 62);
747 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
751 JjCheckNAddTwoStates(58, 63);
755 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
756 JjCheckNAddStates(30, 35);
760 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
761 JjCheckNAddTwoStates(65, 66);
765 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
769 JjCheckNAddTwoStates(66, 67);
773 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
774 JjCheckNAddTwoStates(68, 69);
778 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
783 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
784 JjCheckNAddTwoStates(72, 73);
793 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
804 while (i
!= startsAt
);
808 int hiByte
= (int) (curChar
>> 8);
809 int i1
= hiByte
>> 6;
810 ulong l1
= ((ulong) 1L) << (hiByte
& 63);
811 int i2
= (curChar
& 0xff) >> 6;
812 ulong l2
= ((ulong) 1L) << (curChar
& 63);
816 switch (jjstateSet
[--i
])
820 if (JjCanMove_0(hiByte
, i1
, i2
, l1
, l2
))
825 if (JjCanMove_1(hiByte
, i1
, i2
, l1
, l2
))
830 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
831 JjCheckNAddStates(18, 23);
832 if (JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
833 JjCheckNAddStates(12, 17);
834 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
838 JjCheckNAddStates(0, 11);
840 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
841 JjCheckNAddStates(30, 35);
845 if (JjCanMove_1(hiByte
, i1
, i2
, l1
, l2
) && kind
> 13)
850 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
851 JjCheckNAddStates(18, 23);
855 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
856 JjCheckNAddTwoStates(3, 4);
860 if (JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
861 JjCheckNAddTwoStates(5, 6);
865 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
866 JjCheckNAddTwoStates(5, 6);
870 if (!JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
874 jjstateSet
[jjnewStateCnt
++] = 7;
878 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
879 JjCheckNAddTwoStates(8, 9);
883 if (JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
884 JjCheckNAddTwoStates(10, 11);
888 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
889 JjCheckNAddTwoStates(10, 11);
893 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
898 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
903 if (!JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
907 JjCheckNAddTwoStates(11, 16);
911 if (!JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
915 JjCheckNAddTwoStates(11, 16);
919 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
920 JjCheckNAddTwoStates(17, 18);
924 if (JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
925 JjCheckNAddTwoStates(19, 20);
929 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
930 JjCheckNAddTwoStates(19, 20);
934 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
935 JjCheckNAddTwoStates(21, 22);
939 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
944 if (JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
945 JjCheckNAddTwoStates(25, 26);
949 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
950 JjCheckNAddTwoStates(25, 26);
954 if (!JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
958 JjCheckNAddTwoStates(22, 27);
962 if (JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
963 JjCheckNAddStates(12, 17);
967 if (!JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
971 JjCheckNAddStates(0, 11);
975 if (!JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
983 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
984 JjCheckNAddStates(24, 26);
988 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
989 JjCheckNAddStates(27, 29);
993 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
994 JjCheckNAddTwoStates(35, 36);
998 if (!JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
1002 JjCheckNAddTwoStates(36, 37);
1006 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
1007 JjCheckNAddTwoStates(38, 39);
1011 if (!JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
1015 JjCheckNAddTwoStates(39, 40);
1019 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
1020 JjCheckNAddTwoStates(41, 42);
1024 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1025 JjAddStates(52, 53);
1029 if (!JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
1037 if (!JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1045 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
1046 JjCheckNAddTwoStates(46, 47);
1050 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1051 JjAddStates(54, 55);
1055 if (JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
1056 JjCheckNAddTwoStates(50, 51);
1060 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1061 JjCheckNAddTwoStates(50, 51);
1065 if (!JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
1069 JjCheckNAddTwoStates(47, 52);
1073 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
1074 JjCheckNAddTwoStates(53, 54);
1078 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1079 JjAddStates(56, 57);
1083 if (JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
1084 JjCheckNAddTwoStates(57, 58);
1088 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1089 JjCheckNAddTwoStates(57, 58);
1093 if (JjCanMove_4(hiByte
, i1
, i2
, l1
, l2
))
1094 JjAddStates(58, 59);
1098 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1099 JjAddStates(60, 61);
1103 if (!JjCanMove_3(hiByte
, i1
, i2
, l1
, l2
))
1107 JjCheckNAddTwoStates(58, 63);
1111 if (!JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1115 JjCheckNAddTwoStates(58, 63);
1119 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1120 JjCheckNAddStates(30, 35);
1124 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1125 JjCheckNAddTwoStates(65, 66);
1129 if (!JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1133 JjCheckNAddTwoStates(66, 67);
1137 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1138 JjCheckNAddTwoStates(68, 69);
1142 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1143 JjAddStates(44, 45);
1147 if (JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1148 JjCheckNAddTwoStates(72, 73);
1152 if (!JjCanMove_2(hiByte
, i1
, i2
, l1
, l2
))
1156 jjstateSet
[jjnewStateCnt
++] = 74;
1163 while (i
!= startsAt
);
1165 if (kind
!= 0x7fffffff)
1167 jjmatchedKind
= kind
;
1168 jjmatchedPos
= curPos
;
1172 if ((i
= jjnewStateCnt
) == (startsAt
= 75 - (jjnewStateCnt
= startsAt
)))
1174 int ret
= input_stream
.ReadChar();
1176 curChar
= (char) ret
;
1181 internal static readonly int[] jjnextStates
= new int[]{30, 31, 32, 34, 38, 39, 41, 42, 46, 47, 53, 54, 5, 6, 10, 11, 19, 20, 3, 4, 8, 9, 17, 18, 31, 32, 34, 32, 33, 34, 65, 66, 68, 69, 72, 73, 5, 6, 19, 20, 25, 26, 50, 51, 70, 71, 12, 13, 14, 15, 23, 24, 43, 44, 48, 49, 55, 56, 59, 60, 61, 62}
;
1182 private static bool JjCanMove_0(int hiByte
, int i1
, int i2
, ulong l1
, ulong l2
)
1188 return ((jjbitVec2
[i2
] & l2
) != (ulong) 0L);
1191 return ((jjbitVec3
[i2
] & l2
) != (ulong) 0L);
1194 return ((jjbitVec4
[i2
] & l2
) != (ulong) 0L);
1197 return ((jjbitVec5
[i2
] & l2
) != (ulong) 0L);
1200 if ((jjbitVec0
[i1
] & l1
) != (ulong) 0L)
1206 private static bool JjCanMove_1(int hiByte
, int i1
, int i2
, ulong l1
, ulong l2
)
1212 return ((jjbitVec7
[i2
] & l2
) != (ulong) 0L);
1215 return ((jjbitVec8
[i2
] & l2
) != (ulong) 0L);
1218 if ((jjbitVec6
[i1
] & l1
) != (ulong) 0L)
1224 private static bool JjCanMove_2(int hiByte
, int i1
, int i2
, ulong l1
, ulong l2
)
1230 return ((jjbitVec10
[i2
] & l2
) != (ulong) 0L);
1233 if ((jjbitVec9
[i1
] & l1
) != (ulong) 0L)
1239 private static bool JjCanMove_3(int hiByte
, int i1
, int i2
, ulong l1
, ulong l2
)
1245 return ((jjbitVec13
[i2
] & l2
) != (ulong) 0L);
1248 return ((jjbitVec14
[i2
] & l2
) != (ulong) 0L);
1251 return ((jjbitVec15
[i2
] & l2
) != (ulong) 0L);
1254 return ((jjbitVec16
[i2
] & l2
) != (ulong) 0L);
1257 return ((jjbitVec17
[i2
] & l2
) != (ulong) 0L);
1260 if ((jjbitVec11
[i1
] & l1
) != (ulong) 0L)
1261 if ((jjbitVec12
[i2
] & l2
) == (ulong) 0L)
1269 private static bool JjCanMove_4(int hiByte
, int i1
, int i2
, ulong l1
, ulong l2
)
1275 return ((jjbitVec10
[i2
] & l2
) != (ulong) 0L);
1278 return ((jjbitVec8
[i2
] & l2
) != (ulong) 0L);
1281 if ((jjbitVec18
[i1
] & l1
) != (ulong) 0L)
1287 public static readonly System
.String
[] jjstrLiteralImages
= new System
.String
[]{"", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null}
;
1288 public static readonly System
.String
[] lexStateNames
= new System
.String
[]{"DEFAULT"}
;
1289 internal static readonly long[] jjtoToken
= new long[]{0x30ffL}
;
1290 internal static readonly long[] jjtoSkip
= new long[]{0x8000L}
;
1291 protected internal CharStream input_stream
;
1292 private uint[] jjrounds
= new uint[75];
1293 private int[] jjstateSet
= new int[150];
1294 protected internal char curChar
;
1295 public StandardTokenizerTokenManager(CharStream stream
)
1298 input_stream
= stream
;
1300 public StandardTokenizerTokenManager(CharStream stream
, int lexState
) : this(stream
)
1304 public virtual void ReInit(CharStream stream
)
1306 jjmatchedPos
= jjnewStateCnt
= 0;
1307 curLexState
= defaultLexState
;
1308 input_stream
= stream
;
1311 private void ReInitRounds()
1314 jjround
= 0x80000001;
1315 for (i
= 75; i
-- > 0; )
1316 jjrounds
[i
] = 0x80000000;
1318 public virtual void ReInit(CharStream stream
, int lexState
)
1323 public virtual void SwitchTo(int lexState
)
1325 if (lexState
>= 1 || lexState
< 0)
1326 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState
+ ". State unchanged.", TokenMgrError
.INVALID_LEXICAL_STATE
);
1328 curLexState
= lexState
;
1331 protected internal virtual Token
JjFillToken()
1333 Token t
= Token
.NewToken(jjmatchedKind
);
1334 t
.kind
= jjmatchedKind
;
1335 System
.String im
= jjstrLiteralImages
[jjmatchedKind
];
1336 t
.image
= (im
== null) ? input_stream
.GetImage() : im
;
1337 t
.beginLine
= input_stream
.GetBeginLine();
1338 t
.beginColumn
= input_stream
.GetBeginColumn();
1339 t
.endLine
= input_stream
.GetEndLine();
1340 t
.endColumn
= input_stream
.GetEndColumn();
1344 internal int curLexState
= 0;
1345 internal int defaultLexState
= 0;
1346 internal int jjnewStateCnt
;
1347 internal uint jjround
;
1348 internal int jjmatchedPos
;
1349 internal int jjmatchedKind
;
1351 public virtual Token
GetNextToken()
1354 Token specialToken
= null;
1361 int ret
= input_stream
.BeginToken();
1363 curChar
= (char) ret
;
1367 matchedToken
= JjFillToken();
1368 return matchedToken
;
1371 jjmatchedKind
= 0x7fffffff;
1373 curPos
= JjMoveStringLiteralDfa0_0();
1374 if (jjmatchedPos
== 0 && jjmatchedKind
> 15)
1378 if (jjmatchedKind
!= 0x7fffffff)
1380 if (jjmatchedPos
+ 1 < curPos
)
1381 input_stream
.Backup(curPos
- jjmatchedPos
- 1);
1382 if ((jjtoToken
[jjmatchedKind
>> 6] & (1L << (jjmatchedKind
& 63))) != 0L)
1384 matchedToken
= JjFillToken();
1385 return matchedToken
;
1392 int error_line
= input_stream
.GetEndLine();
1393 int error_column
= input_stream
.GetEndColumn();
1394 System
.String error_after
= null;
1395 bool EOFSeen
= false;
1396 if (input_stream
.ReadChar() == -1)
1399 error_after
= curPos
<= 1?"":input_stream
.GetImage();
1400 if (curChar
== '\n' || curChar
== '\r')
1409 input_stream
.Backup(1);
1413 input_stream
.Backup(1);
1414 error_after
= curPos
<= 1?"":input_stream
.GetImage();
1416 throw new TokenMgrError(EOFSeen
, curLexState
, error_line
, error_column
, error_after
, curChar
, TokenMgrError
.LEXICAL_ERROR
);