Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'syntaxes/MSRT/Metamodel/MSRT.km3')
-rw-r--r--syntaxes/MSRT/Metamodel/MSRT.km340
1 files changed, 40 insertions, 0 deletions
diff --git a/syntaxes/MSRT/Metamodel/MSRT.km3 b/syntaxes/MSRT/Metamodel/MSRT.km3
new file mode 100644
index 0000000..0a6ea76
--- /dev/null
+++ b/syntaxes/MSRT/Metamodel/MSRT.km3
@@ -0,0 +1,40 @@
+-- @name MSRT
+-- @version 1.0
+-- @authors Mikael Barbero
+-- @date 01/09/2008
+-- @description Simple metamodel to test MultiStep RefersTo resolution. Illustrate workaround of bug #214598 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=214598)
+package MSRT {
+ class Block {
+ attribute name : String;
+ reference subblocks[*] ordered container : Block;
+ reference statements[*] ordered container : Statement;
+ }
+
+ abstract class Statement {}
+
+ class VariableDef extends Statement {
+ attribute varName : String;
+ }
+
+ abstract class VariableRef {}
+
+ class SimpleVariableRef extends VariableRef {
+ reference varDef : VariableDef;
+ }
+
+ class ComplexVariableRef extends VariableRef {
+ reference varDef : VariableDef;
+ reference ownerblock : Block; -- This to support the path to sibling blocks
+ }
+
+ class Assignement extends Statement {
+ reference lhs container : SimpleVariableRef;
+ reference rhs container : VariableRef;
+ }
+}
+
+package PrimitiveTypes {
+ datatype Boolean;
+ datatype Integer;
+ datatype String;
+}

Back to the top