anchor.diff:  
   siddhi_app
       : (app_annotation|error)*
  -      ((execution_element|error) (';' (execution_element|error))* ';'?
  +      ( (definition_stream|definition_table|definition_trigger|definition_function|definition_window|definition_aggregation|error) (';' (definition_stream|definition_table|definition_trigger|definition_function|definition_window|definition_aggregation|error))* ';'?
  +      || (execution_element|error) (';' (execution_element|error))* ';'?
         || (definition_stream|definition_table|definition_trigger|definition_function|definition_window|definition_aggregation|error) (';' (definition_stream|definition_table|definition_trigger|definition_function|definition_window|definition_aggregation|error))* (';' (execution_element|error))* ';'? )
       ;
   
  
positive.code:     ;
  
  pattern_stream
      :every_pattern_source_chain
      ;
  
  every_pattern_source_chain
  
negative.code:     ;
  
  sequence_source
      :logical_stateful_source|sequence_collection_stateful_source|standard_stateful_source|logical_absent_stateful_source
      ;
  
  sequence_collection_stateful_source
  