Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
languages
CNNArchLang
Commits
e0cb323a
Commit
e0cb323a
authored
Aug 24, 2018
by
Svetlana Pavlitskaya
Committed by
Evgeny Kusmenko
Aug 24, 2018
Browse files
Integer value fix
parent
90e1a63f
Changes
3
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
e0cb323a
...
...
@@ -30,7 +30,7 @@
<groupId>
de.monticore.lang.monticar
</groupId>
<artifactId>
cnn-arch
</artifactId>
<version>
0.2.
3
-SNAPSHOT
</version>
<version>
0.2.
4
-SNAPSHOT
</version>
<!-- == PROJECT DEPENDENCIES ============================================= -->
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/_cocos/CNNArchCocos.java
View file @
e0cb323a
...
...
@@ -29,6 +29,8 @@ import de.se_rwth.commons.logging.Log;
public
class
CNNArchCocos
{
public
static
void
checkAll
(
ArchitectureSymbol
architecture
){
Log
.
getFindings
().
clear
();
Log
.
enableFailQuick
(
false
);
ASTCNNArchNode
node
=
(
ASTCNNArchNode
)
architecture
.
getAstNode
().
get
();
int
findings
=
Log
.
getFindings
().
size
();
createASTChecker
().
checkAll
(
node
);
...
...
src/main/java/de/monticore/lang/monticar/cnnarch/_symboltable/ArchExpressionSymbol.java
View file @
e0cb323a
...
...
@@ -178,6 +178,9 @@ abstract public class ArchExpressionSymbol extends CommonSymbol {
if
(
optValue
.
isPresent
()
&&
(
optValue
.
get
()
instanceof
Integer
)){
return
Optional
.
of
((
Integer
)
optValue
.
get
());
}
else
if
(
optValue
.
isPresent
()
&&
(
optValue
.
get
()
instanceof
Double
)
&&
(((
Double
)
optValue
.
get
()
%
1
)==
0
))
{
return
Optional
.
of
(((
Double
)
optValue
.
get
()).
intValue
());
}
return
Optional
.
empty
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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