I am currently working on a project that requires me creating a Domain specific language to allow end user customize our application. we are trying to keep it as simple as possible.
I started a research that lead me to the Antlr v3 tool which works well with java. I have a been able to parse arithmetic expressions and String operations and a few built in functions.
However owing to limited details in tutorials seen online I have been having challenges implementing my defined grammar rule for both if statements and loop as i do not understand aw am suppose to ensure that the expressions in this control statements are only executed when the appropriate conditions are met.
I will appreciate anyone who can share his/her implementation of control statements or point me to a tutorial that goes beyond defining the grammar rules (as i have been able to create a grammar construct) and shows how to ascertain conditions are met before executing a statement (what i require is a java program that implements the construct to execute only wen the condition is true ).