Commit 2a76160f authored by Julian Dierkes's avatar Julian Dierkes

fixed todo statements and wrote in README where to find CeilMathCommand

parent db40cf91
......@@ -17,8 +17,9 @@
### How to add a new Command to EMAM
* add your command java file in src /src/main/java/de/monticore/lang/generator/cpp/commands. You can
look at ceilMathCommand.java as an example for an command that already exists in Armadillo. For a
more complex command, you can look at scaleCube.
look at CeilMathCommand.java as an example for an command that already exists in Armadillo. For a
more complex command, you can look at scaleCube. CeilMathCommand.java will be find in adi-dev branch, after merging this branch into master the
ceil command will be available also on the master.
* register your command in MathCommandRegisterCPP.java
* add yourCommandTest.emam in EMAM2Cpp/src/test/resources/test/math
* add a cpp file for your command in EMAM2Cpp/src/test/resources/results/armadillo/testMath/l0. This
......
......@@ -18,7 +18,6 @@ import java.util.List;
import java.util.Optional;
public class MathScaleCubeCommand extends MathCommand {
//todo
private static final String SCALER_SYNTAX_EXTENDED = "scaleCube( EXPRESSION , AXIS , NEW_X , NEW_Y )";
private static final String SCALER_METHOD_NAME = "scaleCube";
......@@ -63,7 +62,6 @@ public class MathScaleCubeCommand extends MathCommand {
MathMatrixAccessSymbol new_y = mathMatrixNameExpressionSymbol.getMathMatrixAccessOperatorSymbol().getMathMatrixAccessSymbols().get(3);
convertExtendedScalerImplementationArmadillo(valueListString, mathMatrixNameExpressionSymbol, bluePrintCPP);
} else {
//todo
Log.error(String.format("No implementation found for scaleCube operation: \"scaleCube(%s)\".", mathExpressionSymbol.getTextualRepresentation(), SCALER_SYNTAX_EXTENDED));
}
}
......
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