// print(i);
if (i < 0) {
if (n > -1) {
- i = 0;
- continue;
+ i = 0; continue;
}
- return new Token("", "VOID", "END_OF_STREAM");
- }
- else if (i > this.tokens.length) {
- return new Token("", "VOID", "END_OF_STREAM");
+ return new Token("", "VOID", "END_OF_STREAM");
}
+ else if (i > this.tokens.length) return new Token("", "VOID", "END_OF_STREAM");
if (i != this.cursor && (this.tokens[i] === undefined || this.tokens[i].is("WHIT") || this.tokens[i].is("COMM"))) {
if (n < 0) i--; else i++;
/**
* @return {Token|null}
+ * next token (with white space)
*/