From 93e08cddfd2cf313aedb35ac1998b43921c3d4c8 Mon Sep 17 00:00:00 2001 From: Andre Pacak Date: Fri, 8 Nov 2019 10:51:39 +0100 Subject: [PATCH] add xRequired to rules where declaration in question is in conclusion --- .../generator/template/main@generator.mps | 409 ++++++++--- .../languages/TypeLang/models/behavior.mps | 667 +++++++++++++++++- .../solutions/TypeLangTest/models/test.mps | 8 + 3 files changed, 993 insertions(+), 91 deletions(-) diff --git a/inca-translation/languages/TypeLang/generator/template/main@generator.mps b/inca-translation/languages/TypeLang/generator/template/main@generator.mps index ef101b6..2536996 100644 --- a/inca-translation/languages/TypeLang/generator/template/main@generator.mps +++ b/inca-translation/languages/TypeLang/generator/template/main@generator.mps @@ -15,6 +15,9 @@ + + + @@ -51,16 +54,21 @@ + + + + + @@ -141,6 +149,9 @@ + + + @@ -155,6 +166,9 @@ + + + @@ -168,10 +182,14 @@ + + + + @@ -191,7 +209,16 @@ - + + + + + + + + + + @@ -400,82 +427,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -525,6 +477,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -589,23 +567,272 @@ - - - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -627,6 +854,26 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/inca-translation/languages/TypeLang/models/behavior.mps b/inca-translation/languages/TypeLang/models/behavior.mps index ae52c68..68eca83 100644 --- a/inca-translation/languages/TypeLang/models/behavior.mps +++ b/inca-translation/languages/TypeLang/models/behavior.mps @@ -277,6 +277,9 @@ + + + @@ -286,7 +289,9 @@ + + @@ -930,6 +935,20 @@ + + + + + + + + + + + + + + @@ -966,6 +985,24 @@ + + + + + + + + + + + + + + + + + + @@ -1023,6 +1060,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1137,6 +1201,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1206,6 +1316,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1463,6 +1600,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1547,6 +1745,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1855,6 +2080,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1938,23 +2239,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - + + + + + + + @@ -2156,6 +2504,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2440,10 +2852,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2472,5 +2977,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/inca-translation/solutions/TypeLangTest/models/test.mps b/inca-translation/solutions/TypeLangTest/models/test.mps index a2970ff..fe5f448 100644 --- a/inca-translation/solutions/TypeLangTest/models/test.mps +++ b/inca-translation/solutions/TypeLangTest/models/test.mps @@ -1296,6 +1296,14 @@ + + + + + + + + -- 2.22.0