advance method

Token? advance()

Consumes the next token and returns the one after that.

Implementation

Token? advance() {
  scan();
  return peek();
}