return false;
}
+ public void peekExpectNoneOf(String [] ... possibilities) throws InvalidSyntaxException {
+ TokenizerMatch nextToken = peekNextToken();
+
+ for (String[] possibility : possibilities)
+ if (possibility.equals(nextToken))
+ throw new InvalidSyntaxException("Not expected \"" + nextToken + "\" here.");
+ }
+
public boolean sequenceMatches(final String sequence) {
if ((currentIndex + sequence.length()) > source.length())