Hi, I'm extending the BaseLanguage with Agent Oriented concept. In my generator I want to replace all LocalMethodCall which matches a given condition to something else. This something else is a LocalVariableDeclaration and a LocalMethodCall.
For instance I want to convert this (in my own DSL):
To this (in the BaseLanguage):
- Logging LOGGING_CAPACITY = getSkill(Logging.class);
How can I do it ?
When I'm using a reduction rule template with two template fragments I end up with an error saying that the two template fragments must be of the same type.