I need to write a java program which reads rules (conditions) from a file. The rules have to be transformed as conditions in Java. I don't know how to transform the rules specified as strings to Java source code.
For example, the rules like:
x != y
or
n >= 0 && s == n
should be transformed to Java source code as:
if(x != y){......}
else{....}
How can I made this possible?