question: 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 ; }
target:  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)".