Lexer::getNextToken added startPos and endPos