Commit d3435848 authored by Svetlana Pavlitskaya's avatar Svetlana Pavlitskaya Committed by Evgeny Kusmenko

Cmake support

parent 2b437eb6
......@@ -30,7 +30,9 @@
<groupId>de.monticore.lang.monticar</groupId>
<artifactId>cnn-arch</artifactId>
<version>0.2.4-SNAPSHOT</version>
<version>0.2.5-SNAPSHOT</version>
<!-- == PROJECT DEPENDENCIES ============================================= -->
......
......@@ -129,7 +129,6 @@ grammar CNNArch extends de.monticore.CommonExpressions, de.monticore.lang.Math,
| MathAssignmentStatement);
ArchComplexArithmeticExpression implements ArchArithmeticExpression = leftExpression:ArchMathExpression
NEWLINETOKEN*
( operator:"*"
| operator:"/"
| operator:"%"
......@@ -137,7 +136,6 @@ grammar CNNArch extends de.monticore.CommonExpressions, de.monticore.lang.Math,
| operator:"+"
| operator:"-"
)
NEWLINETOKEN*
rightExpression:ArchMathExpression;
TupleExpression = "(" expressions:ArchArithmeticExpression "," expressions:(ArchArithmeticExpression || ",")* ")";
......
......@@ -31,6 +31,8 @@ import java.util.Map;
public interface CNNArchGenerator {
boolean isCMakeRequired();
String getGenerationTargetPath();
void setGenerationTargetPath(String generationTargetPath);
......@@ -46,4 +48,8 @@ public interface CNNArchGenerator {
//check cocos with CNNArchCocos.checkAll(architecture) before calling this method.
void generateFiles(ArchitectureSymbol architecture) throws IOException;
void generateCMake(String rootModelName);
Map<String, String> generateCMakeContent(String rootModelName);
}
......@@ -25,7 +25,6 @@ import de.monticore.lang.monticar.cnnarch.predefined.AllPredefinedVariables;
import de.monticore.symboltable.Scope;
import de.se_rwth.commons.logging.Log;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static de.monticore.lang.monticar.cnnarch.ParserTest.ENABLE_FAIL_QUICK;
......
......@@ -25,7 +25,6 @@ import de.monticore.lang.monticar.cnnarch._symboltable.CNNArchCompilationUnitSym
import de.monticore.symboltable.Scope;
import de.se_rwth.commons.logging.Log;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static de.monticore.lang.monticar.cnnarch.ParserTest.ENABLE_FAIL_QUICK;
......
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