sqllang 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1308 -824
- package/dist/esm/index.js +1308 -824
- package/dist/esm/index.min.js +6 -6
- package/package.json +2 -2
- package/src/parser.js +753 -82
package/src/parser.js
CHANGED
|
@@ -440,11 +440,11 @@ const lexer = (() => {
|
|
|
440
440
|
const DISPATCH = "ĀĀĀĀĀĀĀĀĀāāāāāĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀāĂăĀĄąĀĆćĈĉĊċČčĎďďďďďďďďďďĐđĒēĔĕĀĖėĘęĚěĜĝĞğĠġĠĢģĤĠĥĦħĨĩĪĠĠĠīĀĬĀĠĭĖėĘęĚěĜĝĞğĠġĠĢģĤĠĥĦħĨĩĪĠĠĠĀĮĀĀĀā"
|
|
441
441
|
|
|
442
442
|
// Patterns are read from the token table above rather than repeated here.
|
|
443
|
-
const RX = [[0,"y"],[
|
|
443
|
+
const RX = [[0,"y"],[58,"y"],[2,"y"],[57,"iy"]].map(([i, flags]) => new RegExp(tokens[i].pattern, flags))
|
|
444
444
|
|
|
445
445
|
|
|
446
446
|
|
|
447
|
-
const KW = [[[
|
|
447
|
+
const KW = [[[112,97,114,116,105,116,105,111,110],[80,65,82,84,73,84,73,79,78]]]
|
|
448
448
|
const look0 = (c) => (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122)
|
|
449
449
|
function scanKeyword (text, offset, length, lower, upper, look) {
|
|
450
450
|
const n = lower.length
|
|
@@ -494,6 +494,720 @@ function scan59 (text, offset) {
|
|
|
494
494
|
j += 2
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
+
let dfaId = 0
|
|
498
|
+
|
|
499
|
+
const isNaWs = (c) => c === 0xa0 || c === 0x1680 || (c >= 0x2000 && c <= 0x200a) || c === 0x2028 || c === 0x2029 || c === 0x202f || c === 0x205f || c === 0x3000 || c === 0xfeff
|
|
500
|
+
const symOf = (c) => (c < 128 ? c : isNaWs(c) ? 129 : 128)
|
|
501
|
+
const is0 = (c) => c === 36
|
|
502
|
+
const is1 = (c) => (c >= 48 && c <= 57)
|
|
503
|
+
const is2 = (c) => c === 58
|
|
504
|
+
const is3 = (c) => (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122)
|
|
505
|
+
const is4 = (c) => (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122)
|
|
506
|
+
const is5 = (c) => c === 96
|
|
507
|
+
const is6 = (c) => (c >= 0 && c <= 95) || (c >= 97 && c <= 127) || c >= 128
|
|
508
|
+
const is7 = (c) => c === 80 || c === 112
|
|
509
|
+
const is8 = (c) => c === 73 || c === 105
|
|
510
|
+
const is9 = (c) => c === 86 || c === 118
|
|
511
|
+
const is10 = (c) => c === 79 || c === 111
|
|
512
|
+
const is11 = (c) => c === 84 || c === 116
|
|
513
|
+
const skip1 = (text, i, length) => { while (i + 1 < length && is1(text.charCodeAt(i + 1))) i++; return i }
|
|
514
|
+
const skip4 = (text, i, length) => { while (i + 1 < length && is4(text.charCodeAt(i + 1))) i++; return i }
|
|
515
|
+
const skip6 = (text, i, length) => { while (i + 1 < length && is6(text.charCodeAt(i + 1))) i++; return i }
|
|
516
|
+
const G0 = [63]
|
|
517
|
+
function dfa0 (text, offset, length) {
|
|
518
|
+
let state = 1
|
|
519
|
+
let winner = -1
|
|
520
|
+
let end = -1
|
|
521
|
+
let i = offset
|
|
522
|
+
loop: for (; i < length;) {
|
|
523
|
+
const c = text.charCodeAt(i)
|
|
524
|
+
switch (state) {
|
|
525
|
+
case 1: if (is0(c)) { state = 2 } else break loop; break
|
|
526
|
+
case 2: if (is1(c)) { state = 3 } else break loop; break
|
|
527
|
+
case 3: if (is1(c)) { i = skip1(text, i, length) } else break loop; break
|
|
528
|
+
}
|
|
529
|
+
i++
|
|
530
|
+
switch (state) {
|
|
531
|
+
case 3: if (winner === -1 || 0 < winner) { winner = 0; end = i } else if (winner === 0 && i > end) end = i; break
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
if (winner === -1) return -1
|
|
536
|
+
dfaId = G0[winner]
|
|
537
|
+
return end
|
|
538
|
+
}
|
|
539
|
+
const G1 = [67]
|
|
540
|
+
function dfa1 (text, offset, length) {
|
|
541
|
+
let state = 1
|
|
542
|
+
let winner = -1
|
|
543
|
+
let end = -1
|
|
544
|
+
let i = offset
|
|
545
|
+
loop: for (; i < length;) {
|
|
546
|
+
const c = text.charCodeAt(i)
|
|
547
|
+
switch (state) {
|
|
548
|
+
case 1: if (is2(c)) { state = 2 } else break loop; break
|
|
549
|
+
case 2: if (is3(c)) { state = 3 } else break loop; break
|
|
550
|
+
case 3: if (is4(c)) { i = skip4(text, i, length) } else break loop; break
|
|
551
|
+
}
|
|
552
|
+
i++
|
|
553
|
+
switch (state) {
|
|
554
|
+
case 3: if (winner === -1 || 0 < winner) { winner = 0; end = i } else if (winner === 0 && i > end) end = i; break
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
if (winner === -1) return -1
|
|
559
|
+
dfaId = G1[winner]
|
|
560
|
+
return end
|
|
561
|
+
}
|
|
562
|
+
const G2 = [61]
|
|
563
|
+
function dfa2 (text, offset, length) {
|
|
564
|
+
let state = 1
|
|
565
|
+
let winner = -1
|
|
566
|
+
let end = -1
|
|
567
|
+
let i = offset
|
|
568
|
+
loop: for (; i < length;) {
|
|
569
|
+
const c = text.charCodeAt(i)
|
|
570
|
+
switch (state) {
|
|
571
|
+
case 1: if (is5(c)) { state = 2 } else break loop; break
|
|
572
|
+
case 2: if (is6(c)) { i = skip6(text, i, length) } else if (is5(c)) { state = 3 } else break loop; break
|
|
573
|
+
case 3: break loop
|
|
574
|
+
}
|
|
575
|
+
i++
|
|
576
|
+
switch (state) {
|
|
577
|
+
case 3: if (winner === -1 || 0 < winner) { winner = 0; end = i } else if (winner === 0 && i > end) end = i; break
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
if (winner === -1) return -1
|
|
582
|
+
dfaId = G2[winner]
|
|
583
|
+
return end
|
|
584
|
+
}
|
|
585
|
+
let calls3 = 0
|
|
586
|
+
let passes3 = 0
|
|
587
|
+
let off3 = false
|
|
588
|
+
function dfa3 (text, offset, length) {
|
|
589
|
+
let state = 1
|
|
590
|
+
let mask = 0
|
|
591
|
+
let i = offset
|
|
592
|
+
loop: for (; i < length;) {
|
|
593
|
+
const c = text.charCodeAt(i)
|
|
594
|
+
switch (state) {
|
|
595
|
+
case 1: if (is7(c)) { state = 2 } else break loop; break
|
|
596
|
+
case 2: if (is8(c)) { state = 3 } else break loop; break
|
|
597
|
+
case 3: if (is9(c)) { state = 4 } else break loop; break
|
|
598
|
+
case 4: if (is10(c)) { state = 5 } else break loop; break
|
|
599
|
+
case 5: if (is11(c)) { state = 6 } else break loop; break
|
|
600
|
+
case 6: break loop
|
|
601
|
+
}
|
|
602
|
+
i++
|
|
603
|
+
switch (state) {
|
|
604
|
+
case 6: mask |= 1; break
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
return mask
|
|
609
|
+
}
|
|
610
|
+
let wordId = 0
|
|
611
|
+
function word0 (text, offset, length) {
|
|
612
|
+
let c = text.charCodeAt(offset)
|
|
613
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
614
|
+
let h = 0
|
|
615
|
+
let j = offset
|
|
616
|
+
while (j < length) {
|
|
617
|
+
c = text.charCodeAt(j)
|
|
618
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
619
|
+
if (c >= 65 && c <= 90) c += 32
|
|
620
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
621
|
+
j++
|
|
622
|
+
}
|
|
623
|
+
const len = j - offset
|
|
624
|
+
if (len > 0) {
|
|
625
|
+
switch (h) {
|
|
626
|
+
case 3122: if (len === 2 && ((c = text.charCodeAt(offset + 0)) === 97 || c === 65) && ((c = text.charCodeAt(offset + 1)) === 115 || c === 83)) { wordId = 6; return j }
|
|
627
|
+
break
|
|
628
|
+
case 96673: if (len === 3 && ((c = text.charCodeAt(offset + 0)) === 97 || c === 65) && ((c = text.charCodeAt(offset + 1)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 2)) === 108 || c === 76)) { wordId = 8; return j }
|
|
629
|
+
break
|
|
630
|
+
case 96727: if (len === 3 && ((c = text.charCodeAt(offset + 0)) === 97 || c === 65) && ((c = text.charCodeAt(offset + 1)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 2)) === 100 || c === 68)) { wordId = 9; return j }
|
|
631
|
+
break
|
|
632
|
+
case 96881: if (len === 3 && ((c = text.charCodeAt(offset + 0)) === 97 || c === 65) && ((c = text.charCodeAt(offset + 1)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 2)) === 99 || c === 67)) { wordId = 30; return j }
|
|
633
|
+
break
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
if (j === offset) j++
|
|
637
|
+
while (j < length) {
|
|
638
|
+
c = text.charCodeAt(j)
|
|
639
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
640
|
+
j++
|
|
641
|
+
}
|
|
642
|
+
wordId = 62
|
|
643
|
+
return j
|
|
644
|
+
}
|
|
645
|
+
function word1 (text, offset, length) {
|
|
646
|
+
let c = text.charCodeAt(offset)
|
|
647
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
648
|
+
let h = 0
|
|
649
|
+
let j = offset
|
|
650
|
+
while (j < length) {
|
|
651
|
+
c = text.charCodeAt(j)
|
|
652
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
653
|
+
if (c >= 65 && c <= 90) c += 32
|
|
654
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
655
|
+
j++
|
|
656
|
+
}
|
|
657
|
+
const len = j - offset
|
|
658
|
+
if (len > 0) {
|
|
659
|
+
switch (h) {
|
|
660
|
+
case -216634360: if (len === 7 && ((c = text.charCodeAt(offset + 0)) === 98 || c === 66) && ((c = text.charCodeAt(offset + 1)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 2)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 3)) === 119 || c === 87) && ((c = text.charCodeAt(offset + 4)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 5)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 6)) === 110 || c === 78)) { wordId = 17; return j }
|
|
661
|
+
break
|
|
662
|
+
case 3159: if (len === 2 && ((c = text.charCodeAt(offset + 0)) === 98 || c === 66) && ((c = text.charCodeAt(offset + 1)) === 121 || c === 89)) { wordId = 28; return j }
|
|
663
|
+
break
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
if (j === offset) j++
|
|
667
|
+
while (j < length) {
|
|
668
|
+
c = text.charCodeAt(j)
|
|
669
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
670
|
+
j++
|
|
671
|
+
}
|
|
672
|
+
wordId = 62
|
|
673
|
+
return j
|
|
674
|
+
}
|
|
675
|
+
function word2 (text, offset, length) {
|
|
676
|
+
let c = text.charCodeAt(offset)
|
|
677
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
678
|
+
let h = 0
|
|
679
|
+
let j = offset
|
|
680
|
+
while (j < length) {
|
|
681
|
+
c = text.charCodeAt(j)
|
|
682
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
683
|
+
if (c >= 65 && c <= 90) c += 32
|
|
684
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
685
|
+
j++
|
|
686
|
+
}
|
|
687
|
+
const len = j - offset
|
|
688
|
+
if (len > 0) {
|
|
689
|
+
switch (h) {
|
|
690
|
+
case 94935104: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 99 || c === 67) && ((c = text.charCodeAt(offset + 1)) === 114 || c === 82) && ((c = text.charCodeAt(offset + 2)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 3)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 4)) === 115 || c === 83)) { wordId = 23; return j }
|
|
691
|
+
break
|
|
692
|
+
case 3046192: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 99 || c === 67) && ((c = text.charCodeAt(offset + 1)) === 97 || c === 65) && ((c = text.charCodeAt(offset + 2)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69)) { wordId = 41; return j }
|
|
693
|
+
break
|
|
694
|
+
case 3046207: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 99 || c === 67) && ((c = text.charCodeAt(offset + 1)) === 97 || c === 65) && ((c = text.charCodeAt(offset + 2)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 3)) === 116 || c === 84)) { wordId = 51; return j }
|
|
695
|
+
break
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
if (j === offset) j++
|
|
699
|
+
while (j < length) {
|
|
700
|
+
c = text.charCodeAt(j)
|
|
701
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
702
|
+
j++
|
|
703
|
+
}
|
|
704
|
+
wordId = 62
|
|
705
|
+
return j
|
|
706
|
+
}
|
|
707
|
+
function word3 (text, offset, length) {
|
|
708
|
+
let c = text.charCodeAt(offset)
|
|
709
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
710
|
+
let h = 0
|
|
711
|
+
let j = offset
|
|
712
|
+
while (j < length) {
|
|
713
|
+
c = text.charCodeAt(j)
|
|
714
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
715
|
+
if (c >= 65 && c <= 90) c += 32
|
|
716
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
717
|
+
j++
|
|
718
|
+
}
|
|
719
|
+
const len = j - offset
|
|
720
|
+
if (len > 0) {
|
|
721
|
+
switch (h) {
|
|
722
|
+
case 288698108: if (len === 8 && ((c = text.charCodeAt(offset + 0)) === 100 || c === 68) && ((c = text.charCodeAt(offset + 1)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 2)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 3)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 4)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 5)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 6)) === 99 || c === 67) && ((c = text.charCodeAt(offset + 7)) === 116 || c === 84)) { wordId = 7; return j }
|
|
723
|
+
break
|
|
724
|
+
case 3079825: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 100 || c === 68) && ((c = text.charCodeAt(offset + 1)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 2)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 3)) === 99 || c === 67)) { wordId = 31; return j }
|
|
725
|
+
break
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
if (j === offset) j++
|
|
729
|
+
while (j < length) {
|
|
730
|
+
c = text.charCodeAt(j)
|
|
731
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
732
|
+
j++
|
|
733
|
+
}
|
|
734
|
+
wordId = 62
|
|
735
|
+
return j
|
|
736
|
+
}
|
|
737
|
+
function word4 (text, offset, length) {
|
|
738
|
+
let c = text.charCodeAt(offset)
|
|
739
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
740
|
+
let h = 0
|
|
741
|
+
let j = offset
|
|
742
|
+
while (j < length) {
|
|
743
|
+
c = text.charCodeAt(j)
|
|
744
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
745
|
+
if (c >= 65 && c <= 90) c += 32
|
|
746
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
747
|
+
j++
|
|
748
|
+
}
|
|
749
|
+
const len = j - offset
|
|
750
|
+
if (len > 0) {
|
|
751
|
+
switch (h) {
|
|
752
|
+
case 3116345: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 1)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 2)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69)) { wordId = 44; return j }
|
|
753
|
+
break
|
|
754
|
+
case 100571: if (len === 3 && ((c = text.charCodeAt(offset + 0)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 1)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 2)) === 100 || c === 68)) { wordId = 45; return j }
|
|
755
|
+
break
|
|
756
|
+
case -1289550567: if (len === 6 && ((c = text.charCodeAt(offset + 0)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 1)) === 120 || c === 88) && ((c = text.charCodeAt(offset + 2)) === 99 || c === 67) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 4)) === 112 || c === 80) && ((c = text.charCodeAt(offset + 5)) === 116 || c === 84)) { wordId = 48; return j }
|
|
757
|
+
break
|
|
758
|
+
case -1289358244: if (len === 6 && ((c = text.charCodeAt(offset + 0)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 1)) === 120 || c === 88) && ((c = text.charCodeAt(offset + 2)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 3)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 4)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 5)) === 115 || c === 83)) { wordId = 50; return j }
|
|
759
|
+
break
|
|
760
|
+
case -1305289599: if (len === 7 && ((c = text.charCodeAt(offset + 0)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 1)) === 120 || c === 88) && ((c = text.charCodeAt(offset + 2)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 3)) === 114 || c === 82) && ((c = text.charCodeAt(offset + 4)) === 97 || c === 65) && ((c = text.charCodeAt(offset + 5)) === 99 || c === 67) && ((c = text.charCodeAt(offset + 6)) === 116 || c === 84)) { wordId = 52; return j }
|
|
761
|
+
break
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
if (j === offset) j++
|
|
765
|
+
while (j < length) {
|
|
766
|
+
c = text.charCodeAt(j)
|
|
767
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
768
|
+
j++
|
|
769
|
+
}
|
|
770
|
+
wordId = 62
|
|
771
|
+
return j
|
|
772
|
+
}
|
|
773
|
+
function word5 (text, offset, length) {
|
|
774
|
+
let c = text.charCodeAt(offset)
|
|
775
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
776
|
+
let h = 0
|
|
777
|
+
let j = offset
|
|
778
|
+
while (j < length) {
|
|
779
|
+
c = text.charCodeAt(j)
|
|
780
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
781
|
+
if (c >= 65 && c <= 90) c += 32
|
|
782
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
783
|
+
j++
|
|
784
|
+
}
|
|
785
|
+
const len = j - offset
|
|
786
|
+
if (len > 0) {
|
|
787
|
+
switch (h) {
|
|
788
|
+
case 3151786: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 102 || c === 70) && ((c = text.charCodeAt(offset + 1)) === 114 || c === 82) && ((c = text.charCodeAt(offset + 2)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 3)) === 109 || c === 77)) { wordId = 4; return j }
|
|
789
|
+
break
|
|
790
|
+
case 3154575: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 102 || c === 70) && ((c = text.charCodeAt(offset + 1)) === 117 || c === 85) && ((c = text.charCodeAt(offset + 2)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 3)) === 108 || c === 76)) { wordId = 21; return j }
|
|
791
|
+
break
|
|
792
|
+
case 97196323: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 102 || c === 70) && ((c = text.charCodeAt(offset + 1)) === 97 || c === 65) && ((c = text.charCodeAt(offset + 2)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 3)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 4)) === 101 || c === 69)) { wordId = 40; return j }
|
|
793
|
+
break
|
|
794
|
+
case -1274492040: if (len === 6 && ((c = text.charCodeAt(offset + 0)) === 102 || c === 70) && ((c = text.charCodeAt(offset + 1)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 2)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 3)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 4)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 5)) === 114 || c === 82)) { wordId = 55; return j }
|
|
795
|
+
break
|
|
796
|
+
case 101577: if (len === 3 && ((c = text.charCodeAt(offset + 0)) === 102 || c === 70) && ((c = text.charCodeAt(offset + 1)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 2)) === 114 || c === 82)) { wordId = 56; return j }
|
|
797
|
+
break
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
if (j === offset) j++
|
|
801
|
+
while (j < length) {
|
|
802
|
+
c = text.charCodeAt(j)
|
|
803
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
804
|
+
j++
|
|
805
|
+
}
|
|
806
|
+
wordId = 62
|
|
807
|
+
return j
|
|
808
|
+
}
|
|
809
|
+
function word6 (text, offset, length) {
|
|
810
|
+
let c = text.charCodeAt(offset)
|
|
811
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
812
|
+
let h = 0
|
|
813
|
+
let j = offset
|
|
814
|
+
while (j < length) {
|
|
815
|
+
c = text.charCodeAt(j)
|
|
816
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
817
|
+
if (c >= 65 && c <= 90) c += 32
|
|
818
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
819
|
+
j++
|
|
820
|
+
}
|
|
821
|
+
const len = j - offset
|
|
822
|
+
if (len > 0) {
|
|
823
|
+
switch (h) {
|
|
824
|
+
case 98629247: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 103 || c === 71) && ((c = text.charCodeAt(offset + 1)) === 114 || c === 82) && ((c = text.charCodeAt(offset + 2)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 3)) === 117 || c === 85) && ((c = text.charCodeAt(offset + 4)) === 112 || c === 80)) { wordId = 27; return j }
|
|
825
|
+
break
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
if (j === offset) j++
|
|
829
|
+
while (j < length) {
|
|
830
|
+
c = text.charCodeAt(j)
|
|
831
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
832
|
+
j++
|
|
833
|
+
}
|
|
834
|
+
wordId = 62
|
|
835
|
+
return j
|
|
836
|
+
}
|
|
837
|
+
function word7 (text, offset, length) {
|
|
838
|
+
let c = text.charCodeAt(offset)
|
|
839
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
840
|
+
let h = 0
|
|
841
|
+
let j = offset
|
|
842
|
+
while (j < length) {
|
|
843
|
+
c = text.charCodeAt(j)
|
|
844
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
845
|
+
if (c >= 65 && c <= 90) c += 32
|
|
846
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
847
|
+
j++
|
|
848
|
+
}
|
|
849
|
+
const len = j - offset
|
|
850
|
+
if (len > 0) {
|
|
851
|
+
switch (h) {
|
|
852
|
+
case -1224334299: if (len === 6 && ((c = text.charCodeAt(offset + 0)) === 104 || c === 72) && ((c = text.charCodeAt(offset + 1)) === 97 || c === 65) && ((c = text.charCodeAt(offset + 2)) === 118 || c === 86) && ((c = text.charCodeAt(offset + 3)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 4)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 5)) === 103 || c === 71)) { wordId = 33; return j }
|
|
853
|
+
break
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
if (j === offset) j++
|
|
857
|
+
while (j < length) {
|
|
858
|
+
c = text.charCodeAt(j)
|
|
859
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
860
|
+
j++
|
|
861
|
+
}
|
|
862
|
+
wordId = 62
|
|
863
|
+
return j
|
|
864
|
+
}
|
|
865
|
+
function word8 (text, offset, length) {
|
|
866
|
+
let c = text.charCodeAt(offset)
|
|
867
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
868
|
+
let h = 0
|
|
869
|
+
let j = offset
|
|
870
|
+
while (j < length) {
|
|
871
|
+
c = text.charCodeAt(j)
|
|
872
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
873
|
+
if (c >= 65 && c <= 90) c += 32
|
|
874
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
875
|
+
j++
|
|
876
|
+
}
|
|
877
|
+
const len = j - offset
|
|
878
|
+
if (len > 0) {
|
|
879
|
+
switch (h) {
|
|
880
|
+
case 3365: if (len === 2 && ((c = text.charCodeAt(offset + 0)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 1)) === 110 || c === 78)) { wordId = 12; return j }
|
|
881
|
+
break
|
|
882
|
+
case 3370: if (len === 2 && ((c = text.charCodeAt(offset + 0)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 1)) === 115 || c === 83)) { wordId = 13; return j }
|
|
883
|
+
break
|
|
884
|
+
case 100291456: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 1)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 2)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 3)) === 107 || c === 75) && ((c = text.charCodeAt(offset + 4)) === 101 || c === 69)) { wordId = 16; return j }
|
|
885
|
+
break
|
|
886
|
+
case 100355670: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 1)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 2)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 4)) === 114 || c === 82)) { wordId = 18; return j }
|
|
887
|
+
break
|
|
888
|
+
case -1183792455: if (len === 6 && ((c = text.charCodeAt(offset + 0)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 1)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 2)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 4)) === 114 || c === 82) && ((c = text.charCodeAt(offset + 5)) === 116 || c === 84)) { wordId = 36; return j }
|
|
889
|
+
break
|
|
890
|
+
case 3237472: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 1)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 2)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 3)) === 111 || c === 79)) { wordId = 37; return j }
|
|
891
|
+
break
|
|
892
|
+
case 503014687: if (len === 9 && ((c = text.charCodeAt(offset + 0)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 1)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 2)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 4)) === 114 || c === 82) && ((c = text.charCodeAt(offset + 5)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 6)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 7)) === 99 || c === 67) && ((c = text.charCodeAt(offset + 8)) === 116 || c === 84)) { wordId = 49; return j }
|
|
893
|
+
break
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
if (j === offset) j++
|
|
897
|
+
while (j < length) {
|
|
898
|
+
c = text.charCodeAt(j)
|
|
899
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
900
|
+
j++
|
|
901
|
+
}
|
|
902
|
+
wordId = 62
|
|
903
|
+
return j
|
|
904
|
+
}
|
|
905
|
+
function word9 (text, offset, length) {
|
|
906
|
+
let c = text.charCodeAt(offset)
|
|
907
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
908
|
+
let h = 0
|
|
909
|
+
let j = offset
|
|
910
|
+
while (j < length) {
|
|
911
|
+
c = text.charCodeAt(j)
|
|
912
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
913
|
+
if (c >= 65 && c <= 90) c += 32
|
|
914
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
915
|
+
j++
|
|
916
|
+
}
|
|
917
|
+
const len = j - offset
|
|
918
|
+
if (len > 0) {
|
|
919
|
+
switch (h) {
|
|
920
|
+
case 3267882: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 106 || c === 74) && ((c = text.charCodeAt(offset + 1)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 2)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 3)) === 110 || c === 78)) { wordId = 24; return j }
|
|
921
|
+
break
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
if (j === offset) j++
|
|
925
|
+
while (j < length) {
|
|
926
|
+
c = text.charCodeAt(j)
|
|
927
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
928
|
+
j++
|
|
929
|
+
}
|
|
930
|
+
wordId = 62
|
|
931
|
+
return j
|
|
932
|
+
}
|
|
933
|
+
function word10 (text, offset, length) {
|
|
934
|
+
let c = text.charCodeAt(offset)
|
|
935
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
936
|
+
let h = 0
|
|
937
|
+
let j = offset
|
|
938
|
+
while (j < length) {
|
|
939
|
+
c = text.charCodeAt(j)
|
|
940
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
941
|
+
if (c >= 65 && c <= 90) c += 32
|
|
942
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
943
|
+
j++
|
|
944
|
+
}
|
|
945
|
+
const len = j - offset
|
|
946
|
+
if (len > 0) {
|
|
947
|
+
switch (h) {
|
|
948
|
+
case 3321751: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 1)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 2)) === 107 || c === 75) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69)) { wordId = 15; return j }
|
|
949
|
+
break
|
|
950
|
+
case 3317767: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 1)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 2)) === 102 || c === 70) && ((c = text.charCodeAt(offset + 3)) === 116 || c === 84)) { wordId = 19; return j }
|
|
951
|
+
break
|
|
952
|
+
case 102976443: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 1)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 2)) === 109 || c === 77) && ((c = text.charCodeAt(offset + 3)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 4)) === 116 || c === 84)) { wordId = 34; return j }
|
|
953
|
+
break
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
if (j === offset) j++
|
|
957
|
+
while (j < length) {
|
|
958
|
+
c = text.charCodeAt(j)
|
|
959
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
960
|
+
j++
|
|
961
|
+
}
|
|
962
|
+
wordId = 62
|
|
963
|
+
return j
|
|
964
|
+
}
|
|
965
|
+
function word11 (text, offset, length) {
|
|
966
|
+
let c = text.charCodeAt(offset)
|
|
967
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
968
|
+
let h = 0
|
|
969
|
+
let j = offset
|
|
970
|
+
while (j < length) {
|
|
971
|
+
c = text.charCodeAt(j)
|
|
972
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
973
|
+
if (c >= 65 && c <= 90) c += 32
|
|
974
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
975
|
+
j++
|
|
976
|
+
}
|
|
977
|
+
const len = j - offset
|
|
978
|
+
if (len > 0) {
|
|
979
|
+
switch (h) {
|
|
980
|
+
case 109267: if (len === 3 && ((c = text.charCodeAt(offset + 0)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 1)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 2)) === 116 || c === 84)) { wordId = 11; return j }
|
|
981
|
+
break
|
|
982
|
+
case 3392903: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 1)) === 117 || c === 85) && ((c = text.charCodeAt(offset + 2)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 3)) === 108 || c === 76)) { wordId = 14; return j }
|
|
983
|
+
break
|
|
984
|
+
case 105180108: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 1)) === 117 || c === 85) && ((c = text.charCodeAt(offset + 2)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 3)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 4)) === 115 || c === 83)) { wordId = 32; return j }
|
|
985
|
+
break
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
if (j === offset) j++
|
|
989
|
+
while (j < length) {
|
|
990
|
+
c = text.charCodeAt(j)
|
|
991
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
992
|
+
j++
|
|
993
|
+
}
|
|
994
|
+
wordId = 62
|
|
995
|
+
return j
|
|
996
|
+
}
|
|
997
|
+
function word12 (text, offset, length) {
|
|
998
|
+
let c = text.charCodeAt(offset)
|
|
999
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
1000
|
+
let h = 0
|
|
1001
|
+
let j = offset
|
|
1002
|
+
while (j < length) {
|
|
1003
|
+
c = text.charCodeAt(j)
|
|
1004
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1005
|
+
if (c >= 65 && c <= 90) c += 32
|
|
1006
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
1007
|
+
j++
|
|
1008
|
+
}
|
|
1009
|
+
const len = j - offset
|
|
1010
|
+
if (len > 0) {
|
|
1011
|
+
switch (h) {
|
|
1012
|
+
case 3555: if (len === 2 && ((c = text.charCodeAt(offset + 0)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 1)) === 114 || c === 82)) { wordId = 10; return j }
|
|
1013
|
+
break
|
|
1014
|
+
case 106111099: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 1)) === 117 || c === 85) && ((c = text.charCodeAt(offset + 2)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 4)) === 114 || c === 82)) { wordId = 22; return j }
|
|
1015
|
+
break
|
|
1016
|
+
case 3551: if (len === 2 && ((c = text.charCodeAt(offset + 0)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 1)) === 110 || c === 78)) { wordId = 25; return j }
|
|
1017
|
+
break
|
|
1018
|
+
case 106006350: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 1)) === 114 || c === 82) && ((c = text.charCodeAt(offset + 2)) === 100 || c === 68) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 4)) === 114 || c === 82)) { wordId = 29; return j }
|
|
1019
|
+
break
|
|
1020
|
+
case -1019779949: if (len === 6 && ((c = text.charCodeAt(offset + 0)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 1)) === 102 || c === 70) && ((c = text.charCodeAt(offset + 2)) === 102 || c === 70) && ((c = text.charCodeAt(offset + 3)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 4)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 5)) === 116 || c === 84)) { wordId = 35; return j }
|
|
1021
|
+
break
|
|
1022
|
+
case 3423444: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 1)) === 118 || c === 86) && ((c = text.charCodeAt(offset + 2)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 3)) === 114 || c === 82)) { wordId = 53; return j }
|
|
1023
|
+
break
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
if (j === offset) j++
|
|
1027
|
+
while (j < length) {
|
|
1028
|
+
c = text.charCodeAt(j)
|
|
1029
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1030
|
+
j++
|
|
1031
|
+
}
|
|
1032
|
+
wordId = 62
|
|
1033
|
+
return j
|
|
1034
|
+
}
|
|
1035
|
+
function word13 (text, offset, length) {
|
|
1036
|
+
let c = text.charCodeAt(offset)
|
|
1037
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
1038
|
+
let h = 0
|
|
1039
|
+
let j = offset
|
|
1040
|
+
while (j < length) {
|
|
1041
|
+
c = text.charCodeAt(j)
|
|
1042
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1043
|
+
if (c >= 65 && c <= 90) c += 32
|
|
1044
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
1045
|
+
j++
|
|
1046
|
+
}
|
|
1047
|
+
const len = j - offset
|
|
1048
|
+
if (len > 0) {
|
|
1049
|
+
switch (h) {
|
|
1050
|
+
case 108511772: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 114 || c === 82) && ((c = text.charCodeAt(offset + 1)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 2)) === 103 || c === 71) && ((c = text.charCodeAt(offset + 3)) === 104 || c === 72) && ((c = text.charCodeAt(offset + 4)) === 116 || c === 84)) { wordId = 20; return j }
|
|
1051
|
+
break
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
if (j === offset) j++
|
|
1055
|
+
while (j < length) {
|
|
1056
|
+
c = text.charCodeAt(j)
|
|
1057
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1058
|
+
j++
|
|
1059
|
+
}
|
|
1060
|
+
wordId = 62
|
|
1061
|
+
return j
|
|
1062
|
+
}
|
|
1063
|
+
function word14 (text, offset, length) {
|
|
1064
|
+
let c = text.charCodeAt(offset)
|
|
1065
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
1066
|
+
let h = 0
|
|
1067
|
+
let j = offset
|
|
1068
|
+
while (j < length) {
|
|
1069
|
+
c = text.charCodeAt(j)
|
|
1070
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1071
|
+
if (c >= 65 && c <= 90) c += 32
|
|
1072
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
1073
|
+
j++
|
|
1074
|
+
}
|
|
1075
|
+
const len = j - offset
|
|
1076
|
+
if (len > 0) {
|
|
1077
|
+
switch (h) {
|
|
1078
|
+
case -906021636: if (len === 6 && ((c = text.charCodeAt(offset + 0)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 1)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 2)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 4)) === 99 || c === 67) && ((c = text.charCodeAt(offset + 5)) === 116 || c === 84)) { wordId = 3; return j }
|
|
1079
|
+
break
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
if (j === offset) j++
|
|
1083
|
+
while (j < length) {
|
|
1084
|
+
c = text.charCodeAt(j)
|
|
1085
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1086
|
+
j++
|
|
1087
|
+
}
|
|
1088
|
+
wordId = 62
|
|
1089
|
+
return j
|
|
1090
|
+
}
|
|
1091
|
+
function word15 (text, offset, length) {
|
|
1092
|
+
let c = text.charCodeAt(offset)
|
|
1093
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
1094
|
+
let h = 0
|
|
1095
|
+
let j = offset
|
|
1096
|
+
while (j < length) {
|
|
1097
|
+
c = text.charCodeAt(j)
|
|
1098
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1099
|
+
if (c >= 65 && c <= 90) c += 32
|
|
1100
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
1101
|
+
j++
|
|
1102
|
+
}
|
|
1103
|
+
const len = j - offset
|
|
1104
|
+
if (len > 0) {
|
|
1105
|
+
switch (h) {
|
|
1106
|
+
case 3569038: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 1)) === 114 || c === 82) && ((c = text.charCodeAt(offset + 2)) === 117 || c === 85) && ((c = text.charCodeAt(offset + 3)) === 101 || c === 69)) { wordId = 39; return j }
|
|
1107
|
+
break
|
|
1108
|
+
case 3558941: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 1)) === 104 || c === 72) && ((c = text.charCodeAt(offset + 2)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 3)) === 110 || c === 78)) { wordId = 43; return j }
|
|
1109
|
+
break
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
if (j === offset) j++
|
|
1113
|
+
while (j < length) {
|
|
1114
|
+
c = text.charCodeAt(j)
|
|
1115
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1116
|
+
j++
|
|
1117
|
+
}
|
|
1118
|
+
wordId = 62
|
|
1119
|
+
return j
|
|
1120
|
+
}
|
|
1121
|
+
function word16 (text, offset, length) {
|
|
1122
|
+
let c = text.charCodeAt(offset)
|
|
1123
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
1124
|
+
let h = 0
|
|
1125
|
+
let j = offset
|
|
1126
|
+
while (j < length) {
|
|
1127
|
+
c = text.charCodeAt(j)
|
|
1128
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1129
|
+
if (c >= 65 && c <= 90) c += 32
|
|
1130
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
1131
|
+
j++
|
|
1132
|
+
}
|
|
1133
|
+
const len = j - offset
|
|
1134
|
+
if (len > 0) {
|
|
1135
|
+
switch (h) {
|
|
1136
|
+
case 111582340: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 117 || c === 85) && ((c = text.charCodeAt(offset + 1)) === 115 || c === 83) && ((c = text.charCodeAt(offset + 2)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 3)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 4)) === 103 || c === 71)) { wordId = 26; return j }
|
|
1137
|
+
break
|
|
1138
|
+
case 111433423: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 117 || c === 85) && ((c = text.charCodeAt(offset + 1)) === 110 || c === 78) && ((c = text.charCodeAt(offset + 2)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 3)) === 111 || c === 79) && ((c = text.charCodeAt(offset + 4)) === 110 || c === 78)) { wordId = 47; return j }
|
|
1139
|
+
break
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
if (j === offset) j++
|
|
1143
|
+
while (j < length) {
|
|
1144
|
+
c = text.charCodeAt(j)
|
|
1145
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1146
|
+
j++
|
|
1147
|
+
}
|
|
1148
|
+
wordId = 62
|
|
1149
|
+
return j
|
|
1150
|
+
}
|
|
1151
|
+
function word17 (text, offset, length) {
|
|
1152
|
+
let c = text.charCodeAt(offset)
|
|
1153
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
1154
|
+
let h = 0
|
|
1155
|
+
let j = offset
|
|
1156
|
+
while (j < length) {
|
|
1157
|
+
c = text.charCodeAt(j)
|
|
1158
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1159
|
+
if (c >= 65 && c <= 90) c += 32
|
|
1160
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
1161
|
+
j++
|
|
1162
|
+
}
|
|
1163
|
+
const len = j - offset
|
|
1164
|
+
if (len > 0) {
|
|
1165
|
+
switch (h) {
|
|
1166
|
+
case -823812830: if (len === 6 && ((c = text.charCodeAt(offset + 0)) === 118 || c === 86) && ((c = text.charCodeAt(offset + 1)) === 97 || c === 65) && ((c = text.charCodeAt(offset + 2)) === 108 || c === 76) && ((c = text.charCodeAt(offset + 3)) === 117 || c === 85) && ((c = text.charCodeAt(offset + 4)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 5)) === 115 || c === 83)) { wordId = 38; return j }
|
|
1167
|
+
break
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
if (j === offset) j++
|
|
1171
|
+
while (j < length) {
|
|
1172
|
+
c = text.charCodeAt(j)
|
|
1173
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1174
|
+
j++
|
|
1175
|
+
}
|
|
1176
|
+
wordId = 62
|
|
1177
|
+
return j
|
|
1178
|
+
}
|
|
1179
|
+
function word18 (text, offset, length) {
|
|
1180
|
+
let c = text.charCodeAt(offset)
|
|
1181
|
+
if (!((c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) return -1
|
|
1182
|
+
let h = 0
|
|
1183
|
+
let j = offset
|
|
1184
|
+
while (j < length) {
|
|
1185
|
+
c = text.charCodeAt(j)
|
|
1186
|
+
if (!((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1187
|
+
if (c >= 65 && c <= 90) c += 32
|
|
1188
|
+
h = (Math.imul(h, 31) + c) | 0
|
|
1189
|
+
j++
|
|
1190
|
+
}
|
|
1191
|
+
const len = j - offset
|
|
1192
|
+
if (len > 0) {
|
|
1193
|
+
switch (h) {
|
|
1194
|
+
case 113097959: if (len === 5 && ((c = text.charCodeAt(offset + 0)) === 119 || c === 87) && ((c = text.charCodeAt(offset + 1)) === 104 || c === 72) && ((c = text.charCodeAt(offset + 2)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 3)) === 114 || c === 82) && ((c = text.charCodeAt(offset + 4)) === 101 || c === 69)) { wordId = 5; return j }
|
|
1195
|
+
break
|
|
1196
|
+
case 3648314: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 119 || c === 87) && ((c = text.charCodeAt(offset + 1)) === 104 || c === 72) && ((c = text.charCodeAt(offset + 2)) === 101 || c === 69) && ((c = text.charCodeAt(offset + 3)) === 110 || c === 78)) { wordId = 42; return j }
|
|
1197
|
+
break
|
|
1198
|
+
case 3649734: if (len === 4 && ((c = text.charCodeAt(offset + 0)) === 119 || c === 87) && ((c = text.charCodeAt(offset + 1)) === 105 || c === 73) && ((c = text.charCodeAt(offset + 2)) === 116 || c === 84) && ((c = text.charCodeAt(offset + 3)) === 104 || c === 72)) { wordId = 46; return j }
|
|
1199
|
+
break
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
if (j === offset) j++
|
|
1203
|
+
while (j < length) {
|
|
1204
|
+
c = text.charCodeAt(j)
|
|
1205
|
+
if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break
|
|
1206
|
+
j++
|
|
1207
|
+
}
|
|
1208
|
+
wordId = 62
|
|
1209
|
+
return j
|
|
1210
|
+
}
|
|
497
1211
|
|
|
498
1212
|
function tokenize (text) {
|
|
499
1213
|
if (typeof text !== 'string') throw new TypeError('tokenize: expected a string')
|
|
@@ -524,7 +1238,7 @@ function scan59 (text, offset) {
|
|
|
524
1238
|
break
|
|
525
1239
|
}
|
|
526
1240
|
case 4: {
|
|
527
|
-
|
|
1241
|
+
{ const e = dfa0(text, offset, length); if (e !== -1) { id = dfaId; end = e; matched = null; break found } }
|
|
528
1242
|
break
|
|
529
1243
|
}
|
|
530
1244
|
case 5: {
|
|
@@ -563,22 +1277,22 @@ function scan59 (text, offset) {
|
|
|
563
1277
|
break
|
|
564
1278
|
}
|
|
565
1279
|
case 13: {
|
|
566
|
-
RX[
|
|
1280
|
+
RX[1].lastIndex = offset; m = RX[1].exec(text); if (m !== null && m[0].length > 0) { id = 58; matched = m[0]; end = offset + matched.length; break found }
|
|
567
1281
|
if (code === 46) { id = 87; end = offset + 1; matched = "."; break found }
|
|
568
1282
|
break
|
|
569
1283
|
}
|
|
570
1284
|
case 14: {
|
|
571
|
-
RX[
|
|
1285
|
+
RX[2].lastIndex = offset; if (RX[2].test(text) && RX[2].lastIndex > offset) { id = 2; end = RX[2].lastIndex; matched = null; break found }
|
|
572
1286
|
if (code === 47) { id = 80; end = offset + 1; matched = "/"; break found }
|
|
573
1287
|
break
|
|
574
1288
|
}
|
|
575
1289
|
case 15: {
|
|
576
|
-
RX[
|
|
1290
|
+
RX[1].lastIndex = offset; m = RX[1].exec(text); if (m !== null && m[0].length > 0) { id = 58; matched = m[0]; end = offset + matched.length; break found }
|
|
577
1291
|
break
|
|
578
1292
|
}
|
|
579
1293
|
case 16: {
|
|
580
1294
|
if (text.startsWith("::", offset)) { id = 66; end = offset + 2; matched = "::"; break found }
|
|
581
|
-
|
|
1295
|
+
{ const e = dfa1(text, offset, length); if (e !== -1) { id = dfaId; end = e; matched = null; break found } }
|
|
582
1296
|
break
|
|
583
1297
|
}
|
|
584
1298
|
case 17: {
|
|
@@ -606,74 +1320,43 @@ function scan59 (text, offset) {
|
|
|
606
1320
|
break
|
|
607
1321
|
}
|
|
608
1322
|
case 22: {
|
|
609
|
-
{ const e =
|
|
610
|
-
{ const e = scanKeyword(text, offset, length, KW[1][0], KW[1][1], look0); if (e !== -1) { id = 8; end = e; matched = null; break found } }
|
|
611
|
-
{ const e = scanKeyword(text, offset, length, KW[2][0], KW[2][1], look0); if (e !== -1) { id = 9; end = e; matched = null; break found } }
|
|
612
|
-
{ const e = scanKeyword(text, offset, length, KW[3][0], KW[3][1], look0); if (e !== -1) { id = 30; end = e; matched = null; break found } }
|
|
613
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1323
|
+
{ const e = word0(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
614
1324
|
break
|
|
615
1325
|
}
|
|
616
1326
|
case 23: {
|
|
617
|
-
{ const e =
|
|
618
|
-
{ const e = scanKeyword(text, offset, length, KW[5][0], KW[5][1], look0); if (e !== -1) { id = 28; end = e; matched = null; break found } }
|
|
619
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1327
|
+
{ const e = word1(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
620
1328
|
break
|
|
621
1329
|
}
|
|
622
1330
|
case 24: {
|
|
623
|
-
{ const e =
|
|
624
|
-
{ const e = scanKeyword(text, offset, length, KW[7][0], KW[7][1], look0); if (e !== -1) { id = 41; end = e; matched = null; break found } }
|
|
625
|
-
{ const e = scanKeyword(text, offset, length, KW[8][0], KW[8][1], look0); if (e !== -1) { id = 51; end = e; matched = null; break found } }
|
|
626
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1331
|
+
{ const e = word2(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
627
1332
|
break
|
|
628
1333
|
}
|
|
629
1334
|
case 25: {
|
|
630
|
-
{ const e =
|
|
631
|
-
{ const e = scanKeyword(text, offset, length, KW[10][0], KW[10][1], look0); if (e !== -1) { id = 31; end = e; matched = null; break found } }
|
|
632
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1335
|
+
{ const e = word3(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
633
1336
|
break
|
|
634
1337
|
}
|
|
635
1338
|
case 26: {
|
|
636
|
-
{ const e =
|
|
637
|
-
{ const e = scanKeyword(text, offset, length, KW[12][0], KW[12][1], look0); if (e !== -1) { id = 45; end = e; matched = null; break found } }
|
|
638
|
-
{ const e = scanKeyword(text, offset, length, KW[13][0], KW[13][1], look0); if (e !== -1) { id = 48; end = e; matched = null; break found } }
|
|
639
|
-
{ const e = scanKeyword(text, offset, length, KW[14][0], KW[14][1], look0); if (e !== -1) { id = 50; end = e; matched = null; break found } }
|
|
640
|
-
{ const e = scanKeyword(text, offset, length, KW[15][0], KW[15][1], look0); if (e !== -1) { id = 52; end = e; matched = null; break found } }
|
|
641
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1339
|
+
{ const e = word4(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
642
1340
|
break
|
|
643
1341
|
}
|
|
644
1342
|
case 27: {
|
|
645
|
-
{ const e =
|
|
646
|
-
{ const e = scanKeyword(text, offset, length, KW[17][0], KW[17][1], look0); if (e !== -1) { id = 21; end = e; matched = null; break found } }
|
|
647
|
-
{ const e = scanKeyword(text, offset, length, KW[18][0], KW[18][1], look0); if (e !== -1) { id = 40; end = e; matched = null; break found } }
|
|
648
|
-
{ const e = scanKeyword(text, offset, length, KW[19][0], KW[19][1], look0); if (e !== -1) { id = 55; end = e; matched = null; break found } }
|
|
649
|
-
{ const e = scanKeyword(text, offset, length, KW[20][0], KW[20][1], look0); if (e !== -1) { id = 56; end = e; matched = null; break found } }
|
|
650
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1343
|
+
{ const e = word5(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
651
1344
|
break
|
|
652
1345
|
}
|
|
653
1346
|
case 28: {
|
|
654
|
-
{ const e =
|
|
655
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1347
|
+
{ const e = word6(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
656
1348
|
break
|
|
657
1349
|
}
|
|
658
1350
|
case 29: {
|
|
659
|
-
{ const e =
|
|
660
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1351
|
+
{ const e = word7(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
661
1352
|
break
|
|
662
1353
|
}
|
|
663
1354
|
case 30: {
|
|
664
|
-
{ const e =
|
|
665
|
-
{ const e = scanKeyword(text, offset, length, KW[24][0], KW[24][1], look0); if (e !== -1) { id = 13; end = e; matched = null; break found } }
|
|
666
|
-
{ const e = scanKeyword(text, offset, length, KW[25][0], KW[25][1], look0); if (e !== -1) { id = 16; end = e; matched = null; break found } }
|
|
667
|
-
{ const e = scanKeyword(text, offset, length, KW[26][0], KW[26][1], look0); if (e !== -1) { id = 18; end = e; matched = null; break found } }
|
|
668
|
-
{ const e = scanKeyword(text, offset, length, KW[27][0], KW[27][1], look0); if (e !== -1) { id = 36; end = e; matched = null; break found } }
|
|
669
|
-
{ const e = scanKeyword(text, offset, length, KW[28][0], KW[28][1], look0); if (e !== -1) { id = 37; end = e; matched = null; break found } }
|
|
670
|
-
{ const e = scanKeyword(text, offset, length, KW[29][0], KW[29][1], look0); if (e !== -1) { id = 49; end = e; matched = null; break found } }
|
|
671
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1355
|
+
{ const e = word8(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
672
1356
|
break
|
|
673
1357
|
}
|
|
674
1358
|
case 31: {
|
|
675
|
-
{ const e =
|
|
676
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1359
|
+
{ const e = word9(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
677
1360
|
break
|
|
678
1361
|
}
|
|
679
1362
|
case 32: {
|
|
@@ -681,67 +1364,55 @@ function scan59 (text, offset) {
|
|
|
681
1364
|
break
|
|
682
1365
|
}
|
|
683
1366
|
case 33: {
|
|
684
|
-
{ const e =
|
|
685
|
-
{ const e = scanKeyword(text, offset, length, KW[32][0], KW[32][1], look0); if (e !== -1) { id = 19; end = e; matched = null; break found } }
|
|
686
|
-
{ const e = scanKeyword(text, offset, length, KW[33][0], KW[33][1], look0); if (e !== -1) { id = 34; end = e; matched = null; break found } }
|
|
687
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1367
|
+
{ const e = word10(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
688
1368
|
break
|
|
689
1369
|
}
|
|
690
1370
|
case 34: {
|
|
691
|
-
{ const e =
|
|
692
|
-
{ const e = scanKeyword(text, offset, length, KW[35][0], KW[35][1], look0); if (e !== -1) { id = 14; end = e; matched = null; break found } }
|
|
693
|
-
{ const e = scanKeyword(text, offset, length, KW[36][0], KW[36][1], look0); if (e !== -1) { id = 32; end = e; matched = null; break found } }
|
|
694
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1371
|
+
{ const e = word11(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
695
1372
|
break
|
|
696
1373
|
}
|
|
697
1374
|
case 35: {
|
|
698
|
-
{ const e =
|
|
699
|
-
{ const e = scanKeyword(text, offset, length, KW[38][0], KW[38][1], look0); if (e !== -1) { id = 22; end = e; matched = null; break found } }
|
|
700
|
-
{ const e = scanKeyword(text, offset, length, KW[39][0], KW[39][1], look0); if (e !== -1) { id = 25; end = e; matched = null; break found } }
|
|
701
|
-
{ const e = scanKeyword(text, offset, length, KW[40][0], KW[40][1], look0); if (e !== -1) { id = 29; end = e; matched = null; break found } }
|
|
702
|
-
{ const e = scanKeyword(text, offset, length, KW[41][0], KW[41][1], look0); if (e !== -1) { id = 35; end = e; matched = null; break found } }
|
|
703
|
-
{ const e = scanKeyword(text, offset, length, KW[42][0], KW[42][1], look0); if (e !== -1) { id = 53; end = e; matched = null; break found } }
|
|
704
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1375
|
+
{ const e = word12(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
705
1376
|
break
|
|
706
1377
|
}
|
|
707
1378
|
case 36: {
|
|
708
|
-
{ const e = scanKeyword(text, offset, length, KW[
|
|
709
|
-
|
|
1379
|
+
{ const e = scanKeyword(text, offset, length, KW[0][0], KW[0][1], look0); if (e !== -1) { id = 54; end = e; matched = null; break found } }
|
|
1380
|
+
{
|
|
1381
|
+
let maybe3 = -1
|
|
1382
|
+
if (!off3) {
|
|
1383
|
+
maybe3 = dfa3(text, offset, length)
|
|
1384
|
+
if (++calls3 === 64 && passes3 * 10 > 448) off3 = true
|
|
1385
|
+
if (maybe3 !== 0 && calls3 <= 64) passes3++
|
|
1386
|
+
}
|
|
1387
|
+
if (maybe3 !== 0) {
|
|
1388
|
+
if ((maybe3 & 1) !== 0) { RX[3].lastIndex = offset; m = RX[3].exec(text); if (m !== null && m[0].length > 0) { id = 57; matched = m[0]; end = offset + matched.length; break found } }
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
710
1391
|
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
711
1392
|
break
|
|
712
1393
|
}
|
|
713
1394
|
case 37: {
|
|
714
|
-
{ const e =
|
|
715
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1395
|
+
{ const e = word13(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
716
1396
|
break
|
|
717
1397
|
}
|
|
718
1398
|
case 38: {
|
|
719
|
-
{ const e =
|
|
720
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1399
|
+
{ const e = word14(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
721
1400
|
break
|
|
722
1401
|
}
|
|
723
1402
|
case 39: {
|
|
724
|
-
{ const e =
|
|
725
|
-
{ const e = scanKeyword(text, offset, length, KW[47][0], KW[47][1], look0); if (e !== -1) { id = 43; end = e; matched = null; break found } }
|
|
726
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1403
|
+
{ const e = word15(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
727
1404
|
break
|
|
728
1405
|
}
|
|
729
1406
|
case 40: {
|
|
730
|
-
{ const e =
|
|
731
|
-
{ const e = scanKeyword(text, offset, length, KW[49][0], KW[49][1], look0); if (e !== -1) { id = 47; end = e; matched = null; break found } }
|
|
732
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1407
|
+
{ const e = word16(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
733
1408
|
break
|
|
734
1409
|
}
|
|
735
1410
|
case 41: {
|
|
736
|
-
{ const e =
|
|
737
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1411
|
+
{ const e = word17(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
738
1412
|
break
|
|
739
1413
|
}
|
|
740
1414
|
case 42: {
|
|
741
|
-
{ const e =
|
|
742
|
-
{ const e = scanKeyword(text, offset, length, KW[52][0], KW[52][1], look0); if (e !== -1) { id = 42; end = e; matched = null; break found } }
|
|
743
|
-
{ const e = scanKeyword(text, offset, length, KW[53][0], KW[53][1], look0); if (e !== -1) { id = 46; end = e; matched = null; break found } }
|
|
744
|
-
if ((code >= 65 && code <= 90) || code === 95 || (code >= 97 && code <= 122)) { let j = offset + 1; while (j < length) { const c = text.charCodeAt(j); if (!(c === 36 || (c >= 48 && c <= 57) || (c >= 65 && c <= 90) || c === 95 || (c >= 97 && c <= 122))) break; j++ } id = 62; end = j; matched = null; break found }
|
|
1415
|
+
{ const e = word18(text, offset, length); if (e !== -1) { id = wordId; end = e; matched = null; break found } }
|
|
745
1416
|
break
|
|
746
1417
|
}
|
|
747
1418
|
case 43: {
|
|
@@ -753,7 +1424,7 @@ function scan59 (text, offset) {
|
|
|
753
1424
|
break
|
|
754
1425
|
}
|
|
755
1426
|
case 45: {
|
|
756
|
-
|
|
1427
|
+
{ const e = dfa2(text, offset, length); if (e !== -1) { id = dfaId; end = e; matched = null; break found } }
|
|
757
1428
|
break
|
|
758
1429
|
}
|
|
759
1430
|
case 46: {
|