Conflicting types

The solution is likely trivial, but I've been having problems with this for several hours.

I am trying to update/add an IntegerLiteral list element in the set function of a model access cell model based on a user's input; however, I cannot seem to get a conversion from the inputted text (string) to an allowable type.

Any help or pointers are appreciated.

1 comment

You should be creating IntegerConstants, since these hold the value property:

node<IntegerConstant> intLiteral = new node<IntegerConstant>();
intLiteral.value = Integer.parseInt("10");

 

0

Please sign in to leave a comment.