Skip to content

ST6RI-959 SysML 2.1 Ballot 3 - Abstract Syntax - #787

Merged
seidewitz merged 5 commits into
masterfrom
ST6RI-959
Aug 13, 2026
Merged

ST6RI-959 SysML 2.1 Ballot 3 - Abstract Syntax#787
seidewitz merged 5 commits into
masterfrom
ST6RI-959

Conversation

@seidewitz

Copy link
Copy Markdown
Member

This PR implements resolutions for issues that were approved on SysML 2.1 RTF Ballot 3 related to abstract syntax. These issue all had been pro-actively implemented, so changes for this PR are minimal.

Changes

- This is consistent with the adopted resolution.
- Also removed TODO comment.
@seidewitz seidewitz added this to the 2026-07 milestone Aug 10, 2026
@seidewitz seidewitz self-assigned this Aug 10, 2026
- Extended UsagePostProcessTest to test this.
- Un-commented implementations of validation checks for
validateAttributeDefinitionFeatures and validateAttributeUsageFeatures.
@seidewitz
seidewitz requested a review from himi August 11, 2026 16:12
ST6RI-960 SysML 2.1 Ballot #3 - Library Models
@himi

himi commented Aug 13, 2026

Copy link
Copy Markdown
Member

@seidewitz Sorry for making you wait. I could not set up MgPy environment with this version and I tried to evaluate with %eval but I could not. For example, to test subrequirements, I used:

requirement r1 {
    require r2;
    assume r3;
    requirement r11;
}
requirement r2;
requirement r3;

and tried
%show r1 or %eval "r1.subrequirements". But none of them worked. It's implicit elements and probably I need to transformAll() to get such features. (I thought %show shows implicit elements as well). Anyway, I could not find any issues in the code and approve this PR.

@seidewitz

Copy link
Copy Markdown
Member Author

@himi
Thanks.

and tried %show r1 or %eval "r1.subrequirements"

The problem with %show r1 is that a requirement usage is ultimately a kind of KerML expression, and %show does not expand expressions, in order to make the display of ASTs with complicated expressions tractable. This is a quirk that has needed to be fixed for a while!

The problem with %eval "r1.subrequirements" is that it requires "subsetting roll-up" to evaluate properly, and this is not currently implemented in the Pilot Implementation.

The best way to see that the code sets the implied relationships correctly is to use the outline in the Eclipse Xtext editor.

@seidewitz
seidewitz merged commit 522b6a0 into master Aug 13, 2026
2 checks passed
seidewitz added a commit that referenced this pull request Aug 13, 2026
ST6RI-959 SysML 2.1 Ballot 3 - Abstract Syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants