convert values returned from a lexer into a list of PositionTokens