Added startPos and endPos attributes to tokens. Added parseErrorWithPos method.