return new Tokeniser(sourceText).tokenise();</BUG>
}
private static boolean isWhitespace(char ch) {
return ch == ' ' || ch == '\t';
<BUG>}
@Nonnull protected TokeniserException createError(@Nonnull String message) {
return new TokeniserException(message);</BUG>
}
protected boolean eat(@Nonnull Function<String, Token> ctor, @Nonnull Pattern pattern) {
if (this.index >= this.length)

this.tokens = new ArrayList<>();
this.sourceText = sourceText;
this.length = sourceText.length();
this.eatWhitespace();
}
@Nonnull public static Token[] tokenise(@Nonnull String sourceText) {
return new Tokeniser(sourceText).tokenise();
}
private static boolean isWhitespace(char ch) {
return ch == ' ' || ch == '\t';
}
protected boolean eat(@Nonnull Function<String, Token> ctor, @Nonnull Pattern pattern) {
if (this.index >= this.length)
