@@ -572,7 +572,20 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
572
572
}
573
573
case 23 :{
574
574
jj_consume_token (23 );
575
- key = jj_consume_token (IDENTIFIER );
575
+ switch ((jj_ntk ==-1 )?jj_ntk_f ():jj_ntk ) {
576
+ case IDENTIFIER :{
577
+ key = jj_consume_token (IDENTIFIER );
578
+ break ;
579
+ }
580
+ case REGEX :{
581
+ key = jj_consume_token (REGEX );
582
+ break ;
583
+ }
584
+ default :
585
+ jj_la1 [25 ] = jj_gen ;
586
+ jj_consume_token (-1 );
587
+ throw new ParseException ();
588
+ }
576
589
switch ((jj_ntk ==-1 )?jj_ntk_f ():jj_ntk ) {
577
590
case 10 :{
578
591
attrType = jj_consume_token (10 );
@@ -583,7 +596,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
583
596
break ;
584
597
}
585
598
default :
586
- jj_la1 [25 ] = jj_gen ;
599
+ jj_la1 [26 ] = jj_gen ;
587
600
jj_consume_token (-1 );
588
601
throw new ParseException ();
589
602
}
@@ -597,7 +610,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
597
610
break ;
598
611
}
599
612
default :
600
- jj_la1 [26 ] = jj_gen ;
613
+ jj_la1 [27 ] = jj_gen ;
601
614
jj_consume_token (-1 );
602
615
throw new ParseException ();
603
616
}
@@ -615,11 +628,24 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
615
628
break ;
616
629
}
617
630
default :
618
- jj_la1 [27 ] = jj_gen ;
631
+ jj_la1 [28 ] = jj_gen ;
619
632
break label_6 ;
620
633
}
621
634
jj_consume_token (24 );
622
- key = jj_consume_token (IDENTIFIER );
635
+ switch ((jj_ntk ==-1 )?jj_ntk_f ():jj_ntk ) {
636
+ case IDENTIFIER :{
637
+ key = jj_consume_token (IDENTIFIER );
638
+ break ;
639
+ }
640
+ case REGEX :{
641
+ key = jj_consume_token (REGEX );
642
+ break ;
643
+ }
644
+ default :
645
+ jj_la1 [29 ] = jj_gen ;
646
+ jj_consume_token (-1 );
647
+ throw new ParseException ();
648
+ }
623
649
switch ((jj_ntk ==-1 )?jj_ntk_f ():jj_ntk ) {
624
650
case 10 :{
625
651
attrType = jj_consume_token (10 );
@@ -630,7 +656,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
630
656
break ;
631
657
}
632
658
default :
633
- jj_la1 [28 ] = jj_gen ;
659
+ jj_la1 [30 ] = jj_gen ;
634
660
jj_consume_token (-1 );
635
661
throw new ParseException ();
636
662
}
@@ -644,7 +670,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
644
670
break ;
645
671
}
646
672
default :
647
- jj_la1 [29 ] = jj_gen ;
673
+ jj_la1 [31 ] = jj_gen ;
648
674
jj_consume_token (-1 );
649
675
throw new ParseException ();
650
676
}
@@ -659,7 +685,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
659
685
break ;
660
686
}
661
687
default :
662
- jj_la1 [30 ] = jj_gen ;
688
+ jj_la1 [32 ] = jj_gen ;
663
689
jj_consume_token (-1 );
664
690
throw new ParseException ();
665
691
}
@@ -676,7 +702,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
676
702
break ;
677
703
}
678
704
default :
679
- jj_la1 [31 ] = jj_gen ;
705
+ jj_la1 [33 ] = jj_gen ;
680
706
jj_consume_token (-1 );
681
707
throw new ParseException ();
682
708
}
@@ -700,7 +726,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
700
726
break ;
701
727
}
702
728
default :
703
- jj_la1 [32 ] = jj_gen ;
729
+ jj_la1 [34 ] = jj_gen ;
704
730
break label_7 ;
705
731
}
706
732
jj_consume_token (24 );
@@ -709,7 +735,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
709
735
break ;
710
736
}
711
737
default :
712
- jj_la1 [33 ] = jj_gen ;
738
+ jj_la1 [35 ] = jj_gen ;
713
739
;
714
740
}
715
741
jj_consume_token (25 );
@@ -729,7 +755,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
729
755
break ;
730
756
}
731
757
default :
732
- jj_la1 [34 ] = jj_gen ;
758
+ jj_la1 [36 ] = jj_gen ;
733
759
;
734
760
}
735
761
pat = new NodePattern (r , underNodeNegation , attributes , link , name != null ? name .image : null );
@@ -746,13 +772,13 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
746
772
public Token jj_nt ;
747
773
private int jj_ntk ;
748
774
private int jj_gen ;
749
- final private int [] jj_la1 = new int [35 ];
775
+ final private int [] jj_la1 = new int [37 ];
750
776
static private int [] jj_la1_0 ;
751
777
static {
752
778
jj_la1_init_0 ();
753
779
}
754
780
private static void jj_la1_init_0 () {
755
- jj_la1_0 = new int [] {0x400 ,0x4028808 ,0x3801c ,0x3801c ,0x4028800 ,0x2000 ,0x3c01c ,0x4000 ,0x3801c ,0x2001c ,0x80000 ,0x10 ,0x110 ,0x110 ,0x100000 ,0x200000 ,0x1c ,0x4028800 ,0x2000 ,0x402c000 ,0x4000 ,0x4028000 ,0x4020000 ,0x400400 ,0x110 ,0x400400 ,0x110 ,0x1000000 ,0x400400 ,0x110 ,0xc00400 ,0xd0 ,0x1000000 ,0xd0 ,0x200000 ,};
781
+ jj_la1_0 = new int [] {0x400 ,0x4028808 ,0x3801c ,0x3801c ,0x4028800 ,0x2000 ,0x3c01c ,0x4000 ,0x3801c ,0x2001c ,0x80000 ,0x10 ,0x110 ,0x110 ,0x100000 ,0x200000 ,0x1c ,0x4028800 ,0x2000 ,0x402c000 ,0x4000 ,0x4028000 ,0x4020000 ,0x400400 ,0x110 ,0x110 , 0x400400 ,0x110 ,0x1000000 , 0x110 ,0x400400 ,0x110 ,0xc00400 ,0xd0 ,0x1000000 ,0xd0 ,0x200000 ,};
756
782
}
757
783
758
784
/** Constructor with InputStream. */
@@ -766,7 +792,7 @@ public SemgrexParser(java.io.InputStream stream, String encoding) {
766
792
token = new Token ();
767
793
jj_ntk = -1 ;
768
794
jj_gen = 0 ;
769
- for (int i = 0 ; i < 35 ; i ++) jj_la1 [i ] = -1 ;
795
+ for (int i = 0 ; i < 37 ; i ++) jj_la1 [i ] = -1 ;
770
796
}
771
797
772
798
/** Reinitialise. */
@@ -780,7 +806,7 @@ public void ReInit(java.io.InputStream stream, String encoding) {
780
806
token = new Token ();
781
807
jj_ntk = -1 ;
782
808
jj_gen = 0 ;
783
- for (int i = 0 ; i < 35 ; i ++) jj_la1 [i ] = -1 ;
809
+ for (int i = 0 ; i < 37 ; i ++) jj_la1 [i ] = -1 ;
784
810
}
785
811
786
812
/** Constructor. */
@@ -790,7 +816,7 @@ public SemgrexParser(java.io.Reader stream) {
790
816
token = new Token ();
791
817
jj_ntk = -1 ;
792
818
jj_gen = 0 ;
793
- for (int i = 0 ; i < 35 ; i ++) jj_la1 [i ] = -1 ;
819
+ for (int i = 0 ; i < 37 ; i ++) jj_la1 [i ] = -1 ;
794
820
}
795
821
796
822
/** Reinitialise. */
@@ -808,7 +834,7 @@ public void ReInit(java.io.Reader stream) {
808
834
token = new Token ();
809
835
jj_ntk = -1 ;
810
836
jj_gen = 0 ;
811
- for (int i = 0 ; i < 35 ; i ++) jj_la1 [i ] = -1 ;
837
+ for (int i = 0 ; i < 37 ; i ++) jj_la1 [i ] = -1 ;
812
838
}
813
839
814
840
/** Constructor with generated Token Manager. */
@@ -817,7 +843,7 @@ public SemgrexParser(SemgrexParserTokenManager tm) {
817
843
token = new Token ();
818
844
jj_ntk = -1 ;
819
845
jj_gen = 0 ;
820
- for (int i = 0 ; i < 35 ; i ++) jj_la1 [i ] = -1 ;
846
+ for (int i = 0 ; i < 37 ; i ++) jj_la1 [i ] = -1 ;
821
847
}
822
848
823
849
/** Reinitialise. */
@@ -826,7 +852,7 @@ public void ReInit(SemgrexParserTokenManager tm) {
826
852
token = new Token ();
827
853
jj_ntk = -1 ;
828
854
jj_gen = 0 ;
829
- for (int i = 0 ; i < 35 ; i ++) jj_la1 [i ] = -1 ;
855
+ for (int i = 0 ; i < 37 ; i ++) jj_la1 [i ] = -1 ;
830
856
}
831
857
832
858
private Token jj_consume_token (int kind ) throws ParseException {
@@ -882,7 +908,7 @@ public ParseException generateParseException() {
882
908
la1tokens [jj_kind ] = true ;
883
909
jj_kind = -1 ;
884
910
}
885
- for (int i = 0 ; i < 35 ; i ++) {
911
+ for (int i = 0 ; i < 37 ; i ++) {
886
912
if (jj_la1 [i ] == jj_gen ) {
887
913
for (int j = 0 ; j < 32 ; j ++) {
888
914
if ((jj_la1_0 [i ] & (1 <<j )) != 0 ) {
0 commit comments