public TokenStream consumeUntilEndOrOneOf(String... stopTokens) throws ParsingException, IllegalStateException {
  while (hasNext()) {
    if (matchesAnyOf(stopTokens)) {
      break;
    }
    consume();
  }
  return this;
}

public TokenStream consumeUntilEndOrOneOf ( String ... stopTokens ) throws ParsingException , IllegalStateException { while ( hasNext ( ) ) { if ( matchesAnyOf ( stopTokens ) ) { break ; } consume ( ) ; } return this ; }
consume the token stream until one of the stop tokens or the end of the stream is found .
