22 namespace Lucene.Net.Demo.Html
24 #pragma warning disable 162,164
28 private void InitBlock()
30 System.IO.StreamWriter temp_writer;
31 temp_writer =
new System.IO.StreamWriter(System.Console.OpenStandardOutput(), System.Console.Out.Encoding);
32 temp_writer.AutoFlush =
true;
33 debugStream = temp_writer;
36 public virtual void SetDebugStream(System.IO.StreamWriter ds)
40 private int JjStopStringLiteralDfa_0(
int pos,
long active0)
46 if ((active0 & 0x32L) != 0L)
51 if ((active0 & 0x2L) != 0L)
53 if (jjmatchedPos != 1)
60 if ((active0 & 0x30L) != 0L)
65 if ((active0 & 0x2L) != 0L)
74 if ((active0 & 0x2L) != 0L)
83 if ((active0 & 0x2L) != 0L)
92 if ((active0 & 0x2L) != 0L)
105 private int JjStartNfa_0(
int pos,
long active0)
107 return JjMoveNfa_0(JjStopStringLiteralDfa_0(pos, active0), pos + 1);
109 private int JjStopAtPos(
int pos,
int kind)
111 jjmatchedKind = kind;
115 private int JjStartNfaWithStates_0(
int pos,
int kind,
int state)
117 jjmatchedKind = kind;
121 curChar = input_stream.ReadChar();
123 catch (System.IO.IOException)
127 return JjMoveNfa_0(state, pos + 1);
129 private int JjMoveStringLiteralDfa0_0()
135 return JjMoveStringLiteralDfa1_0(0x32L);
138 return JjMoveNfa_0(11, 0);
142 private int JjMoveStringLiteralDfa1_0(
long active0)
146 curChar = input_stream.ReadChar();
148 catch (System.IO.IOException)
150 JjStopStringLiteralDfa_0(0, active0);
157 if ((active0 & 0x20L) != 0L)
162 return JjMoveStringLiteralDfa2_0(active0, 0x10L);
165 return JjMoveStringLiteralDfa2_0(active0, 0x2L);
171 return JjStartNfa_0(0, active0);
173 private int JjMoveStringLiteralDfa2_0(
long old0,
long active0)
175 if (((active0 &= old0)) == 0L)
176 return JjStartNfa_0(0, old0);
179 curChar = input_stream.ReadChar();
181 catch (System.IO.IOException)
183 JjStopStringLiteralDfa_0(1, active0);
190 return JjMoveStringLiteralDfa3_0(active0, 0x10L);
193 return JjMoveStringLiteralDfa3_0(active0, 0x2L);
199 return JjStartNfa_0(1, active0);
201 private int JjMoveStringLiteralDfa3_0(
long old0,
long active0)
203 if (((active0 &= old0)) == 0L)
204 return JjStartNfa_0(1, old0);
207 curChar = input_stream.ReadChar();
209 catch (System.IO.IOException)
211 JjStopStringLiteralDfa_0(2, active0);
218 if ((active0 & 0x10L) != 0L)
219 return JjStopAtPos(3, 4);
223 return JjMoveStringLiteralDfa4_0(active0, 0x2L);
229 return JjStartNfa_0(2, active0);
231 private int JjMoveStringLiteralDfa4_0(
long old0,
long active0)
233 if (((active0 &= old0)) == 0L)
234 return JjStartNfa_0(2, old0);
237 curChar = input_stream.ReadChar();
239 catch (System.IO.IOException)
241 JjStopStringLiteralDfa_0(3, active0);
248 return JjMoveStringLiteralDfa5_0(active0, 0x2L);
254 return JjStartNfa_0(3, active0);
256 private int JjMoveStringLiteralDfa5_0(
long old0,
long active0)
258 if (((active0 &= old0)) == 0L)
259 return JjStartNfa_0(3, old0);
262 curChar = input_stream.ReadChar();
264 catch (System.IO.IOException)
266 JjStopStringLiteralDfa_0(4, active0);
273 return JjMoveStringLiteralDfa6_0(active0, 0x2L);
279 return JjStartNfa_0(4, active0);
281 private int JjMoveStringLiteralDfa6_0(
long old0,
long active0)
283 if (((active0 &= old0)) == 0L)
284 return JjStartNfa_0(4, old0);
287 curChar = input_stream.ReadChar();
289 catch (System.IO.IOException)
291 JjStopStringLiteralDfa_0(5, active0);
298 if ((active0 & 0x2L) != 0L)
299 return JjStartNfaWithStates_0(6, 1, 23);
306 return JjStartNfa_0(5, active0);
308 private void JjCheckNAdd(
int state)
310 if (jjrounds[state] != jjround)
312 jjstateSet[jjnewStateCnt++] = state;
313 jjrounds[state] = jjround;
316 private void JjAddStates(
int start,
int end)
320 jjstateSet[jjnewStateCnt++] = jjnextStates[start];
322 while (start++ != end);
324 private void JjCheckNAddTwoStates(
int state1,
int state2)
329 private void JjCheckNAddStates(
int start,
int end)
333 JjCheckNAdd(jjnextStates[start]);
335 while (start++ != end);
337 private void JjCheckNAddStates(
int start)
339 JjCheckNAdd(jjnextStates[start]);
340 JjCheckNAdd(jjnextStates[start + 1]);
342 internal static readonly ulong[] jjbitVec0 =
new ulong[]{0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL};
343 private int JjMoveNfa_0(
int startState,
int curPos)
349 jjstateSet[0] = startState;
350 int j, kind = 0x7fffffff;
353 if (++jjround == 0x7fffffff)
357 ulong l = ((ulong) 1L) << curChar;
361 switch (jjstateSet[--i])
366 jjstateSet[jjnewStateCnt++] = 25;
367 else if (curChar == 47)
372 if ((0x3ff000000000000L & l) != 0L)
373 JjCheckNAddTwoStates(7, 2);
374 else if ((0x100002600L & l) != 0L)
380 else if (curChar == 60)
381 JjCheckNAddStates(0, 2);
382 else if (curChar == 38)
384 else if (curChar == 36)
385 jjstateSet[jjnewStateCnt++] = 1;
386 if ((0x3ff000000000000L & l) != 0L)
390 JjCheckNAddStates(6, 10);
396 jjstateSet[jjnewStateCnt++] = 1;
400 if ((0x3ff000000000000L & l) != 0L)
405 if ((0x500000000000L & l) != 0L)
406 jjstateSet[jjnewStateCnt++] = 3;
411 if ((0x3ff000000000000L & l) == 0L)
415 JjCheckNAddStates(11, 13);
419 if ((0x3ff000000000000L & l) == 0L)
423 JjCheckNAddStates(6, 10);
427 if ((unchecked((
int) 0x880000000000L) & l) == 0L)
431 JjCheckNAddStates(14, 17);
435 if ((0x3ff000000000000L & l) != 0L)
436 JjCheckNAddTwoStates(7, 2);
444 JjCheckNAddStates(11, 13);
448 if ((0x208000000000L & l) != 0L)
449 jjstateSet[jjnewStateCnt++] = 9;
453 if ((0x100002600L & l) == 0L)
460 if (curChar == 59 && kind > 10)
470 if ((0x3ff000000000000L & l) == 0L)
474 JjCheckNAddTwoStates(15, 13);
479 jjstateSet[jjnewStateCnt++] = 17;
483 if ((0x3ff000000000000L & l) == 0L)
487 JjCheckNAddTwoStates(18, 13);
492 JjCheckNAddStates(0, 2);
496 if ((0x9fffff7affffd9ffL & l) == 0L)
504 if ((0x9ffffffeffffd9ffL & l) == 0L)
513 jjstateSet[jjnewStateCnt++] = 25;
517 if ((0x9fffff7affffd9ffL & l) == 0L)
525 if ((0x9ffffffeffffd9ffL & l) == 0L)
536 while (i != startsAt);
538 else if (curChar < 128)
540 ulong l = ((ulong) 1L) << (curChar & 63);
544 switch (jjstateSet[--i])
549 if ((0x7fffffe07fffffeL & l) == 0L)
553 jjstateSet[jjnewStateCnt++] = 22;
558 if ((0x7fffffe07fffffeL & l) == 0L)
562 JjCheckNAddStates(6, 10);
566 if ((0x7fffffe07fffffeL & l) == 0L)
570 JjCheckNAddStates(11, 13);
574 if ((0x7fffffe07fffffeL & l) == 0L)
578 JjCheckNAddTwoStates(12, 13);
582 if ((0x100000001000000L & l) != 0L)
587 if ((0x7e0000007eL & l) == 0L)
591 JjCheckNAddTwoStates(18, 13);
602 if ((0x7fffffe07fffffeL & l) == 0L)
606 jjstateSet[jjnewStateCnt++] = 26;
620 while (i != startsAt);
624 int i2 = (curChar & 0xff) >> 6;
625 ulong l2 = ((ulong) 1L) << (curChar & 63);
629 switch (jjstateSet[--i])
634 if ((jjbitVec0[i2] & l2) == 0L)
643 if ((jjbitVec0[i2] & l2) == 0L)
654 while (i != startsAt);
656 if (kind != 0x7fffffff)
658 jjmatchedKind = kind;
659 jjmatchedPos = curPos;
663 if ((i = jjnewStateCnt) == (startsAt = 28 - (jjnewStateCnt = startsAt)))
667 curChar = input_stream.ReadChar();
669 catch (System.IO.IOException)
675 private int JjMoveStringLiteralDfa0_5()
677 return JjMoveNfa_5(1, 0);
679 private int JjMoveNfa_5(
int startState,
int curPos)
685 jjstateSet[0] = startState;
686 int j, kind = 0x7fffffff;
689 if (++jjround == 0x7fffffff)
693 ulong l = ((ulong) 1L) << curChar;
697 switch (jjstateSet[--i])
701 if ((0xfffffffbffffffffL & l) != 0L)
707 else if (curChar == 34)
715 if ((0xfffffffbffffffffL & l) == 0L)
725 while (i != startsAt);
727 else if (curChar < 128)
729 long l = 1L << (curChar & 63);
733 switch (jjstateSet[--i])
746 while (i != startsAt);
750 int i2 = (curChar & 0xff) >> 6;
751 ulong l2 = ((ulong) 1L) << (curChar & 63);
755 switch (jjstateSet[--i])
760 if ((jjbitVec0[i2] & l2) == 0L)
771 while (i != startsAt);
773 if (kind != 0x7fffffff)
775 jjmatchedKind = kind;
776 jjmatchedPos = curPos;
780 if ((i = jjnewStateCnt) == (startsAt = 2 - (jjnewStateCnt = startsAt)))
784 curChar = input_stream.ReadChar();
786 catch (System.IO.IOException)
792 private int JjStopStringLiteralDfa_7(
int pos,
long active0)
802 private int JjStartNfa_7(
int pos,
long active0)
804 return JjMoveNfa_7(JjStopStringLiteralDfa_7(pos, active0), pos + 1);
806 private int JjStartNfaWithStates_7(
int pos,
int kind,
int state)
808 jjmatchedKind = kind;
812 curChar = input_stream.ReadChar();
814 catch (System.IO.IOException)
818 return JjMoveNfa_7(state, pos + 1);
820 private int JjMoveStringLiteralDfa0_7()
826 return JjStopAtPos(0, 30);
829 return JjMoveNfa_7(0, 0);
833 private int JjMoveNfa_7(
int startState,
int curPos)
839 jjstateSet[0] = startState;
840 int j, kind = 0x7fffffff;
843 if (++jjround == 0x7fffffff)
847 ulong l = ((ulong) 1L) << curChar;
851 switch (jjstateSet[--i])
855 if ((0xbfffffffffffffffL & l) == 0L)
858 jjstateSet[jjnewStateCnt++] = 0;
865 while (i != startsAt);
867 else if (curChar < 128)
869 ulong l = ((ulong) 1L) << (curChar & 63);
873 switch (jjstateSet[--i])
878 jjstateSet[jjnewStateCnt++] = 0;
885 while (i != startsAt);
889 int i2 = (curChar & 0xff) >> 6;
890 ulong l2 = ((ulong) 1L) << (curChar & 63);
894 switch (jjstateSet[--i])
898 if ((jjbitVec0[i2] & l2) == 0L)
902 jjstateSet[jjnewStateCnt++] = 0;
909 while (i != startsAt);
911 if (kind != 0x7fffffff)
913 jjmatchedKind = kind;
914 jjmatchedPos = curPos;
918 if ((i = jjnewStateCnt) == (startsAt = 1 - (jjnewStateCnt = startsAt)))
922 curChar = input_stream.ReadChar();
924 catch (System.IO.IOException)
930 private int JjMoveStringLiteralDfa0_4()
932 return JjMoveNfa_4(1, 0);
934 private int JjMoveNfa_4(
int startState,
int curPos)
940 jjstateSet[0] = startState;
941 int j, kind = 0x7fffffff;
944 if (++jjround == 0x7fffffff)
948 ulong l = ((ulong) 1L) << curChar;
952 switch (jjstateSet[--i])
956 if ((0xffffff7fffffffffL & l) != 0L)
962 else if (curChar == 39)
970 if ((0xffffff7fffffffffL & l) == 0L)
980 while (i != startsAt);
982 else if (curChar < 128)
984 ulong l = ((ulong) 1L) << (curChar & 63);
988 switch (jjstateSet[--i])
1001 while (i != startsAt);
1005 int i2 = (curChar & 0xff) >> 6;
1006 ulong l2 = ((ulong) 1L) << (curChar & 63);
1010 switch (jjstateSet[--i])
1015 if ((jjbitVec0[i2] & l2) == 0L)
1026 while (i != startsAt);
1028 if (kind != 0x7fffffff)
1030 jjmatchedKind = kind;
1031 jjmatchedPos = curPos;
1035 if ((i = jjnewStateCnt) == (startsAt = 2 - (jjnewStateCnt = startsAt)))
1039 curChar = input_stream.ReadChar();
1041 catch (System.IO.IOException)
1047 private int JjStopStringLiteralDfa_3(
int pos,
long active0)
1057 private int JjStartNfa_3(
int pos,
long active0)
1059 return JjMoveNfa_3(JjStopStringLiteralDfa_3(pos, active0), pos + 1);
1061 private int JjStartNfaWithStates_3(
int pos,
int kind,
int state)
1063 jjmatchedKind = kind;
1067 curChar = input_stream.ReadChar();
1069 catch (System.IO.IOException)
1073 return JjMoveNfa_3(state, pos + 1);
1075 private int JjMoveStringLiteralDfa0_3()
1081 return JjStopAtPos(0, 21);
1084 return JjStopAtPos(0, 20);
1087 return JjMoveNfa_3(0, 0);
1091 private int JjMoveNfa_3(
int startState,
int curPos)
1097 jjstateSet[0] = startState;
1098 int j, kind = 0x7fffffff;
1101 if (++jjround == 0x7fffffff)
1105 ulong l = ((ulong) 1L) << curChar;
1109 switch (jjstateSet[--i])
1113 if ((0x9fffff7affffd9ffL & l) != 0L)
1119 else if ((0x100002600L & l) != 0L)
1128 if ((0xbffffffeffffd9ffL & l) == 0L)
1136 if ((0x100002600L & l) == 0L)
1146 while (i != startsAt);
1148 else if (curChar < 128)
1150 long l = 1L << (curChar & 63);
1154 switch (jjstateSet[--i])
1168 while (i != startsAt);
1172 int i2 = (curChar & 0xff) >> 6;
1173 ulong l2 = ((ulong) 1L) << (curChar & 63);
1177 switch (jjstateSet[--i])
1182 if ((jjbitVec0[i2] & l2) == 0L)
1193 while (i != startsAt);
1195 if (kind != 0x7fffffff)
1197 jjmatchedKind = kind;
1198 jjmatchedPos = curPos;
1202 if ((i = jjnewStateCnt) == (startsAt = 3 - (jjnewStateCnt = startsAt)))
1206 curChar = input_stream.ReadChar();
1208 catch (System.IO.IOException)
1214 private int JjStopStringLiteralDfa_6(
int pos,
long active0)
1220 if ((active0 & 0x10000000L) != 0L)
1228 if ((active0 & 0x10000000L) != 0L)
1230 if (jjmatchedPos == 0)
1244 private int JjStartNfa_6(
int pos,
long active0)
1246 return JjMoveNfa_6(JjStopStringLiteralDfa_6(pos, active0), pos + 1);
1248 private int JjStartNfaWithStates_6(
int pos,
int kind,
int state)
1250 jjmatchedKind = kind;
1254 curChar = input_stream.ReadChar();
1256 catch (System.IO.IOException)
1260 return JjMoveNfa_6(state, pos + 1);
1262 private int JjMoveStringLiteralDfa0_6()
1268 return JjMoveStringLiteralDfa1_6(0x10000000L);
1271 return JjMoveNfa_6(1, 0);
1275 private int JjMoveStringLiteralDfa1_6(
long active0)
1279 curChar = input_stream.ReadChar();
1281 catch (System.IO.IOException)
1283 JjStopStringLiteralDfa_6(0, active0);
1290 return JjMoveStringLiteralDfa2_6(active0, 0x10000000L);
1296 return JjStartNfa_6(0, active0);
1298 private int JjMoveStringLiteralDfa2_6(
long old0,
long active0)
1300 if (((active0 &= old0)) == 0L)
1301 return JjStartNfa_6(0, old0);
1304 curChar = input_stream.ReadChar();
1306 catch (System.IO.IOException)
1308 JjStopStringLiteralDfa_6(1, active0);
1315 if ((active0 & 0x10000000L) != 0L)
1316 return JjStopAtPos(2, 28);
1323 return JjStartNfa_6(1, active0);
1325 private int JjMoveNfa_6(
int startState,
int curPos)
1331 jjstateSet[0] = startState;
1332 int j, kind = 0x7fffffff;
1335 if (++jjround == 0x7fffffff)
1339 ulong l = ((ulong) 1L) << (int) curChar;
1343 switch (jjstateSet[--i])
1347 if ((0xffffdfffffffffffL & l) != 0L)
1353 else if (curChar == 45)
1361 if ((0xffffdfffffffffffL & l) == 0L)
1371 while (i != startsAt);
1373 else if (curChar < 128)
1375 long l = 1L << (curChar & 63);
1379 switch (jjstateSet[--i])
1392 while (i != startsAt);
1396 int i2 = (curChar & 0xff) >> 6;
1397 ulong l2 = ((ulong) 1L) << (curChar & 63);
1401 switch (jjstateSet[--i])
1406 if ((jjbitVec0[i2] & l2) == 0L)
1417 while (i != startsAt);
1419 if (kind != 0x7fffffff)
1421 jjmatchedKind = kind;
1422 jjmatchedPos = curPos;
1426 if ((i = jjnewStateCnt) == (startsAt = 2 - (jjnewStateCnt = startsAt)))
1430 curChar = input_stream.ReadChar();
1432 catch (System.IO.IOException)
1438 private int JjMoveStringLiteralDfa0_1()
1440 return JjMoveNfa_1(1, 0);
1442 private int JjMoveNfa_1(
int startState,
int curPos)
1448 jjstateSet[0] = startState;
1449 int j, kind = 0x7fffffff;
1452 if (++jjround == 0x7fffffff)
1456 ulong l = ((ulong) 1L) << curChar;
1460 switch (jjstateSet[--i])
1464 if ((0xafffffffffffffffL & l) != 0L)
1470 else if ((0x5000000000000000L & l) != 0L)
1476 jjstateSet[jjnewStateCnt++] = 10;
1480 if ((0xafffffffffffffffL & l) == 0L)
1488 if ((0xafffffffffffffffL & l) != 0L)
1489 JjAddStates(18, 19);
1493 if (curChar == 62 && kind > 15)
1499 jjstateSet[jjnewStateCnt++] = 9;
1504 jjstateSet[jjnewStateCnt++] = 10;
1511 while (i != startsAt);
1513 else if (curChar < 128)
1515 long l = 1L << (curChar & 63);
1519 switch (jjstateSet[--i])
1531 JjCheckNAddTwoStates(3, 4);
1535 JjCheckNAddTwoStates(3, 4);
1540 jjstateSet[jjnewStateCnt++] = 2;
1545 jjstateSet[jjnewStateCnt++] = 5;
1550 jjstateSet[jjnewStateCnt++] = 6;
1555 jjstateSet[jjnewStateCnt++] = 7;
1560 jjstateSet[jjnewStateCnt++] = 8;
1567 while (i != startsAt);
1571 int i2 = (curChar & 0xff) >> 6;
1572 ulong l2 = ((ulong) 1L) << (curChar & 63);
1576 switch (jjstateSet[--i])
1581 if ((jjbitVec0[i2] & l2) == 0L)
1589 if ((jjbitVec0[i2] & l2) != 0L)
1590 JjAddStates(18, 19);
1597 while (i != startsAt);
1599 if (kind != 0x7fffffff)
1601 jjmatchedKind = kind;
1602 jjmatchedPos = curPos;
1606 if ((i = jjnewStateCnt) == (startsAt = 12 - (jjnewStateCnt = startsAt)))
1610 curChar = input_stream.ReadChar();
1612 catch (System.IO.IOException)
1618 private int JjStopStringLiteralDfa_2(
int pos,
long active0)
1628 private int JjStartNfa_2(
int pos,
long active0)
1630 return JjMoveNfa_2(JjStopStringLiteralDfa_2(pos, active0), pos + 1);
1632 private int JjStartNfaWithStates_2(
int pos,
int kind,
int state)
1634 jjmatchedKind = kind;
1638 curChar = input_stream.ReadChar();
1640 catch (System.IO.IOException)
1644 return JjMoveNfa_2(state, pos + 1);
1646 private int JjMoveStringLiteralDfa0_2()
1652 return JjStopAtPos(0, 21);
1655 return JjStopAtPos(0, 20);
1658 return JjStartNfaWithStates_2(0, 17, 3);
1661 return JjMoveNfa_2(0, 0);
1665 private int JjMoveNfa_2(
int startState,
int curPos)
1671 jjstateSet[0] = startState;
1672 int j, kind = 0x7fffffff;
1675 if (++jjround == 0x7fffffff)
1679 ulong l = ((ulong) 1L) << curChar;
1683 switch (jjstateSet[--i])
1687 if ((0x9fffff7affffd9ffL & l) != 0L)
1693 else if ((0x100002600L & l) != 0L)
1699 else if (curChar == 61)
1700 jjstateSet[jjnewStateCnt++] = 3;
1701 else if (curChar == 62)
1709 if ((0x9ffffffeffffd9ffL & l) == 0L)
1718 if (curChar == 62 && kind > 18)
1724 jjstateSet[jjnewStateCnt++] = 3;
1728 if ((0x100002600L & l) == 0L)
1738 while (i != startsAt);
1740 else if (curChar < 128)
1742 long l = 1L << (curChar & 63);
1746 switch (jjstateSet[--i])
1760 while (i != startsAt);
1764 int i2 = (curChar & 0xff) >> 6;
1765 ulong l2 = ((ulong) 1L) << (curChar & 63);
1769 switch (jjstateSet[--i])
1774 if ((jjbitVec0[i2] & l2) == 0L)
1785 while (i != startsAt);
1787 if (kind != 0x7fffffff)
1789 jjmatchedKind = kind;
1790 jjmatchedPos = curPos;
1794 if ((i = jjnewStateCnt) == (startsAt = 6 - (jjnewStateCnt = startsAt)))
1798 curChar = input_stream.ReadChar();
1800 catch (System.IO.IOException)
1806 internal static readonly
int[] jjnextStates =
new int[]{20, 21, 24, 12, 14, 16, 5, 8, 0, 4, 6, 0, 4, 6, 5, 0, 4, 6, 3, 4};
1807 public static readonly System.String[] jjstrLiteralImages =
new System.String[]{
"",
"\x003C\x0073\x0063\x0072\x0069\x0070\x0074", null, null,
"\x003C\x0021\x002D\x002D",
"\x003C\x0021", null, null, null, null, null, null, null, null, null, null, null,
"\x003D", null, null,
"\x0027",
"\x0022", null, null, null, null, null, null,
"\x002D\x002D\x003E", null,
"\x003E"};
1808 public static readonly System.String[] lexStateNames =
new System.String[]{
"DEFAULT",
"WithinScript",
"WithinTag",
"AfterEquals",
"WithinQuote1",
"WithinQuote2",
"WithinComment1",
"WithinComment2"};
1809 public static readonly
int[] jjnewLexState =
new int[]{- 1, 1, 2, 2, 6, 7, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, 0, - 1, 3, 0, 2, 4, 5, - 1, - 1, 2, - 1, 2, - 1, 0, - 1, 0};
1810 internal static readonly
long[] jjtoToken =
new long[]{0x7fbfec7fL};
1811 internal static readonly
long[] jjtoSkip =
new long[]{0x400000L};
1812 protected internal SimpleCharStream input_stream;
1813 private uint[] jjrounds =
new uint[28];
1814 private int[] jjstateSet =
new int[56];
1815 protected internal char curChar;
1820 throw new System.ApplicationException(
"ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
1821 input_stream = stream;
1829 jjmatchedPos = jjnewStateCnt = 0;
1830 curLexState = defaultLexState;
1831 input_stream = stream;
1834 private void ReInitRounds()
1837 jjround = 0x80000001;
1838 for (i = 28; i-- > 0; )
1839 jjrounds[i] = 0x80000000;
1846 public virtual void SwitchTo(
int lexState)
1848 if (lexState >= 8 || lexState < 0)
1849 throw new TokenMgrError(
"Error: Ignoring invalid lexical state : " + lexState +
". State unchanged.",
TokenMgrError.INVALID_LEXICAL_STATE);
1851 curLexState = lexState;
1854 protected internal virtual Token JjFillToken()
1857 t.
kind = jjmatchedKind;
1858 System.String im = jjstrLiteralImages[jjmatchedKind];
1859 t.
image = (im == null)?input_stream.GetImage():im;
1860 t.
beginLine = input_stream.GetBeginLine();
1861 t.beginColumn = input_stream.GetBeginColumn();
1862 t.endLine = input_stream.GetEndLine();
1863 t.endColumn = input_stream.GetEndColumn();
1867 internal int curLexState = 0;
1868 internal int defaultLexState = 0;
1869 internal int jjnewStateCnt;
1870 internal uint jjround;
1871 internal int jjmatchedPos;
1872 internal int jjmatchedKind;
1877 Token specialToken = null;
1885 curChar = input_stream.BeginToken();
1887 catch (System.IO.IOException)
1890 matchedToken = JjFillToken();
1891 return matchedToken;
1894 switch (curLexState)
1898 jjmatchedKind = 0x7fffffff;
1900 curPos = JjMoveStringLiteralDfa0_0();
1901 if (jjmatchedPos == 0 && jjmatchedKind > 13)
1908 jjmatchedKind = 0x7fffffff;
1910 curPos = JjMoveStringLiteralDfa0_1();
1914 jjmatchedKind = 0x7fffffff;
1916 curPos = JjMoveStringLiteralDfa0_2();
1920 jjmatchedKind = 0x7fffffff;
1922 curPos = JjMoveStringLiteralDfa0_3();
1926 jjmatchedKind = 0x7fffffff;
1928 curPos = JjMoveStringLiteralDfa0_4();
1932 jjmatchedKind = 0x7fffffff;
1934 curPos = JjMoveStringLiteralDfa0_5();
1938 jjmatchedKind = 0x7fffffff;
1940 curPos = JjMoveStringLiteralDfa0_6();
1944 jjmatchedKind = 0x7fffffff;
1946 curPos = JjMoveStringLiteralDfa0_7();
1949 if (jjmatchedKind != 0x7fffffff)
1951 if (jjmatchedPos + 1 < curPos)
1952 input_stream.Backup(curPos - jjmatchedPos - 1);
1953 if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 63))) != 0L)
1955 matchedToken = JjFillToken();
1956 if (jjnewLexState[jjmatchedKind] != - 1)
1957 curLexState = jjnewLexState[jjmatchedKind];
1958 return matchedToken;
1962 if (jjnewLexState[jjmatchedKind] != - 1)
1963 curLexState = jjnewLexState[jjmatchedKind];
1967 int error_line = input_stream.GetEndLine();
1968 int error_column = input_stream.GetEndColumn();
1969 System.String error_after = null;
1970 bool EOFSeen =
false;
1973 input_stream.ReadChar(); input_stream.Backup(1);
1975 catch (System.IO.IOException e1)
1978 error_after = curPos <= 1?
"":input_stream.GetImage();
1979 if (curChar ==
'\n' || curChar ==
'\r')
1989 input_stream.Backup(1);
1990 error_after = curPos <= 1?
"":input_stream.GetImage();