Commit d3f2eeae authored by Sascha Niklas Schneiders's avatar Sascha Niklas Schneiders
Browse files

added Optimization Rule

parent a4c068a9
package de.monticore.lang.monticar.generator.optimization;
import de.monticore.lang.math.math._symboltable.expression.MathAssignmentExpressionSymbol;
import de.monticore.lang.math.math._symboltable.expression.MathExpressionSymbol;
import java.util.List;
/**
* @author Sascha Schneiders
*/
public class MathAssignmentPartResultReuse implements MathOptimizationRule {
@Override
public void optimize(MathExpressionSymbol mathExpressionSymbol, List<MathExpressionSymbol> precedingExpressions) {
if (mathExpressionSymbol.isAssignmentExpression()) {
optimize((MathAssignmentExpressionSymbol) mathExpressionSymbol, precedingExpressions);
}
}
public void optimize(MathAssignmentExpressionSymbol mathExpressionSymbol, List<MathExpressionSymbol> precedingExpressions) {
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment