     while @nextToken()
       'NOOP'
 
+    # Position to the end of the last successfully parsed token.
     @buffer.position = @position
 
   isEnd: ->

        return false
    catch error
      if error?.error == 'oob'
        return false
      else
        throw error

          @debug.token(token)

          if !token.error
            # Note current position, so that it can be rolled back to if the next token runs out of buffer.
            @position = @buffer.position

            if token.event
