Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
16decf01
Commit
16decf01
authored
Dec 22, 2019
by
Ahmed
Browse files
delete unexisted import
parent
305d31a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/de/monticore/lang/monticar/generator/MathCommandRegister.java
View file @
16decf01
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.generator
;
import
com.sun.org.apache.xpath.internal.Arg
;
import
de.monticore.lang.monticar.generator.cpp.commands.ArgumentReturnMathCommand
;
import
java.util.ArrayList
;
...
...
src/main/java/de/monticore/lang/monticar/generator/cpp/converter/ComponentConverter.java
View file @
16decf01
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.generator.cpp.converter
;
import
com.sun.xml.internal.bind.v2.TODO
;
import
de.monticore.expressionsbasis._ast.ASTExpression
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAComponentInstanceSymbol
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.instanceStructure.EMAPortInstanceSymbol
;
...
...
@@ -65,8 +64,12 @@ public class ComponentConverter {
//ToDo: add bluePrintFixer.fixBluePrintCvVariableArrays;
MathInformationFilter
.
filterStaticInformation
(
componentSymbol
,
bluePrint
,
mathStatementsSymbol
,
generatorCPP
,
includeStrings
);
//save function name
if
(
mathStatementsSymbol
.
getMathExpressionSymbols
().
get
(
0
)
instanceof
MathAssignmentExpressionSymbol
){
nameOfFunction
=
((
MathMatrixNameExpressionSymbol
)((
MathAssignmentExpressionSymbol
)
mathStatementsSymbol
.
getMathExpressionSymbols
().
get
(
0
)).
getExpressionSymbol
()).
getNameToAccess
();
if
(
mathStatementsSymbol
!=
null
)
{
if
(
mathStatementsSymbol
.
getMathExpressionSymbols
().
get
(
0
)
instanceof
MathAssignmentExpressionSymbol
)
{
if
(((
MathAssignmentExpressionSymbol
)
mathStatementsSymbol
.
getMathExpressionSymbols
().
get
(
0
)).
getExpressionSymbol
()
instanceof
MathMatrixNameExpressionSymbol
)
{
nameOfFunction
=
((
MathMatrixNameExpressionSymbol
)
((
MathAssignmentExpressionSymbol
)
mathStatementsSymbol
.
getMathExpressionSymbols
().
get
(
0
)).
getExpressionSymbol
()).
getNameToAccess
();
}
}
}
//ToDo: add a BluePrintFixer.fixerBluePrintCVfuncitons(bluePrint, nameOfFunction);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment