public T match(final Predicate<? super T> token) {
		final var next = LT(1);
		if (token.test(next)) {
			consume();
			return next;
		} else {
			throw new ParsingException(format(
				"Found unexpected token: %s.", LT(1)
			));
		}
	}
Try to <em>match</em> and consume the next token of the given
{@code type}. If the current token is not from the given type, a
{@link ParsingException} is thrown.

@param token the token type to match
@return the matched token
@throws ParsingException if the current token doesn't match the desired
        {@code token}
jenetics.ext/src/main/java/io/jenetics/ext/internal/parser/Parser.java