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.
16 /* Generated By:JavaCC: Do not edit this line. StandardTokenizerTokenManager.java */
18 namespace Lucene
.Net
.Analysis
.Standard
21 public class StandardTokenizerTokenManager
: StandardTokenizerConstants
23 private void InitBlock()
25 System
.IO
.StreamWriter temp_writer
;
26 temp_writer
= new System
.IO
.StreamWriter(System
.Console
.OpenStandardOutput(), System
.Console
.Out
.Encoding
);
27 temp_writer
.AutoFlush
= true;
28 debugStream
= temp_writer
;
30 public System
.IO
.StreamWriter debugStream
;
31 public virtual void SetDebugStream(System
.IO
.StreamWriter ds
)
35 private int JjMoveStringLiteralDfa0_0()
37 return JjMoveNfa_0(0, 0);
39 private void JjCheckNAdd(int state
)
41 if (jjrounds
[state
] != jjround
)
43 jjstateSet
[jjnewStateCnt
++] = state
;
44 jjrounds
[state
] = jjround
;
47 private void JjAddStates(int start
, int end
)
51 jjstateSet
[jjnewStateCnt
++] = jjnextStates
[start
];
53 while (start
++ != end
);
55 private void JjCheckNAddTwoStates(int state1
, int state2
)
60 private void JjCheckNAddStates(int start
, int end
)
64 JjCheckNAdd(jjnextStates
[start
]);
66 while (start
++ != end
);
68 private void JjCheckNAddStates(int start
)
70 JjCheckNAdd(jjnextStates
[start
]);
71 JjCheckNAdd(jjnextStates
[start
+ 1]);
73 internal static readonly ulong[] jjbitVec0
= new ulong[]{0x1ff0000000000000L, 0xffffffffffffc000L, 0xffffffffL, 0x600000000000000L}
;
74 internal static readonly ulong[] jjbitVec2
= new ulong[]{0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffffffffffffffL}
;
75 internal static readonly ulong[] jjbitVec3
= new ulong[]{0xffffffffffffffffL, 0xffffffffffffffffL, 0xffffL, 0x0L}
;
76 internal static readonly ulong[] jjbitVec4
= new ulong[]{0xffffffffffffffffL, 0xffffffffffffffffL, 0x0L, 0x0L}
;
77 internal static readonly ulong[] jjbitVec5
= new ulong[]{0x3fffffffffffL, 0x0L, 0x0L, 0x0L}
;
78 internal static readonly ulong[] jjbitVec6
= new ulong[]{0x1600L, 0x0L, 0x0L, 0x0L}
;
79 internal static readonly ulong[] jjbitVec7
= new ulong[]{0x0L, 0xffc000000000L, 0x0L, 0xffc000000000L}
;
80 internal static readonly ulong[] jjbitVec8
= new ulong[]{0x0L, 0x3ff00000000L, 0x0L, 0x3ff000000000000L}
;
81 internal static readonly ulong[] jjbitVec9
= new ulong[]{0x0L, 0xffc000000000L, 0x0L, 0xff8000000000L}
;
82 internal static readonly ulong[] jjbitVec10
= new ulong[]{0x0L, 0xffc000000000L, 0x0L, 0x0L}
;
83 internal static readonly ulong[] jjbitVec11
= new ulong[]{0x0L, 0x3ff0000L, 0x0L, 0x3ff0000L}
;
84 internal static readonly ulong[] jjbitVec12
= new ulong[]{0x0L, 0x3ffL, 0x0L, 0x0L}
;
85 internal static readonly ulong[] jjbitVec13
= new ulong[]{0xfffffffeL, 0x0L, 0x0L, 0x0L}
;
86 internal static readonly ulong[] jjbitVec14
= new ulong[]{0x0L, 0x0L, 0x0L, 0xff7fffffff7fffffL}
;
87 private int JjMoveNfa_0(int startState
, int curPos
)
92 jjstateSet
[0] = startState
;
93 int kind
= 0x7fffffff;
96 if (++jjround
== 0x7fffffff)
100 ulong l
= ((ulong) 1L) << curChar
;
103 switch (jjstateSet
[--ii
])
107 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
111 JjCheckNAddStates(0, 17);
113 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
114 JjCheckNAddStates(18, 23);
118 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
119 JjCheckNAddStates(18, 23);
124 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
125 JjCheckNAddTwoStates(2, 3);
129 if ((0xf00000000000L
& l
) != (ulong) 0L)
134 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
143 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
144 JjCheckNAddTwoStates(5, 6);
148 if ((0xf00000000000L
& l
) != (ulong) 0L)
153 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
154 JjCheckNAddTwoStates(7, 8);
158 if ((0xf00000000000L
& l
) != (ulong) 0L)
159 JjCheckNAddTwoStates(9, 10);
163 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
164 JjCheckNAddTwoStates(9, 10);
169 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
173 JjCheckNAddTwoStates(6, 11);
178 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
179 JjCheckNAddTwoStates(12, 13);
183 if ((0xf00000000000L
& l
) != (ulong) 0L)
188 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
189 JjCheckNAddTwoStates(14, 15);
193 if ((0xf00000000000L
& l
) != (ulong) 0L)
194 JjCheckNAddTwoStates(16, 17);
198 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
199 JjCheckNAddTwoStates(16, 17);
204 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
205 JjCheckNAddTwoStates(18, 19);
209 if ((0xf00000000000L
& l
) != (ulong) 0L)
214 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
218 JjCheckNAddTwoStates(15, 20);
222 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
226 JjCheckNAddStates(0, 17);
230 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
238 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
239 JjCheckNAddStates(24, 26);
243 if ((0x600000000000L
& l
) != (ulong) 0L)
248 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
249 JjCheckNAddStates(27, 29);
253 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
254 JjCheckNAddTwoStates(27, 28);
258 if ((0x600000000000L
& l
) != (ulong) 0L)
263 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
267 JjCheckNAddTwoStates(28, 29);
271 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
272 JjCheckNAddTwoStates(30, 31);
281 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
285 JjCheckNAddTwoStates(31, 32);
289 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
290 JjCheckNAddTwoStates(33, 34);
294 if ((0xf00000000000L
& l
) != (ulong) 0L)
295 JjCheckNAddTwoStates(35, 36);
299 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
300 JjCheckNAddTwoStates(35, 36);
305 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
313 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
314 JjCheckNAddTwoStates(38, 39);
318 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
319 JjCheckNAddTwoStates(40, 41);
323 if ((0xf00000000000L
& l
) != (ulong) 0L)
324 JjCheckNAddTwoStates(42, 43);
328 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
329 JjCheckNAddTwoStates(42, 43);
334 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
335 JjCheckNAddTwoStates(44, 45);
339 if ((0xf00000000000L
& l
) != (ulong) 0L)
344 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
348 JjCheckNAddTwoStates(41, 46);
352 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
353 JjCheckNAddTwoStates(47, 48);
357 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
358 JjCheckNAddTwoStates(49, 50);
362 if ((0xf00000000000L
& l
) != (ulong) 0L)
363 JjCheckNAddTwoStates(51, 52);
367 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
368 JjCheckNAddTwoStates(51, 52);
373 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
374 JjCheckNAddTwoStates(53, 54);
378 if ((0xf00000000000L
& l
) != (ulong) 0L)
383 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
384 JjCheckNAddTwoStates(55, 56);
388 if ((0xf00000000000L
& l
) != (ulong) 0L)
389 JjCheckNAddTwoStates(57, 58);
393 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
394 JjCheckNAddTwoStates(57, 58);
399 if ((0x3ff000000000000L
& l
) == (ulong) 0L)
403 JjCheckNAddTwoStates(54, 59);
407 if ((0x3ff000000000000L
& l
) != (ulong) 0L)
408 JjCheckNAddTwoStates(60, 61);
413 jjstateSet
[jjnewStateCnt
++] = 65;
431 jjstateSet
[jjnewStateCnt
++] = 72;
438 while (ii
!= startsAt
);
440 else if (curChar
< 128)
442 ulong l
= ((ulong) 1L) << (curChar
& 63);
445 switch (jjstateSet
[--ii
])
449 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
450 JjCheckNAddStates(30, 35);
451 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
455 JjCheckNAddStates(0, 17);
460 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
470 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
478 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
479 JjCheckNAddTwoStates(5, 6);
488 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
489 JjCheckNAddTwoStates(7, 8);
494 JjCheckNAddTwoStates(9, 10);
498 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
499 JjCheckNAddTwoStates(9, 10);
503 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
507 JjCheckNAddTwoStates(6, 11);
511 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
521 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
522 JjCheckNAddTwoStates(14, 15);
527 JjCheckNAddTwoStates(16, 17);
531 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
532 JjCheckNAddTwoStates(16, 17);
536 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
546 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
550 JjCheckNAddTwoStates(15, 20);
554 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
558 JjCheckNAddStates(0, 17);
562 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
570 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
571 JjCheckNAddStates(24, 26);
580 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
581 JjCheckNAddStates(27, 29);
590 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
591 JjCheckNAddTwoStates(27, 28);
595 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
599 JjCheckNAddTwoStates(28, 29);
603 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
604 JjCheckNAddTwoStates(30, 31);
608 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
612 JjCheckNAddTwoStates(31, 32);
616 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
617 JjCheckNAddTwoStates(33, 34);
622 JjCheckNAddTwoStates(35, 36);
626 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
627 JjCheckNAddTwoStates(35, 36);
631 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
635 jjstateSet
[jjnewStateCnt
++] = 37;
639 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
640 JjCheckNAddTwoStates(38, 39);
644 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
645 JjCheckNAddTwoStates(40, 41);
650 JjCheckNAddTwoStates(42, 43);
654 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
655 JjCheckNAddTwoStates(42, 43);
659 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
669 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
673 JjCheckNAddTwoStates(41, 46);
677 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
678 JjCheckNAddTwoStates(47, 48);
682 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
683 JjCheckNAddTwoStates(49, 50);
688 JjCheckNAddTwoStates(51, 52);
692 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
693 JjCheckNAddTwoStates(51, 52);
697 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
698 JjCheckNAddTwoStates(53, 54);
707 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
708 JjCheckNAddTwoStates(55, 56);
713 JjCheckNAddTwoStates(57, 58);
717 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
718 JjCheckNAddTwoStates(57, 58);
722 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
726 JjCheckNAddTwoStates(54, 59);
730 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
731 JjCheckNAddTwoStates(60, 61);
735 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
736 JjCheckNAddStates(30, 35);
740 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
741 JjCheckNAddTwoStates(63, 64);
745 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
749 JjCheckNAddTwoStates(64, 65);
753 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
754 JjCheckNAddTwoStates(66, 67);
758 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
763 if ((0x7fffffe07fffffeL
& l
) != (ulong) 0L)
764 JjCheckNAddTwoStates(70, 71);
773 if ((0x7fffffe07fffffeL
& l
) == (ulong) 0L)
784 while (ii
!= startsAt
);
788 int hiByte
= (int) (curChar
>> 8);
789 int i1
= hiByte
>> 6;
790 ulong l1
= ((ulong) 1L) << (hiByte
& 63);
791 int i2
= (curChar
& 0xff) >> 6;
792 ulong l2
= ((ulong) 1L) << (curChar
& 63);
795 switch (jjstateSet
[--ii
])
799 if (jjCanMove_0(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
804 if (jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
805 JjCheckNAddStates(18, 23);
806 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
810 JjCheckNAddStates(0, 17);
812 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
813 JjCheckNAddStates(30, 35);
817 if (jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
818 JjCheckNAddStates(18, 23);
822 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
823 JjCheckNAddTwoStates(2, 3);
827 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
831 jjstateSet
[jjnewStateCnt
++] = 4;
835 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
836 JjCheckNAddTwoStates(5, 6);
840 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
845 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
850 if (!jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
854 JjCheckNAddTwoStates(6, 11);
858 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
862 JjCheckNAddTwoStates(6, 11);
866 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
867 JjCheckNAddTwoStates(12, 13);
871 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
872 JjCheckNAddTwoStates(14, 15);
876 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
881 if (jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
882 JjCheckNAddTwoStates(18, 19);
886 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
887 JjCheckNAddTwoStates(18, 19);
891 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
895 JjCheckNAddTwoStates(15, 20);
899 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
903 JjCheckNAddStates(0, 17);
907 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
915 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
916 JjCheckNAddStates(24, 26);
920 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
921 JjCheckNAddStates(27, 29);
925 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
926 JjCheckNAddTwoStates(27, 28);
930 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
934 JjCheckNAddTwoStates(28, 29);
938 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
939 JjCheckNAddTwoStates(30, 31);
943 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
947 JjCheckNAddTwoStates(31, 32);
951 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
952 JjCheckNAddTwoStates(33, 34);
956 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
961 if (!jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
969 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
977 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
978 JjCheckNAddTwoStates(38, 39);
982 if (jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
983 JjCheckNAddTwoStates(2, 3);
987 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
988 JjCheckNAddTwoStates(40, 41);
992 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
997 if (jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
998 JjCheckNAddTwoStates(44, 45);
1002 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1003 JjCheckNAddTwoStates(44, 45);
1007 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1011 JjCheckNAddTwoStates(41, 46);
1015 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1016 JjCheckNAddTwoStates(47, 48);
1020 if (jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1021 JjCheckNAddTwoStates(5, 6);
1025 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1026 JjCheckNAddTwoStates(49, 50);
1030 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1031 JjAddStates(56, 57);
1035 if (jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1036 JjCheckNAddTwoStates(53, 54);
1040 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1041 JjCheckNAddTwoStates(53, 54);
1045 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1046 JjAddStates(58, 59);
1050 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1051 JjAddStates(60, 61);
1055 if (!jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1059 JjCheckNAddTwoStates(54, 59);
1063 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1067 JjCheckNAddTwoStates(54, 59);
1071 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1072 JjCheckNAddTwoStates(60, 61);
1076 if (jjCanMove_1(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1077 JjCheckNAddTwoStates(12, 13);
1081 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1082 JjCheckNAddStates(30, 35);
1086 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1087 JjCheckNAddTwoStates(63, 64);
1091 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1095 JjCheckNAddTwoStates(64, 65);
1099 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1100 JjCheckNAddTwoStates(66, 67);
1104 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1105 JjAddStates(44, 45);
1109 if (jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1110 JjCheckNAddTwoStates(70, 71);
1114 if (!jjCanMove_2(hiByte
, i1
, i2
, (ulong) l1
, (ulong) l2
))
1118 jjstateSet
[jjnewStateCnt
++] = 72;
1125 while (ii
!= startsAt
);
1127 if (kind
!= 0x7fffffff)
1129 jjmatchedKind
= kind
;
1130 jjmatchedPos
= curPos
;
1134 if ((ii
= jjnewStateCnt
) == (startsAt
= 73 - (jjnewStateCnt
= startsAt
)))
1138 curChar
= input_stream
.ReadChar();
1140 catch (System
.IO
.IOException
)
1146 internal static readonly int[] jjnextStates
= new int[]{22, 23, 24, 26, 30, 31, 33, 34, 38, 39, 40, 41, 47, 48, 49, 50, 60, 61, 2, 3, 5, 6, 12, 13, 23, 24, 26, 24, 25, 26, 63, 64, 66, 67, 70, 71, 2, 3, 12, 13, 18, 19, 44, 45, 68, 69, 7, 8, 9, 10, 16, 17, 35, 36, 42, 43, 51, 52, 55, 56, 57, 58}
;
1147 private static bool jjCanMove_0(int hiByte
, int i1
, int i2
, ulong l1
, ulong l2
)
1153 return ((jjbitVec2
[i2
] & l2
) != (ulong) 0L);
1156 return ((jjbitVec3
[i2
] & l2
) != (ulong) 0L);
1159 return ((jjbitVec4
[i2
] & l2
) != (ulong) 0L);
1162 return ((jjbitVec5
[i2
] & l2
) != (ulong) 0L);
1165 if ((jjbitVec0
[i1
] & l1
) != (ulong) 0L)
1171 private static bool jjCanMove_1(int hiByte
, int i1
, int i2
, ulong l1
, ulong l2
)
1177 return ((jjbitVec8
[i2
] & l2
) != (ulong) 0L);
1180 return ((jjbitVec9
[i2
] & l2
) != (ulong) 0L);
1183 return ((jjbitVec10
[i2
] & l2
) != (ulong) 0L);
1186 return ((jjbitVec11
[i2
] & l2
) != (ulong) 0L);
1189 return ((jjbitVec12
[i2
] & l2
) != (ulong) 0L);
1192 if ((jjbitVec6
[i1
] & l1
) != (ulong) 0L)
1193 if ((jjbitVec7
[i2
] & l2
) == (ulong) 0L)
1201 private static bool jjCanMove_2(int hiByte
, int i1
, int i2
, ulong l1
, ulong l2
)
1207 return ((jjbitVec14
[i2
] & l2
) != (ulong) 0L);
1210 if ((jjbitVec13
[i1
] & l1
) != (ulong) 0L)
1216 public static readonly System
.String
[] jjstrLiteralImages
= new System
.String
[]{"", null, null, null, null, null, null, null, null, null, null, null, null, null, null}
;
1217 public static readonly System
.String
[] lexStateNames
= new System
.String
[]{"DEFAULT"}
;
1218 internal static readonly long[] jjtoToken
= new long[]{0x10ffL}
;
1219 internal static readonly long[] jjtoSkip
= new long[]{0x4000L}
;
1220 protected internal CharStream input_stream
;
1221 private uint[] jjrounds
= new uint[73];
1222 private int[] jjstateSet
= new int[146];
1223 protected internal char curChar
;
1224 public StandardTokenizerTokenManager(CharStream stream
)
1227 input_stream
= stream
;
1229 public StandardTokenizerTokenManager(CharStream stream
, int lexState
):this(stream
)
1233 public virtual void ReInit(CharStream stream
)
1235 jjmatchedPos
= jjnewStateCnt
= 0;
1236 curLexState
= defaultLexState
;
1237 input_stream
= stream
;
1240 private void ReInitRounds()
1243 jjround
= 0x80000001;
1244 for (i
= 73; i
-- > 0; )
1245 jjrounds
[i
] = 0x80000000;
1247 public virtual void ReInit(CharStream stream
, int lexState
)
1252 public virtual void SwitchTo(int lexState
)
1254 if (lexState
>= 1 || lexState
< 0)
1255 throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState
+ ". State unchanged.", TokenMgrError
.INVALID_LEXICAL_STATE
);
1257 curLexState
= lexState
;
1260 protected internal virtual Token
JjFillToken()
1262 Token t
= Token
.NewToken(jjmatchedKind
);
1263 t
.kind
= jjmatchedKind
;
1264 System
.String im
= jjstrLiteralImages
[jjmatchedKind
];
1265 t
.image
= (im
== null)?input_stream
.GetImage():im
;
1266 t
.beginLine
= input_stream
.GetBeginLine();
1267 t
.beginColumn
= input_stream
.GetBeginColumn();
1268 t
.endLine
= input_stream
.GetEndLine();
1269 t
.endColumn
= input_stream
.GetEndColumn();
1273 internal int curLexState
= 0;
1274 internal int defaultLexState
= 0;
1275 internal int jjnewStateCnt
;
1276 internal uint jjround
;
1277 internal int jjmatchedPos
;
1278 internal int jjmatchedKind
;
1280 public virtual Token
GetNextToken()
1289 curChar
= input_stream
.BeginToken();
1291 catch (System
.IO
.IOException
)
1294 matchedToken
= JjFillToken();
1295 return matchedToken
;
1298 jjmatchedKind
= 0x7fffffff;
1300 curPos
= JjMoveStringLiteralDfa0_0();
1301 if (jjmatchedPos
== 0 && jjmatchedKind
> 14)
1305 if (jjmatchedKind
!= 0x7fffffff)
1307 if (jjmatchedPos
+ 1 < curPos
)
1308 input_stream
.Backup(curPos
- jjmatchedPos
- 1);
1309 if ((jjtoToken
[jjmatchedKind
>> 6] & (1L << (jjmatchedKind
& 63))) != 0L)
1311 matchedToken
= JjFillToken();
1312 return matchedToken
;
1319 int error_line
= input_stream
.GetEndLine();
1320 int error_column
= input_stream
.GetEndColumn();
1321 System
.String error_after
= null;
1322 bool EOFSeen
= false;
1325 input_stream
.ReadChar(); input_stream
.Backup(1);
1327 catch (System
.IO
.IOException
)
1330 error_after
= curPos
<= 1?"":input_stream
.GetImage();
1331 if (curChar
== '\n' || curChar
== '\r')
1341 input_stream
.Backup(1);
1342 error_after
= curPos
<= 1?"":input_stream
.GetImage();
1344 throw new TokenMgrError(EOFSeen
, curLexState
, error_line
, error_column
, error_after
, curChar
, TokenMgrError
.LEXICAL_ERROR
);