Behavior of lists in SysMLv2/SysIDE

Here’s a few cases of my expectation vs. reality when it comes to parsing lists:

SysML source My expectation SysIDE result
1 LiteralInteger LiteralInteger
(1) LiteralInteger or InvocationExpression LiteralInteger
(1,) InvocationExpression LiteralInteger
(1,2) InvocationExpression InvocationExpression

I’m wondering about the third case: I didn’t expect (1,) to be parsed as a literal and not as a list. Is this intended behavior?

Yes, both Pilot implementation and SysIDE parse all cases similarly:

2 Likes