glsl/glcpp: Abstract a bit of common code for returning string tokens