You can't just use the srcFactor number here, you're gonna have to make an array of strings to look up in.

For example, SRCCOLOR should be "v", SRCALPHA should be "v.a", DSTCOLOR should be "gl_LastFragColor" and so on.