I want to write something that will automatically (using a rule system and a list of words to use as replacement) should replace all variables and function names with something else:
eg:
var foot = 0;
function cat(state) {
return state ? "running" : "sleep";
}
cat(foot);
To:
var house = 0;
function bear(country) {
return country ? "running" : "sleep";
}
bear(house);
I have searched the net but haven't found any project that can easily be modified to do this.
Do any of you know how to do this or know of a project that I can use as a starting point?