@@ -572,7 +572,20 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
572572 }
573573 case 23 :{
574574 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+ }
576589 switch ((jj_ntk ==-1 )?jj_ntk_f ():jj_ntk ) {
577590 case 10 :{
578591 attrType = jj_consume_token (10 );
@@ -583,7 +596,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
583596 break ;
584597 }
585598 default :
586- jj_la1 [25 ] = jj_gen ;
599+ jj_la1 [26 ] = jj_gen ;
587600 jj_consume_token (-1 );
588601 throw new ParseException ();
589602 }
@@ -597,7 +610,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
597610 break ;
598611 }
599612 default :
600- jj_la1 [26 ] = jj_gen ;
613+ jj_la1 [27 ] = jj_gen ;
601614 jj_consume_token (-1 );
602615 throw new ParseException ();
603616 }
@@ -615,11 +628,24 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
615628 break ;
616629 }
617630 default :
618- jj_la1 [27 ] = jj_gen ;
631+ jj_la1 [28 ] = jj_gen ;
619632 break label_6 ;
620633 }
621634 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+ }
623649 switch ((jj_ntk ==-1 )?jj_ntk_f ():jj_ntk ) {
624650 case 10 :{
625651 attrType = jj_consume_token (10 );
@@ -630,7 +656,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
630656 break ;
631657 }
632658 default :
633- jj_la1 [28 ] = jj_gen ;
659+ jj_la1 [30 ] = jj_gen ;
634660 jj_consume_token (-1 );
635661 throw new ParseException ();
636662 }
@@ -644,7 +670,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
644670 break ;
645671 }
646672 default :
647- jj_la1 [29 ] = jj_gen ;
673+ jj_la1 [31 ] = jj_gen ;
648674 jj_consume_token (-1 );
649675 throw new ParseException ();
650676 }
@@ -659,7 +685,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
659685 break ;
660686 }
661687 default :
662- jj_la1 [30 ] = jj_gen ;
688+ jj_la1 [32 ] = jj_gen ;
663689 jj_consume_token (-1 );
664690 throw new ParseException ();
665691 }
@@ -676,7 +702,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
676702 break ;
677703 }
678704 default :
679- jj_la1 [31 ] = jj_gen ;
705+ jj_la1 [33 ] = jj_gen ;
680706 jj_consume_token (-1 );
681707 throw new ParseException ();
682708 }
@@ -700,7 +726,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
700726 break ;
701727 }
702728 default :
703- jj_la1 [32 ] = jj_gen ;
729+ jj_la1 [34 ] = jj_gen ;
704730 break label_7 ;
705731 }
706732 jj_consume_token (24 );
@@ -709,7 +735,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
709735 break ;
710736 }
711737 default :
712- jj_la1 [33 ] = jj_gen ;
738+ jj_la1 [35 ] = jj_gen ;
713739 ;
714740 }
715741 jj_consume_token (25 );
@@ -729,7 +755,7 @@ final public SemgrexPattern Root() throws ParseException {// Root pattern for th
729755 break ;
730756 }
731757 default :
732- jj_la1 [34 ] = jj_gen ;
758+ jj_la1 [36 ] = jj_gen ;
733759 ;
734760 }
735761pat = 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
746772 public Token jj_nt ;
747773 private int jj_ntk ;
748774 private int jj_gen ;
749- final private int [] jj_la1 = new int [35 ];
775+ final private int [] jj_la1 = new int [37 ];
750776 static private int [] jj_la1_0 ;
751777 static {
752778 jj_la1_init_0 ();
753779 }
754780 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 ,};
756782 }
757783
758784 /** Constructor with InputStream. */
@@ -766,7 +792,7 @@ public SemgrexParser(java.io.InputStream stream, String encoding) {
766792 token = new Token ();
767793 jj_ntk = -1 ;
768794 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 ;
770796 }
771797
772798 /** Reinitialise. */
@@ -780,7 +806,7 @@ public void ReInit(java.io.InputStream stream, String encoding) {
780806 token = new Token ();
781807 jj_ntk = -1 ;
782808 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 ;
784810 }
785811
786812 /** Constructor. */
@@ -790,7 +816,7 @@ public SemgrexParser(java.io.Reader stream) {
790816 token = new Token ();
791817 jj_ntk = -1 ;
792818 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 ;
794820 }
795821
796822 /** Reinitialise. */
@@ -808,7 +834,7 @@ public void ReInit(java.io.Reader stream) {
808834 token = new Token ();
809835 jj_ntk = -1 ;
810836 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 ;
812838 }
813839
814840 /** Constructor with generated Token Manager. */
@@ -817,7 +843,7 @@ public SemgrexParser(SemgrexParserTokenManager tm) {
817843 token = new Token ();
818844 jj_ntk = -1 ;
819845 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 ;
821847 }
822848
823849 /** Reinitialise. */
@@ -826,7 +852,7 @@ public void ReInit(SemgrexParserTokenManager tm) {
826852 token = new Token ();
827853 jj_ntk = -1 ;
828854 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 ;
830856 }
831857
832858 private Token jj_consume_token (int kind ) throws ParseException {
@@ -882,7 +908,7 @@ public ParseException generateParseException() {
882908 la1tokens [jj_kind ] = true ;
883909 jj_kind = -1 ;
884910 }
885- for (int i = 0 ; i < 35 ; i ++) {
911+ for (int i = 0 ; i < 37 ; i ++) {
886912 if (jj_la1 [i ] == jj_gen ) {
887913 for (int j = 0 ; j < 32 ; j ++) {
888914 if ((jj_la1_0 [i ] & (1 <<j )) != 0 ) {
0 commit comments