@@ -657,61 +657,67 @@ var grammar = {
657
657
{ "name" : "event_exp_fns" , "symbols" : [ tok_repeat , "PositiveInteger" , tok_OPEN_PAREN , "IndividualEventExpression" , tok_CLSE_PAREN , "event_exp_fns$ebnf$2" ] , "postprocess" : eventGroupOp ( "repeat" , 1 , 3 , 5 ) } ,
658
658
{ "name" : "event_exp_base" , "symbols" : [ tok_OPEN_PAREN , "EventExpression" , tok_CLSE_PAREN ] , "postprocess" : getN ( 1 ) } ,
659
659
{ "name" : "event_exp_base" , "symbols" : [ "IndividualEventExpression" ] , "postprocess" : id } ,
660
- { "name" : "IndividualEventExpression$ebnf$1$subexpression$1$ebnf$1" , "symbols" : [ "event_exp_attribute_pair" ] } ,
661
- { "name" : "IndividualEventExpression$ebnf$1$subexpression$1$ebnf$1" , "symbols" : [ "IndividualEventExpression$ebnf$1$subexpression$1$ebnf$1" , "event_exp_attribute_pair" ] , "postprocess" : function arrpush ( d ) { return d [ 0 ] . concat ( [ d [ 1 ] ] ) ; } } ,
662
- { "name" : "IndividualEventExpression$ebnf$1$subexpression$1$ebnf$2$subexpression$1" , "symbols" : [ tok_setting , tok_OPEN_PAREN , "Identifier_list_body" , tok_CLSE_PAREN ] } ,
663
- { "name" : "IndividualEventExpression$ebnf$1$subexpression$1$ebnf$2" , "symbols" : [ "IndividualEventExpression$ebnf$1$subexpression$1$ebnf$2$subexpression$1" ] , "postprocess" : id } ,
664
- { "name" : "IndividualEventExpression$ebnf$1$subexpression$1$ebnf$2" , "symbols" : [ ] , "postprocess" : function ( d ) { return null ; } } ,
665
- { "name" : "IndividualEventExpression$ebnf$1$subexpression$1" , "symbols" : [ "IndividualEventExpression$ebnf$1$subexpression$1$ebnf$1" , "IndividualEventExpression$ebnf$1$subexpression$1$ebnf$2" ] } ,
666
- { "name" : "IndividualEventExpression$ebnf$1" , "symbols" : [ "IndividualEventExpression$ebnf$1$subexpression$1" ] , "postprocess" : id } ,
660
+ { "name" : "IndividualEventExpression$ebnf$1" , "symbols" : [ tok_COLON ] , "postprocess" : id } ,
667
661
{ "name" : "IndividualEventExpression$ebnf$1" , "symbols" : [ ] , "postprocess" : function ( d ) { return null ; } } ,
668
- { "name" : "IndividualEventExpression$ebnf$2$subexpression$1" , "symbols" : [ tok_where , "event_exp_where" ] } ,
662
+ { "name" : "IndividualEventExpression$ebnf$2$subexpression$1$ebnf$1" , "symbols" : [ "event_exp_attribute_pair" ] } ,
663
+ { "name" : "IndividualEventExpression$ebnf$2$subexpression$1$ebnf$1" , "symbols" : [ "IndividualEventExpression$ebnf$2$subexpression$1$ebnf$1" , "event_exp_attribute_pair" ] , "postprocess" : function arrpush ( d ) { return d [ 0 ] . concat ( [ d [ 1 ] ] ) ; } } ,
664
+ { "name" : "IndividualEventExpression$ebnf$2$subexpression$1$ebnf$2$subexpression$1" , "symbols" : [ tok_setting , tok_OPEN_PAREN , "Identifier_list_body" , tok_CLSE_PAREN ] } ,
665
+ { "name" : "IndividualEventExpression$ebnf$2$subexpression$1$ebnf$2" , "symbols" : [ "IndividualEventExpression$ebnf$2$subexpression$1$ebnf$2$subexpression$1" ] , "postprocess" : id } ,
666
+ { "name" : "IndividualEventExpression$ebnf$2$subexpression$1$ebnf$2" , "symbols" : [ ] , "postprocess" : function ( d ) { return null ; } } ,
667
+ { "name" : "IndividualEventExpression$ebnf$2$subexpression$1" , "symbols" : [ "IndividualEventExpression$ebnf$2$subexpression$1$ebnf$1" , "IndividualEventExpression$ebnf$2$subexpression$1$ebnf$2" ] } ,
669
668
{ "name" : "IndividualEventExpression$ebnf$2" , "symbols" : [ "IndividualEventExpression$ebnf$2$subexpression$1" ] , "postprocess" : id } ,
670
669
{ "name" : "IndividualEventExpression$ebnf$2" , "symbols" : [ ] , "postprocess" : function ( d ) { return null ; } } ,
671
- { "name" : "IndividualEventExpression" , "symbols" : [ "Identifier" , "Identifier" , "IndividualEventExpression$ebnf$1" , "IndividualEventExpression$ebnf$2" ] , "postprocess" :
670
+ { "name" : "IndividualEventExpression$ebnf$3$subexpression$1" , "symbols" : [ tok_where , "event_exp_where" ] } ,
671
+ { "name" : "IndividualEventExpression$ebnf$3" , "symbols" : [ "IndividualEventExpression$ebnf$3$subexpression$1" ] , "postprocess" : id } ,
672
+ { "name" : "IndividualEventExpression$ebnf$3" , "symbols" : [ ] , "postprocess" : function ( d ) { return null ; } } ,
673
+ { "name" : "IndividualEventExpression" , "symbols" : [ "Identifier" , "IndividualEventExpression$ebnf$1" , "Identifier" , "IndividualEventExpression$ebnf$2" , "IndividualEventExpression$ebnf$3" ] , "postprocess" :
672
674
function ( data ) {
673
675
return {
674
676
type : 'EventExpression' ,
675
677
loc : mkLoc ( data ) ,
676
678
event_domain : data [ 0 ] ,
677
- event_type : data [ 1 ] ,
678
- event_attrs : ( data [ 2 ] && data [ 2 ] [ 0 ] ) || [ ] ,
679
- setting : ( data [ 2 ] && data [ 2 ] [ 1 ] && data [ 2 ] [ 1 ] [ 2 ] ) || [ ] ,
680
- where : data [ 3 ] && data [ 3 ] [ 1 ] ,
679
+ event_type : data [ 2 ] ,
680
+ event_attrs : ( data [ 3 ] && data [ 3 ] [ 0 ] ) || [ ] ,
681
+ setting : ( data [ 3 ] && data [ 3 ] [ 1 ] && data [ 3 ] [ 1 ] [ 2 ] ) || [ ] ,
682
+ where : data [ 4 ] && data [ 4 ] [ 1 ] ,
681
683
aggregator : null //this is set by EventAggregator
682
684
} ;
683
685
}
684
686
} ,
685
- { "name" : "IndividualEventExpression$ebnf$3" , "symbols" : [ ] } ,
686
- { "name" : "IndividualEventExpression$ebnf$3" , "symbols" : [ "IndividualEventExpression$ebnf$3" , "event_exp_attribute_pair" ] , "postprocess" : function arrpush ( d ) { return d [ 0 ] . concat ( [ d [ 1 ] ] ) ; } } ,
687
- { "name" : "IndividualEventExpression" , "symbols" : [ "Identifier" , "Identifier" , "IndividualEventExpression$ebnf$3" , tok_where , "event_exp_where" , tok_setting , tok_OPEN_PAREN , "Identifier_list" , tok_CLSE_PAREN ] , "postprocess" :
687
+ { "name" : "IndividualEventExpression$ebnf$4" , "symbols" : [ tok_COLON ] , "postprocess" : id } ,
688
+ { "name" : "IndividualEventExpression$ebnf$4" , "symbols" : [ ] , "postprocess" : function ( d ) { return null ; } } ,
689
+ { "name" : "IndividualEventExpression$ebnf$5" , "symbols" : [ ] } ,
690
+ { "name" : "IndividualEventExpression$ebnf$5" , "symbols" : [ "IndividualEventExpression$ebnf$5" , "event_exp_attribute_pair" ] , "postprocess" : function arrpush ( d ) { return d [ 0 ] . concat ( [ d [ 1 ] ] ) ; } } ,
691
+ { "name" : "IndividualEventExpression" , "symbols" : [ "Identifier" , "IndividualEventExpression$ebnf$4" , "Identifier" , "IndividualEventExpression$ebnf$5" , tok_where , "event_exp_where" , tok_setting , tok_OPEN_PAREN , "Identifier_list" , tok_CLSE_PAREN ] , "postprocess" :
688
692
function ( data ) {
689
693
return {
690
694
deprecated : "Move the `where` clause to be after the `setting`" ,
691
695
692
696
type : 'EventExpression' ,
693
697
loc : mkLoc ( data ) ,
694
698
event_domain : data [ 0 ] ,
695
- event_type : data [ 1 ] ,
696
- event_attrs : data [ 2 ] ,
697
- where : data [ 4 ] ,
698
- setting : data [ 7 ] ,
699
+ event_type : data [ 2 ] ,
700
+ event_attrs : data [ 3 ] ,
701
+ where : data [ 5 ] ,
702
+ setting : data [ 8 ] ,
699
703
aggregator : null //this is set by EventAggregator
700
704
} ;
701
705
}
702
706
} ,
703
- { "name" : "IndividualEventExpression" , "symbols" : [ "Identifier" , "Identifier" , tok_setting , tok_OPEN_PAREN , "Identifier_list" , tok_CLSE_PAREN ] , "postprocess" :
707
+ { "name" : "IndividualEventExpression$ebnf$6" , "symbols" : [ tok_COLON ] , "postprocess" : id } ,
708
+ { "name" : "IndividualEventExpression$ebnf$6" , "symbols" : [ ] , "postprocess" : function ( d ) { return null ; } } ,
709
+ { "name" : "IndividualEventExpression" , "symbols" : [ "Identifier" , "IndividualEventExpression$ebnf$6" , "Identifier" , tok_setting , tok_OPEN_PAREN , "Identifier_list" , tok_CLSE_PAREN ] , "postprocess" :
704
710
function ( data ) {
705
711
return {
706
712
deprecated : "What are you `setting`? There are no attribute matches" ,
707
713
708
714
type : 'EventExpression' ,
709
715
loc : mkLoc ( data ) ,
710
716
event_domain : data [ 0 ] ,
711
- event_type : data [ 1 ] ,
717
+ event_type : data [ 2 ] ,
712
718
event_attrs : [ ] ,
713
719
where : null ,
714
- setting : data [ 4 ] ,
720
+ setting : data [ 5 ] ,
715
721
aggregator : null //this is set by EventAggregator
716
722
} ;
717
723
}
0 commit comments