anchor.diff:  
   qName
   	: namespace=ID ':' name=ID -> ^($name $namespace)
  +	| TOK^
   	| ID^
   	;
   
  +fragment
  +linguistic_term
  +	:	REF DOMINANCE^ REF
  +	|	REF POINTING^ REF
  +	;
  +
   term
  -	: qName^
  +	:	qName^
  +	|	text_spec -> ^(EQ TOK text_spec) // shortcut for tok="..."
   	|	qName EQ text_spec -> ^('=' qName text_spec)
  -	| qName NEQ text_spec -> ^('=' qName text_spec)
  -	| '('! expr^ ')'!
  +	|	qName NEQ text_spec -> ^('=' qName text_spec)
  +	|	'('! expr^ ')'!
  +	|	linguistic_term
   	;
   	
   	
  
positive.code: 
  fragment
  ESC_SEQ
      :   '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\')
      |   UNICODE_ESC
      |   OCTAL_ESC
      ;
  
negative.code: 	;
  
  and_tail 
  	:	AND! term^
  	;	
  
  
  expr
  	: (term -> term )
  		(	and_tail+ -> ^(AND term and_tail+)
  		|	or_tail+ -> ^(OR term or_tail+)
  		)?
  	;
  
  