Skip to content
Snippets Groups Projects
Commit 8367b55a authored by Jan Gruteser's avatar Jan Gruteser
Browse files

support realvalue in createTLCValue

parent ec08bc21
No related branches found
No related tags found
No related merge requests found
Pipeline #148233 passed
...@@ -454,6 +454,8 @@ public class BAstCreator extends BuiltInOPs implements TranslationGlobals, BBuil ...@@ -454,6 +454,8 @@ public class BAstCreator extends BuiltInOPs implements TranslationGlobals, BBuil
switch (tlcValue.getKind()) { switch (tlcValue.getKind()) {
case INTVALUE: case INTVALUE:
return new AIntegerExpression(new TIntegerLiteral(tlcValue.toString())); return new AIntegerExpression(new TIntegerLiteral(tlcValue.toString()));
case REALVALUE:
return new ARealExpression(new TRealLiteral(tlcValue.toString()));
case SETENUMVALUE: { case SETENUMVALUE: {
SetEnumValue s = (SetEnumValue) tlcValue; SetEnumValue s = (SetEnumValue) tlcValue;
ArrayList<PExpression> list = new ArrayList<>(); ArrayList<PExpression> list = new ArrayList<>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment