Lets say for example we are gonna bind the function into a hashmap
if(identity.equals("printf")){
doPrintf(statement);
}else if(identity.equals("scanf")){
doScanf(statement);
}else if(identity.equals("puts")){
doPuts(statement);
}else if (identity.equals("functioncall")){
expectFunc = true;
}else if (identity.equals("functioncallwithparams")){
expectFunc = true;
expectParams = true;
}else if (identity.equals("assignment")){
//doAssignment(statement);
vartoupdate = statement;
updateVar = true;
}else if(identity.equals("getch"))
doGetch();
something like this HM.put("getch",doGetch()). How could you possibly do this?