Refactor grammar
Please refactor the grammar to
package de.monticore.lang.monticar;
grammar EMADL extends de.monticore.lang.embeddedmontiarc.EmbeddedMontiArcMath,
de.monticore.lang.monticar.CNNArch{
start EMACompilationUnit;
BehaviorEmbedding = Architecture | MathStatements;
BehaviorName = name:"CNN" | name:"Math";
token NEWLINETOKEN =
('\r' '\n' |
'\r' |
'\n' ):;
}
in order to avoid the unnecessary non-terminal EMADLCompilationUnit, c.f. http://monticore.de/MontiCore_Reference-Manual.2017.pdf Listing 4.25
and to inherit from EmbeddedMontiArcMath instead of EmbeddedMontiArcBehaviour
Please also analyse why the newline token needs to be overriden here (MC bug?)