Skip to content

Commit

Permalink
ST6RI-533 Corrected the KerML and SysML grammar related to root syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
seidewitz committed May 15, 2022
1 parent f02e06e commit 9637ffd
Show file tree
Hide file tree
Showing 20 changed files with 20,762 additions and 21,697 deletions.
8 changes: 3 additions & 5 deletions kerml/src/examples/Simple Tests/Elements.kerml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package Elements {
element <e145>;
element <e145> MyName;

element <'1.2.4'> MyName;

element <A> {
element A {
doc /* Element A is related to element B. */
relationship to B;
}

element <B> {
element B {
language "HTML"
/* <a href="https://plm.elsewhere.com/part?id="1234"/> */
}
Expand Down
4 changes: 2 additions & 2 deletions kerml/src/examples/Simple Tests/Relationships.kerml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package Relationships {
namespace N {
element A;
element B {
relationship <x> {
element <y>; // Owned related Element
relationship x {
element y; // Owned related Element
relationship from A to B; // Relationship as owned related Element
}
}
Expand Down
7 changes: 4 additions & 3 deletions kerml/src/examples/Simple Tests/TextualRepresentation.kerml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package TextualRepresentation {

class C {
feature x: Real;
inv x_constraint;
rep inOCL about x_constraint language "ocl"
/* self.x > 0.0 */
inv x_constraint {
rep inOCL language "ocl"
/* self.x > 0.0 */
}
}

behavior setX(c : C, newX : Real) {
Expand Down
Binary file modified org.omg.kerml.xtext/src-gen/org/omg/kerml/xtext/KerML.xtextbin
Binary file not shown.
Loading

0 comments on commit 9637ffd

Please sign in to comment.