Whoops, should have been more clear. I don't want to actually have the line
x = INTEGER_NUMBER;
The string could be anything from "INTEGER_NUMBER" to "POTATO_PANCAKE", and I want to be able to assign the value based on whatever is parsed from the file. So it would be something like