anchor.diff:      ;
   
   pathPrimary
  -    : ( iriRef | A | NEGATION pathNegatedPropertySet | OPEN_BRACE! path CLOSE_BRACE! )
  +    : iriRef -> ^(PATH_PRIMARY iriRef)
  +    | A -> ^(PATH_PRIMARY A)
  +    | NEGATION pathNegatedPropertySet -> ^(PATH_PRIMARY NEGATION pathNegatedPropertySet)
  +    | OPEN_BRACE path CLOSE_BRACE -> ^(PATH_PRIMARY path)
       ;
   
   pathNegatedPropertySet
  
positive.code:     ; 	
  
  triplesBlock
      : triplesSameSubjectPath ( DOT triplesSameSubjectPath)* DOT? -> triplesSameSubjectPath+
      ;
  
  graphPatternNotTriples
  
negative.code:     ;
      	
  path
      : pathSequence ( PIPE pathSequence )* -> PATH pathSequence ( PIPE pathSequence )*
      ; 
  
  pathSequence
  