In the latter, mere numbers are used as a notation for the position of the token with respect to the next one in the input, numbered 0.
positive integers refer to tokens in the input to be processed, whereas negative integers refer to the tokens on the stack.