public static RepositoryExpression parseRepositoryExpression(String toParse) throws ParseError {
  StreamTokenizer t=Parser.tokenize(toParse);
  Term creator=Parser.parseTerm(t);
  List<Operation> operations=Parser.parseOperationList(t);
  RepositoryExpression ex=new RepositoryExpression(creator);
  if (!operations.isEmpty()) {
    throw new ParseError("Expression must represent a simple repository, e.g. 'internal(revision=3)'.");
  }
  return ex;
}

public static RepositoryExpression parseRepositoryExpression ( String toParse ) throws ParseError { StreamTokenizer t = Parser . tokenize ( toParse ) ; Term creator = Parser . parseTerm ( t ) ; List < Operation > operations = Parser . parseOperationList ( t ) ; RepositoryExpression ex = new RepositoryExpression ( creator ) ; if ( ! operations . isEmpty ( ) ) { throw new ParseError ( "Expression must represent a simple repository, e.g. 'internal(revision=3)'." ) ; } return ex ; }
parse a string under the expectation that it is a repositoryexpression , i . e . repository name plus options , e . g . " internal ( revision = 1234 ) " or " file ( path = / tmp , projectspace = internal ) " .
