anchor.diff:      ;
   
   regexExpression
  -    : ^(REGEX (e+=expression)+) -> regexExpression(expression={$e})
  +    : ^(REGEX (e+=expression)+) -> regexExpression(type={$REGEX.text}, expression={$e})
       ;
       
   subStringExpression
  
positive.code:  */
  tree grammar SparqlT; 
  
  options {
  tokenVocab=Sparql; // reuse token types
  ASTLabelType=CommonTree; // $label will have type CommonTree
  output=template; //template;
  
negative.code: 
  constraint
      : e=brackettedExpression -> constraint(brackettedExpression={$e.st})
      | b=builtInCall -> constraint(builtInCall={$b.st})
      | f=functionCall -> constraint(functionCall={$f.st})
      ;
  
  functionCall
  