anchor.diff:  terminatorDefinitionEnd       : END TERMINATOR? SEMI pragmaList                           
                                 ;
   
  -terminatorServiceDeclaration  : serviceVisibility SERVICE serviceName 
  +terminatorServiceDeclaration  
  +returns[String result]
  +@after {
  +    Matcher m = Pattern.compile( "public|private" ).matcher( $text );
  +    if ( !m.find() ) {
  +        $result = "public " + $text;    // if there is no public or private modifier, it is public
  +    }
  +    else {
  +        $result = $text;
  +    }
  +}
  +                              : serviceVisibility SERVICE serviceName 
                                     parameterList SEMI pragmaList                           
                                 ;
   
  -terminatorFunctionDeclaration : serviceVisibility FUNCTION serviceName 
  +terminatorFunctionDeclaration 
  +returns[String result]
  +@after {
  +    Matcher m = Pattern.compile( "public|private" ).matcher( $text );
  +    if ( !m.find() ) {
  +        $result = "public " + $text;    // if there is no public or private modifier, it is public
  +    }
  +    else {
  +        $result = $text;
  +    }
  +}
  +                              : serviceVisibility FUNCTION serviceName 
                                     parameterList RETURN returnType 
                                     SEMI pragmaList                                         
                                 ;
  
positive.code: //---------------------------------------------------------
  // Exception Declaration
  //---------------------------------------------------------
  exceptionDeclaration          : exceptionVisibility EXCEPTION exceptionName 
                                  SEMI pragmaList                                           
                                ;
  
  
negative.code:   $result = begin + " " + block.toString() + " " + end;
  }
                                : terminatorDefinitionBegin { begin = $terminatorDefinitionBegin.text; }
                                  (terminatorServiceDeclaration { addToChunk( services, $terminatorServiceDeclaration.result ); }
                                  | terminatorFunctionDeclaration { addToChunk( services, $terminatorFunctionDeclaration.result ); } )*
                                  terminatorDefinitionEnd { end = $terminatorDefinitionEnd.text; }
                                ;
  
  