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
languages
CNNTrainLang
Commits
912285e1
Commit
912285e1
authored
Jun 29, 2020
by
Han Zhang
Browse files
Add optional package declaration to CNNTrain grammar && update version number
parent
ea8e2486
Pipeline
#301076
passed with stage
in 4 minutes and 5 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
912285e1
...
...
@@ -18,7 +18,7 @@
<groupId>
de.monticore.lang.monticar
</groupId>
<artifactId>
cnn-train
</artifactId>
<version>
0.3.1
0
-SNAPSHOT
</version>
<version>
0.3.1
1
-SNAPSHOT
</version>
<!-- == PROJECT DEPENDENCIES ============================================= -->
...
...
src/main/grammars/de/monticore/lang/monticar/CNNTrain.mc4
View file @
912285e1
...
...
@@ -2,7 +2,9 @@
package
de
.
monticore
.
lang
.
monticar
;
grammar
CNNTrain
extends
de
.
monticore
.
lang
.
monticar
.
Common2
,
de
.
monticore
.
NumberUnit
{
symbol
scope
CNNTrainCompilationUnit
=
"configuration"
symbol
scope
CNNTrainCompilationUnit
=
(
"package"
package
:(
Name
&
||
"."
)+
";"
)?
//
optional
package
declaration
"configuration"
name
:
Name
&
Configuration
;
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_symboltable/CNNTrainSymbolTableCreator.java
View file @
912285e1
...
...
@@ -14,6 +14,7 @@ import de.monticore.symboltable.ArtifactScope;
import
de.monticore.symboltable.ImportStatement
;
import
de.monticore.symboltable.MutableScope
;
import
de.monticore.symboltable.ResolvingConfiguration
;
import
de.se_rwth.commons.Names
;
import
de.se_rwth.commons.logging.Log
;
import
org.antlr.v4.runtime.misc.Pair
;
...
...
@@ -44,6 +45,8 @@ public class CNNTrainSymbolTableCreator extends CNNTrainSymbolTableCreatorTOP {
List
<
ImportStatement
>
imports
=
new
ArrayList
<>();
this
.
compilationUnitPackage
=
Names
.
getQualifiedName
(
compilationUnit
.
getPackageList
());
ArtifactScope
artifactScope
=
new
ArtifactScope
(
Optional
.
empty
(),
compilationUnitPackage
,
...
...
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