Skip to content
Browse files

Added a sample intention and a new sandbox form

  • Loading branch information...
1 parent e733ae9 commit 1a049dc4c054925edfd45896a322fa003f525607 @vaclav committed
View
4 .gitattributes
@@ -0,0 +1,4 @@
+*.mps merge=mps
+trace.info merge=mps
+dependencies merge=mps
+generated merge=mps
View
6 CalculatorTutorial.mpr
@@ -11,10 +11,16 @@
</projectModules>
<genConfs />
</component>
+ <component name="MigrationState">
+ <option name="myState" value="DONE" />
+ </component>
<component name="ProjectModuleManager">
<modules />
</component>
<component name="ProjectRootManager" version="2" />
+ <component name="ProjectVersion">
+ <option name="version" value="2.0" />
+ </component>
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
View
1 languages/Calculator/Calculator.mpl
@@ -16,6 +16,7 @@
<mapping-priorities />
</generator>
</generators>
+ <sourcePath />
<usedDevKits>
<usedDevKit>2677cb18-f558-4e33-bc38-a5139cee06dc(jetbrains.mps.devkit.language-design)</usedDevKit>
</usedDevKits>
View
973 languages/Calculator/generator/template/main@generator.mps
487 additions, 486 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
6 languages/Calculator/languageModels/Gen@generator.mps
@@ -1,10 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<model modelUID="r:6cce2c40-1fca-4b78-95d2-6de588d4c7ad(Calculator.Gen@generator)">
- <persistence version="4" />
- <refactoringHistory />
+ <persistence version="7" />
<language namespace="21560302-1e32-4533-bc15-78171e32e68f(Calculator)" />
<devkit namespace="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
- <maxImportIndex value="1" />
- <import index="1" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
+ <roots />
</model>
View
10 languages/Calculator/languageModels/behavior.mps
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<model modelUID="r:9704538a-a6be-4ed6-b27a-86ec065264d1(Calculator.behavior)">
+ <persistence version="7" />
+ <language namespace="21560302-1e32-4533-bc15-78171e32e68f(Calculator)" />
+ <language namespace="af65afd8-f0dd-4942-87d9-63a55f2a9db1(jetbrains.mps.lang.behavior)" />
+ <devkit namespace="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
+ <import index="h01j" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
+ <roots />
+</model>
+
View
66 languages/Calculator/languageModels/constraints.mps
@@ -1,53 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<model modelUID="r:8db27b82-a96a-4e00-97fc-941f15f6f424(Calculator.constraints)">
- <persistence version="4" />
- <refactoringHistory />
+ <persistence version="7" />
<language namespace="21560302-1e32-4533-bc15-78171e32e68f(Calculator)" />
<language namespace="3f4bc5f5-c6c1-4a28-8b10-c83066ffa4a1(jetbrains.mps.lang.constraints)" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c8959030d(jetbrains.mps.lang.constraints.structure)" version="8" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)" version="3" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c89590301(jetbrains.mps.lang.smodel.structure)" version="16" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" />
<devkit namespace="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
- <maxImportIndex value="1" />
- <import index="1" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
- <node type="jetbrains.mps.lang.constraints.structure.ConceptConstraints:8" id="2339873612002239832">
- <link role="concept:8" targetNodeId="1.2339873612002093005:0" resolveInfo="InputFieldReference" />
- <node role="referent:8" type="jetbrains.mps.lang.constraints.structure.NodeReferentConstraint:8" id="2339873612002239833">
- <link role="applicableLink:8" targetNodeId="1.2339873612002093006:0" />
- <node role="searchScopeFactory:8" type="jetbrains.mps.lang.constraints.structure.ConstraintFunction_ReferentSearchScope_Factory:8" id="2339873612002239834">
- <node role="body:8" type="jetbrains.mps.baseLanguage.structure.StatementList:3" id="2339873612002239835">
- <node role="statement:3" type="jetbrains.mps.baseLanguage.structure.LocalVariableDeclarationStatement:3" id="2339873612002239847">
- <node role="localVariableDeclaration:3" type="jetbrains.mps.baseLanguage.structure.LocalVariableDeclaration:3" id="2339873612002239848">
- <property name="name:3" value="node" />
- <node role="type:3" type="jetbrains.mps.lang.smodel.structure.SNodeType:16" id="2339873612002239849">
- <link role="concept:16" targetNodeId="1.3058888773154280113:0" resolveInfo="Calculator" />
+ <import index="h01j" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
+ <import index="tp1t" modelUID="r:00000000-0000-4000-0000-011c8959030d(jetbrains.mps.lang.constraints.structure)" version="8" implicit="yes" />
+ <import index="tpee" modelUID="r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)" version="3" implicit="yes" />
+ <import index="tp25" modelUID="r:00000000-0000-4000-0000-011c89590301(jetbrains.mps.lang.smodel.structure)" version="16" implicit="yes" />
+ <import index="tpck" modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" implicit="yes" />
+ <roots>
+ <node type="tp1t.ConceptConstraints" typeId="tp1t.1213093968558" id="2339873612002239832">
+ <link role="concept" roleId="tp1t.1213093996982" targetNodeId="h01j.2339873612002093005" resolveInfo="InputFieldReference" />
+ </node>
+ </roots>
+ <root id="2339873612002239832">
+ <node role="referent" roleId="tp1t.1213100494875" type="tp1t.NodeReferentConstraint" typeId="tp1t.1148687176410" id="2339873612002239833">
+ <link role="applicableLink" roleId="tp1t.1148687202698" targetNodeId="h01j.2339873612002093006" />
+ <node role="searchScopeFactory" roleId="tp1t.1148687345559" type="tp1t.ConstraintFunction_ReferentSearchScope_Factory" typeId="tp1t.1148684180339" id="2339873612002239834">
+ <node role="body" roleId="tpee.1137022507850" type="tpee.StatementList" typeId="tpee.1068580123136" id="2339873612002239835">
+ <node role="statement" roleId="tpee.1068581517665" type="tpee.LocalVariableDeclarationStatement" typeId="tpee.1068581242864" id="2339873612002239847">
+ <node role="localVariableDeclaration" roleId="tpee.1068581242865" type="tpee.LocalVariableDeclaration" typeId="tpee.1068581242863" id="2339873612002239848">
+ <property name="name" nameId="tpck.1169194664001" value="node" />
+ <node role="type" roleId="tpee.5680397130376446158" type="tp25.SNodeType" typeId="tp25.1138055754698" id="2339873612002239849">
+ <link role="concept" roleId="tp25.1138405853777" targetNodeId="h01j.3058888773154280113" resolveInfo="Calculator" />
</node>
- <node role="initializer:3" type="jetbrains.mps.baseLanguage.structure.DotExpression:3" id="2339873612002239850">
- <node role="operand:3" type="jetbrains.mps.lang.constraints.structure.ConceptParameter_ReferentSearchScope_enclosingNode:8" id="2339873612002239851" />
- <node role="operation:3" type="jetbrains.mps.lang.smodel.structure.Node_GetAncestorOperation:16" id="2339873612002239852">
- <node role="parameter:16" type="jetbrains.mps.lang.smodel.structure.OperationParm_Concept:16" id="2339873612002239853">
- <node role="conceptArgument:16" type="jetbrains.mps.lang.smodel.structure.RefConcept_Reference:16" id="2339873612002239854">
- <link role="conceptDeclaration:16" targetNodeId="1.3058888773154280113:0" resolveInfo="Calculator" />
+ <node role="initializer" roleId="tpee.1068431790190" type="tpee.DotExpression" typeId="tpee.1197027756228" id="2339873612002239850">
+ <node role="operand" roleId="tpee.1197027771414" type="tp1t.ConceptParameter_ReferentSearchScope_enclosingNode" typeId="tp1t.1148934636683" id="2339873612002239851" />
+ <node role="operation" roleId="tpee.1197027833540" type="tp25.Node_GetAncestorOperation" typeId="tp25.1171407110247" id="2339873612002239852">
+ <node role="parameter" roleId="tp25.1144104376918" type="tp25.OperationParm_Concept" typeId="tp25.1144101972840" id="2339873612002239853">
+ <node role="conceptArgument" roleId="tp25.1207343664468" type="tp25.RefConcept_Reference" typeId="tp25.1177026924588" id="2339873612002239854">
+ <link role="conceptDeclaration" roleId="tp25.1177026940964" targetNodeId="h01j.3058888773154280113" resolveInfo="Calculator" />
</node>
</node>
</node>
</node>
</node>
</node>
- <node role="statement:3" type="jetbrains.mps.baseLanguage.structure.ReturnStatement:3" id="2339873612002239856">
- <node role="expression:3" type="jetbrains.mps.baseLanguage.structure.DotExpression:3" id="2339873612002239859">
- <node role="operand:3" type="jetbrains.mps.baseLanguage.structure.LocalVariableReference:3" id="2339873612002239858">
- <link role="variableDeclaration:3" targetNodeId="2339873612002239848" resolveInfo="node" />
+ <node role="statement" roleId="tpee.1068581517665" type="tpee.ReturnStatement" typeId="tpee.1068581242878" id="2339873612002239856">
+ <node role="expression" roleId="tpee.1068581517676" type="tpee.DotExpression" typeId="tpee.1197027756228" id="2339873612002239859">
+ <node role="operand" roleId="tpee.1197027771414" type="tpee.LocalVariableReference" typeId="tpee.1068581242866" id="2339873612002239858">
+ <link role="variableDeclaration" roleId="tpee.1068581517664" targetNodeId="2339873612002239848" resolveInfo="node" />
</node>
- <node role="operation:3" type="jetbrains.mps.lang.smodel.structure.SLinkListAccess:16" id="2339873612002239863">
- <link role="link:16" targetNodeId="1.2339873612002082831:0" />
+ <node role="operation" roleId="tpee.1197027833540" type="tp25.SLinkListAccess" typeId="tp25.1138056282393" id="2339873612002239863">
+ <link role="link" roleId="tp25.1138056546658" targetNodeId="h01j.2339873612002082831" />
</node>
</node>
</node>
</node>
</node>
</node>
- </node>
+ </root>
</model>
View
132 languages/Calculator/languageModels/editor.mps
@@ -1,88 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<model modelUID="r:b3c24ade-afd4-4262-90a3-95743af1cbd6(Calculator.editor)">
- <persistence version="4" />
- <refactoringHistory />
+ <persistence version="7" />
<language namespace="21560302-1e32-4533-bc15-78171e32e68f(Calculator)" />
<language namespace="18bc6592-03a6-4e29-a83a-7ff23bde13ba(jetbrains.mps.lang.editor)" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c8959029e(jetbrains.mps.lang.editor.structure)" version="32" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" />
<devkit namespace="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
- <maxImportIndex value="1" />
- <import index="1" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
- <visible index="2" modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" />
- <node type="jetbrains.mps.lang.editor.structure.ConceptEditorDeclaration:32" id="2339873612001933429">
- <link role="conceptDeclaration:32" targetNodeId="1.3058888773154280113:0" resolveInfo="Calculator" />
- <node role="cellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_Collection:32" id="2339873612001933431">
- <node role="childCellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_Constant:32" id="2339873612001933434">
- <property name="text:32" value="calculator" />
+ <import index="h01j" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
+ <import index="tpc2" modelUID="r:00000000-0000-4000-0000-011c8959029e(jetbrains.mps.lang.editor.structure)" version="32" implicit="yes" />
+ <import index="tpck" modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" implicit="yes" />
+ <roots>
+ <node type="tpc2.ConceptEditorDeclaration" typeId="tpc2.1071666914219" id="2339873612001933429">
+ <link role="conceptDeclaration" roleId="tpc2.1166049300910" targetNodeId="h01j.3058888773154280113" resolveInfo="Calculator" />
+ </node>
+ <node type="tpc2.ConceptEditorDeclaration" typeId="tpc2.1071666914219" id="2339873612002082823">
+ <link role="conceptDeclaration" roleId="tpc2.1166049300910" targetNodeId="h01j.2339873612002082821" resolveInfo="InputField" />
+ </node>
+ <node type="tpc2.ConceptEditorDeclaration" typeId="tpc2.1071666914219" id="2339873612002087720">
+ <link role="conceptDeclaration" roleId="tpc2.1166049300910" targetNodeId="h01j.2339873612002087719" resolveInfo="OutputField" />
+ </node>
+ <node type="tpc2.ConceptEditorDeclaration" typeId="tpc2.1071666914219" id="2339873612002094872">
+ <link role="conceptDeclaration" roleId="tpc2.1166049300910" targetNodeId="h01j.2339873612002093005" resolveInfo="InputFieldReference" />
+ </node>
+ </roots>
+ <root id="2339873612001933429">
+ <node role="cellModel" roleId="tpc2.1080736633877" type="tpc2.CellModel_Collection" typeId="tpc2.1073389446423" id="2339873612001933431">
+ <node role="childCellModel" roleId="tpc2.1073389446424" type="tpc2.CellModel_Constant" typeId="tpc2.1073389577006" id="2339873612001933434">
+ <property name="text" nameId="tpc2.1073389577007" value="calculator" />
</node>
- <node role="childCellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_Property:32" id="2339873612001933436">
- <link role="relationDeclaration:32" targetNodeId="2v.1169194664001:0" resolveInfo="name" />
- <node role="styleItem:32" type="jetbrains.mps.lang.editor.structure.IndentLayoutNewLineStyleClassItem:32" id="2339873612002082832">
- <property name="flag:32" value="true" />
+ <node role="childCellModel" roleId="tpc2.1073389446424" type="tpc2.CellModel_Property" typeId="tpc2.1073389658414" id="2339873612001933436">
+ <link role="relationDeclaration" roleId="tpc2.1140103550593" targetNodeId="tpck.1169194664001" resolveInfo="name" />
+ <node role="styleItem" roleId="tpc2.1219418656006" type="tpc2.IndentLayoutNewLineStyleClassItem" typeId="tpc2.1237308012275" id="2339873612002082832">
+ <property name="flag" nameId="tpc2.1186414551515" value="true" />
</node>
</node>
- <node role="childCellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_RefNodeList:32" id="2339873612002082834">
- <link role="relationDeclaration:32" targetNodeId="1.2339873612002082831:0" />
- <node role="cellLayout:32" type="jetbrains.mps.lang.editor.structure.CellLayout_Indent:32" id="2339873612002082835" />
- <node role="styleItem:32" type="jetbrains.mps.lang.editor.structure.IndentLayoutNewLineChildrenStyleClassItem:32" id="2339873612002082836">
- <property name="flag:32" value="true" />
+ <node role="childCellModel" roleId="tpc2.1073389446424" type="tpc2.CellModel_RefNodeList" typeId="tpc2.1073390211982" id="2339873612002082834">
+ <link role="relationDeclaration" roleId="tpc2.1140103550593" targetNodeId="h01j.2339873612002082831" />
+ <node role="cellLayout" roleId="tpc2.1140524464360" type="tpc2.CellLayout_Indent" typeId="tpc2.1237303669825" id="2339873612002082835" />
+ <node role="styleItem" roleId="tpc2.1219418656006" type="tpc2.IndentLayoutNewLineChildrenStyleClassItem" typeId="tpc2.1237375020029" id="2339873612002082836">
+ <property name="flag" nameId="tpc2.1186414551515" value="true" />
</node>
- <node role="styleItem:32" type="jetbrains.mps.lang.editor.structure.IndentLayoutNewLineStyleClassItem:32" id="2339873612002087732">
- <property name="flag:32" value="true" />
+ <node role="styleItem" roleId="tpc2.1219418656006" type="tpc2.IndentLayoutNewLineStyleClassItem" typeId="tpc2.1237308012275" id="2339873612002087732">
+ <property name="flag" nameId="tpc2.1186414551515" value="true" />
</node>
</node>
- <node role="childCellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_Constant:32" id="2339873612002087734">
- <property name="text:32" value="" />
- <node role="styleItem:32" type="jetbrains.mps.lang.editor.structure.IndentLayoutNewLineStyleClassItem:32" id="2339873612002087735">
- <property name="flag:32" value="true" />
+ <node role="childCellModel" roleId="tpc2.1073389446424" type="tpc2.CellModel_Constant" typeId="tpc2.1073389577006" id="2339873612002087734">
+ <property name="text" nameId="tpc2.1073389577007" value="" />
+ <node role="styleItem" roleId="tpc2.1219418656006" type="tpc2.IndentLayoutNewLineStyleClassItem" typeId="tpc2.1237308012275" id="2339873612002087735">
+ <property name="flag" nameId="tpc2.1186414551515" value="true" />
</node>
</node>
- <node role="childCellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_RefNodeList:32" id="2339873612002087727">
- <link role="relationDeclaration:32" targetNodeId="1.2339873612002087726:0" />
- <node role="cellLayout:32" type="jetbrains.mps.lang.editor.structure.CellLayout_Indent:32" id="2339873612002087728" />
- <node role="styleItem:32" type="jetbrains.mps.lang.editor.structure.IndentLayoutNewLineChildrenStyleClassItem:32" id="2339873612002087729">
- <property name="flag:32" value="true" />
+ <node role="childCellModel" roleId="tpc2.1073389446424" type="tpc2.CellModel_RefNodeList" typeId="tpc2.1073390211982" id="2339873612002087727">
+ <link role="relationDeclaration" roleId="tpc2.1140103550593" targetNodeId="h01j.2339873612002087726" />
+ <node role="cellLayout" roleId="tpc2.1140524464360" type="tpc2.CellLayout_Indent" typeId="tpc2.1237303669825" id="2339873612002087728" />
+ <node role="styleItem" roleId="tpc2.1219418656006" type="tpc2.IndentLayoutNewLineChildrenStyleClassItem" typeId="tpc2.1237375020029" id="2339873612002087729">
+ <property name="flag" nameId="tpc2.1186414551515" value="true" />
</node>
</node>
- <node role="cellLayout:32" type="jetbrains.mps.lang.editor.structure.CellLayout_Indent:32" id="2339873612001933433" />
+ <node role="cellLayout" roleId="tpc2.1106270802874" type="tpc2.CellLayout_Indent" typeId="tpc2.1237303669825" id="2339873612001933433" />
</node>
- </node>
- <node type="jetbrains.mps.lang.editor.structure.ConceptEditorDeclaration:32" id="2339873612002082823">
- <link role="conceptDeclaration:32" targetNodeId="1.2339873612002082821:0" resolveInfo="InputField" />
- <node role="cellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_Collection:32" id="2339873612002082825">
- <node role="childCellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_Constant:32" id="2339873612002082828">
- <property name="text:32" value="input" />
+ </root>
+ <root id="2339873612002082823">
+ <node role="cellModel" roleId="tpc2.1080736633877" type="tpc2.CellModel_Collection" typeId="tpc2.1073389446423" id="2339873612002082825">
+ <node role="childCellModel" roleId="tpc2.1073389446424" type="tpc2.CellModel_Constant" typeId="tpc2.1073389577006" id="2339873612002082828">
+ <property name="text" nameId="tpc2.1073389577007" value="input" />
</node>
- <node role="childCellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_Property:32" id="2339873612002082830">
- <link role="relationDeclaration:32" targetNodeId="2v.1169194664001:0" resolveInfo="name" />
+ <node role="childCellModel" roleId="tpc2.1073389446424" type="tpc2.CellModel_Property" typeId="tpc2.1073389658414" id="2339873612002082830">
+ <link role="relationDeclaration" roleId="tpc2.1140103550593" targetNodeId="tpck.1169194664001" resolveInfo="name" />
+ <node role="styleItem" roleId="tpc2.1219418656006" type="tpc2.BackgroundColorStyleClassItem" typeId="tpc2.1186404574412" id="6766386558794066481">
+ <property name="color" nameId="tpc2.1186403713874" value="green" />
+ </node>
</node>
- <node role="cellLayout:32" type="jetbrains.mps.lang.editor.structure.CellLayout_Indent:32" id="2339873612002082827" />
+ <node role="cellLayout" roleId="tpc2.1106270802874" type="tpc2.CellLayout_Indent" typeId="tpc2.1237303669825" id="2339873612002082827" />
</node>
- </node>
- <node type="jetbrains.mps.lang.editor.structure.ConceptEditorDeclaration:32" id="2339873612002087720">
- <link role="conceptDeclaration:32" targetNodeId="1.2339873612002087719:0" resolveInfo="OutputField" />
- <node role="cellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_Collection:32" id="2339873612002087722">
- <node role="childCellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_Constant:32" id="2339873612002087725">
- <property name="text:32" value="output" />
+ </root>
+ <root id="2339873612002087720">
+ <node role="cellModel" roleId="tpc2.1080736633877" type="tpc2.CellModel_Collection" typeId="tpc2.1073389446423" id="2339873612002087722">
+ <node role="childCellModel" roleId="tpc2.1073389446424" type="tpc2.CellModel_Constant" typeId="tpc2.1073389577006" id="2339873612002087725">
+ <property name="text" nameId="tpc2.1073389577007" value="output" />
</node>
- <node role="childCellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_RefNode:32" id="2339873612002089361">
- <link role="relationDeclaration:32" targetNodeId="1.2339873612002089359:0" />
+ <node role="childCellModel" roleId="tpc2.1073389446424" type="tpc2.CellModel_RefNode" typeId="tpc2.1073389882823" id="2339873612002089361">
+ <link role="relationDeclaration" roleId="tpc2.1140103550593" targetNodeId="h01j.2339873612002089359" />
</node>
- <node role="cellLayout:32" type="jetbrains.mps.lang.editor.structure.CellLayout_Indent:32" id="2339873612002087724" />
+ <node role="cellLayout" roleId="tpc2.1106270802874" type="tpc2.CellLayout_Indent" typeId="tpc2.1237303669825" id="2339873612002087724" />
</node>
- </node>
- <node type="jetbrains.mps.lang.editor.structure.ConceptEditorDeclaration:32" id="2339873612002094872">
- <link role="conceptDeclaration:32" targetNodeId="1.2339873612002093005:0" resolveInfo="InputFieldReference" />
- <node role="cellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_RefCell:32" id="2339873612002094874">
- <link role="relationDeclaration:32" targetNodeId="1.2339873612002093006:0" />
- <node role="editorComponent:32" type="jetbrains.mps.lang.editor.structure.InlineEditorComponent:32" id="2339873612002094875">
- <node role="cellModel:32" type="jetbrains.mps.lang.editor.structure.CellModel_Property:32" id="2339873612002094877">
- <property name="readOnly:32" value="true" />
- <link role="relationDeclaration:32" targetNodeId="2v.1169194664001:0" resolveInfo="name" />
+ </root>
+ <root id="2339873612002094872">
+ <node role="cellModel" roleId="tpc2.1080736633877" type="tpc2.CellModel_RefCell" typeId="tpc2.1088013125922" id="2339873612002094874">
+ <link role="relationDeclaration" roleId="tpc2.1140103550593" targetNodeId="h01j.2339873612002093006" />
+ <node role="editorComponent" roleId="tpc2.1088186146602" type="tpc2.InlineEditorComponent" typeId="tpc2.1088185857835" id="2339873612002094875">
+ <node role="cellModel" roleId="tpc2.1080736633877" type="tpc2.CellModel_Property" typeId="tpc2.1073389658414" id="2339873612002094877">
+ <property name="readOnly" nameId="tpc2.1140017977771" value="true" />
+ <link role="relationDeclaration" roleId="tpc2.1140103550593" targetNodeId="tpck.1169194664001" resolveInfo="name" />
</node>
</node>
</node>
- </node>
+ </root>
</model>
View
123 languages/Calculator/languageModels/intentions.mps
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<model modelUID="r:4ce35253-7730-4e7b-9e99-93d3c9287177(Calculator.intentions)">
+ <persistence version="7" />
+ <language namespace="21560302-1e32-4533-bc15-78171e32e68f(Calculator)" />
+ <language namespace="d7a92d38-f7db-40d0-8431-763b0c3c9f20(jetbrains.mps.lang.intentions)" />
+ <language namespace="13744753-c81f-424a-9c1b-cf8943bf4e86(jetbrains.mps.lang.sharedConcepts)" />
+ <devkit namespace="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
+ <import index="h01j" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
+ <import index="tpee" modelUID="r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)" version="3" />
+ <import index="tpck" modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" implicit="yes" />
+ <import index="tp25" modelUID="r:00000000-0000-4000-0000-011c89590301(jetbrains.mps.lang.smodel.structure)" version="-1" implicit="yes" />
+ <import index="tp3j" modelUID="r:00000000-0000-4000-0000-011c89590353(jetbrains.mps.lang.intentions.structure)" version="8" implicit="yes" />
+ <roots>
+ <node type="tp3j.IntentionDeclaration" typeId="tp3j.1192794744107" id="6766386558794101444">
+ <property name="name" nameId="tpck.1169194664001" value="DoubleRate" />
+ <link role="forConcept" roleId="tp3j.2522969319638198290" targetNodeId="tpee.1068580320020" resolveInfo="IntegerConstant" />
+ </node>
+ </roots>
+ <root id="6766386558794101444">
+ <node role="descriptionFunction" roleId="tp3j.2522969319638093993" type="tp3j.DescriptionBlock" typeId="tp3j.1192794782375" id="6766386558794101445">
+ <node role="body" roleId="tpee.1137022507850" type="tpee.StatementList" typeId="tpee.1068580123136" id="6766386558794101446">
+ <node role="statement" roleId="tpee.1068581517665" type="tpee.ExpressionStatement" typeId="tpee.1068580123155" id="6766386558794110371">
+ <node role="expression" roleId="tpee.1068580123156" type="tpee.StringLiteral" typeId="tpee.1070475926800" id="6766386558794110372">
+ <property name="value" nameId="tpee.1070475926801" value="Double the Rate" />
+ </node>
+ </node>
+ </node>
+ </node>
+ <node role="executeFunction" roleId="tp3j.2522969319638198291" type="tp3j.ExecuteBlock" typeId="tp3j.1192795911897" id="6766386558794101447">
+ <node role="body" roleId="tpee.1137022507850" type="tpee.StatementList" typeId="tpee.1068580123136" id="6766386558794101448">
+ <node role="statement" roleId="tpee.1068581517665" type="tpee.LocalVariableDeclarationStatement" typeId="tpee.1068581242864" id="6766386558794117569">
+ <node role="localVariableDeclaration" roleId="tpee.1068581242865" type="tpee.LocalVariableDeclaration" typeId="tpee.1068581242863" id="6766386558794117570">
+ <property name="name" nameId="tpck.1169194664001" value="newNode" />
+ <node role="type" roleId="tpee.5680397130376446158" type="tp25.SNodeType" typeId="tp25.1138055754698" id="6766386558794117571">
+ <link role="concept" roleId="tp25.1138405853777" targetNodeId="tpee.1068580320020" resolveInfo="IntegerConstant" />
+ </node>
+ <node role="initializer" roleId="tpee.1068431790190" type="tpee.GenericNewExpression" typeId="tpee.1145552977093" id="6766386558794117572">
+ <node role="creator" roleId="tpee.1145553007750" type="tp25.SNodeCreator" typeId="tp25.1180636770613" id="6766386558794117573">
+ <node role="createdType" roleId="tp25.1180636770616" type="tp25.SNodeType" typeId="tp25.1138055754698" id="6766386558794117574">
+ <link role="concept" roleId="tp25.1138405853777" targetNodeId="tpee.1068580320020" resolveInfo="IntegerConstant" />
+ </node>
+ </node>
+ </node>
+ </node>
+ </node>
+ <node role="statement" roleId="tpee.1068581517665" type="tpee.LocalVariableDeclarationStatement" typeId="tpee.1068581242864" id="6766386558794118594">
+ <node role="localVariableDeclaration" roleId="tpee.1068581242865" type="tpee.LocalVariableDeclaration" typeId="tpee.1068581242863" id="6766386558794118595">
+ <property name="name" nameId="tpck.1169194664001" value="currentValue" />
+ <node role="type" roleId="tpee.5680397130376446158" type="tpee.IntegerType" typeId="tpee.1070534370425" id="6766386558794118596" />
+ <node role="initializer" roleId="tpee.1068431790190" type="tpee.DotExpression" typeId="tpee.1197027756228" id="6766386558794118597">
+ <node role="operand" roleId="tpee.1197027771414" type="tp3j.ConceptFunctionParameter_node" typeId="tp3j.1192796902958" id="6766386558794118598" />
+ <node role="operation" roleId="tpee.1197027833540" type="tp25.SPropertyAccess" typeId="tp25.1138056022639" id="6766386558794118599">
+ <link role="property" roleId="tp25.1138056395725" targetNodeId="tpee.1068580320021" resolveInfo="value" />
+ </node>
+ </node>
+ </node>
+ </node>
+ <node role="statement" roleId="tpee.1068581517665" type="tpee.IfStatement" typeId="tpee.1068580123159" id="6766386558794118601">
+ <node role="condition" roleId="tpee.1068580123160" type="tpee.LessThanExpression" typeId="tpee.1081506773034" id="6766386558794118605">
+ <node role="rightExpression" roleId="tpee.1081773367579" type="tpee.IntegerConstant" typeId="tpee.1068580320020" id="6766386558794118608">
+ <property name="value" nameId="tpee.1068580320021" value="5000" />
+ </node>
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.LocalVariableReference" typeId="tpee.1068581242866" id="6766386558794118604">
+ <link role="variableDeclaration" roleId="tpee.1068581517664" targetNodeId="6766386558794118595" resolveInfo="currentValue" />
+ </node>
+ </node>
+ <node role="ifTrue" roleId="tpee.1068580123161" type="tpee.StatementList" typeId="tpee.1068580123136" id="6766386558794118603">
+ <node role="statement" roleId="tpee.1068581517665" type="tpee.ExpressionStatement" typeId="tpee.1068580123155" id="6766386558794117576">
+ <node role="expression" roleId="tpee.1068580123156" type="tpee.AssignmentExpression" typeId="tpee.1068498886294" id="6766386558794117583">
+ <node role="rValue" roleId="tpee.1068498886297" type="tpee.MulExpression" typeId="tpee.1092119917967" id="6766386558794117593">
+ <node role="rightExpression" roleId="tpee.1081773367579" type="tpee.IntegerConstant" typeId="tpee.1068580320020" id="6766386558794117596">
+ <property name="value" nameId="tpee.1068580320021" value="2" />
+ </node>
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.LocalVariableReference" typeId="tpee.1068581242866" id="6766386558794118600">
+ <link role="variableDeclaration" roleId="tpee.1068581517664" targetNodeId="6766386558794118595" resolveInfo="currentValue" />
+ </node>
+ </node>
+ <node role="lValue" roleId="tpee.1068498886295" type="tpee.DotExpression" typeId="tpee.1197027756228" id="6766386558794117578">
+ <node role="operand" roleId="tpee.1197027771414" type="tpee.LocalVariableReference" typeId="tpee.1068581242866" id="6766386558794117577">
+ <link role="variableDeclaration" roleId="tpee.1068581517664" targetNodeId="6766386558794117570" resolveInfo="newNode" />
+ </node>
+ <node role="operation" roleId="tpee.1197027833540" type="tp25.SPropertyAccess" typeId="tp25.1138056022639" id="6766386558794117582">
+ <link role="property" roleId="tp25.1138056395725" targetNodeId="tpee.1068580320021" resolveInfo="value" />
+ </node>
+ </node>
+ </node>
+ </node>
+ <node role="statement" roleId="tpee.1068581517665" type="tpee.ExpressionStatement" typeId="tpee.1068580123155" id="6766386558794110373">
+ <node role="expression" roleId="tpee.1068580123156" type="tpee.DotExpression" typeId="tpee.1197027756228" id="6766386558794117597">
+ <node role="operand" roleId="tpee.1197027771414" type="tp3j.ConceptFunctionParameter_node" typeId="tp3j.1192796902958" id="6766386558794110374" />
+ <node role="operation" roleId="tpee.1197027833540" type="tp25.Node_ReplaceWithAnotherOperation" typeId="tp25.1140131837776" id="6766386558794117601">
+ <node role="replacementNode" roleId="tp25.1140131861877" type="tpee.LocalVariableReference" typeId="tpee.1068581242866" id="6766386558794117603">
+ <link role="variableDeclaration" roleId="tpee.1068581517664" targetNodeId="6766386558794117570" resolveInfo="newNode" />
+ </node>
+ </node>
+ </node>
+ </node>
+ </node>
+ </node>
+ </node>
+ </node>
+ <node role="isApplicableFunction" roleId="tp3j.2522969319638093995" type="tp3j.IsApplicableBlock" typeId="tp3j.1192795771125" id="6766386558794118442">
+ <node role="body" roleId="tpee.1137022507850" type="tpee.StatementList" typeId="tpee.1068580123136" id="6766386558794118443">
+ <node role="statement" roleId="tpee.1068581517665" type="tpee.ExpressionStatement" typeId="tpee.1068580123155" id="6766386558794118444">
+ <node role="expression" roleId="tpee.1068580123156" type="tpee.NotEqualsExpression" typeId="tpee.1073239437375" id="6766386558794118455">
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.DotExpression" typeId="tpee.1197027756228" id="6766386558794118446">
+ <node role="operand" roleId="tpee.1197027771414" type="tp3j.ConceptFunctionParameter_node" typeId="tp3j.1192796902958" id="6766386558794118445" />
+ <node role="operation" roleId="tpee.1197027833540" type="tp25.Node_GetAncestorOperation" typeId="tp25.1171407110247" id="6766386558794118450">
+ <node role="parameter" roleId="tp25.1144104376918" type="tp25.OperationParm_Concept" typeId="tp25.1144101972840" id="6766386558794118451">
+ <node role="conceptArgument" roleId="tp25.1207343664468" type="tp25.RefConcept_Reference" typeId="tp25.1177026924588" id="6766386558794118454">
+ <link role="conceptDeclaration" roleId="tp25.1177026940964" targetNodeId="h01j.2339873612002087719" resolveInfo="OutputField" />
+ </node>
+ </node>
+ </node>
+ </node>
+ <node role="rightExpression" roleId="tpee.1081773367579" type="tpee.NullLiteral" typeId="tpee.1070534058343" id="6766386558794118458" />
+ </node>
+ </node>
+ </node>
+ </node>
+ </root>
+</model>
+
View
8 languages/Calculator/languageModels/structure.metadata
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<metadata>
- <entry>
- <key>version</key>
- <value>0</value>
- </entry>
-</metadata>
-
View
120 languages/Calculator/languageModels/structure.mps
@@ -1,63 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
-<model modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)">
- <persistence version="4" />
- <refactoringHistory />
+<model modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0">
+ <persistence version="7" />
<language namespace="21560302-1e32-4533-bc15-78171e32e68f(Calculator)" />
<language namespace="c72da2b9-7cce-4447-8389-f407dc1158b7(jetbrains.mps.lang.structure)" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c89590292(jetbrains.mps.lang.structure.structure)" version="0" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)" version="3" />
<devkit namespace="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
- <maxImportIndex value="1" />
- <import index="1" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
- <visible index="2" modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" />
- <node type="jetbrains.mps.lang.structure.structure.ConceptDeclaration:0" id="3058888773154280113">
- <property name="name:0" value="Calculator" />
- <property name="rootable:0" value="true" />
- <link role="extends:0" targetNodeId="2v.1133920641626:0" resolveInfo="BaseConcept" />
- <node role="linkDeclaration:0" type="jetbrains.mps.lang.structure.structure.LinkDeclaration:0" id="2339873612002082831">
- <property name="metaClass:0" value="aggregation" />
- <property name="role:0" value="inputField" />
- <property name="sourceCardinality:0" value="0..n" />
- <link role="target:0" targetNodeId="2339873612002082821:0" resolveInfo="InputField" />
- </node>
- <node role="linkDeclaration:0" type="jetbrains.mps.lang.structure.structure.LinkDeclaration:0" id="2339873612002087726">
- <property name="metaClass:0" value="aggregation" />
- <property name="role:0" value="outputField" />
- <property name="sourceCardinality:0" value="0..n" />
- <link role="target:0" targetNodeId="2339873612002087719:0" resolveInfo="OutputField" />
- </node>
- <node role="implements:0" type="jetbrains.mps.lang.structure.structure.InterfaceConceptReference:0" id="3058888773154280114">
- <link role="intfc:0" targetNodeId="2v.1169194658468:0" resolveInfo="INamedConcept" />
- </node>
- </node>
- <node type="jetbrains.mps.lang.structure.structure.ConceptDeclaration:0" id="2339873612002082821">
- <property name="name:0" value="InputField" />
- <link role="extends:0" targetNodeId="2v.1133920641626:0" resolveInfo="BaseConcept" />
- <node role="implements:0" type="jetbrains.mps.lang.structure.structure.InterfaceConceptReference:0" id="2339873612002082822">
- <link role="intfc:0" targetNodeId="2v.1169194658468:0" resolveInfo="INamedConcept" />
- </node>
- </node>
- <visible index="3" modelUID="r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)" />
- <node type="jetbrains.mps.lang.structure.structure.ConceptDeclaration:0" id="2339873612002087719">
- <property name="name:0" value="OutputField" />
- <link role="extends:0" targetNodeId="2v.1133920641626:0" resolveInfo="BaseConcept" />
- <node role="linkDeclaration:0" type="jetbrains.mps.lang.structure.structure.LinkDeclaration:0" id="2339873612002089359">
- <property name="metaClass:0" value="aggregation" />
- <property name="role:0" value="expression" />
- <property name="sourceCardinality:0" value="1" />
- <link role="target:0" targetNodeId="3v.1068431790191:3" resolveInfo="Expression" />
- </node>
- </node>
- <node type="jetbrains.mps.lang.structure.structure.ConceptDeclaration:0" id="2339873612002093005">
- <property name="name:0" value="InputFieldReference" />
- <link role="extends:0" targetNodeId="3v.1068431790191:3" resolveInfo="Expression" />
- <node role="linkDeclaration:0" type="jetbrains.mps.lang.structure.structure.LinkDeclaration:0" id="2339873612002093006">
- <property name="metaClass:0" value="reference" />
- <property name="role:0" value="field" />
- <property name="sourceCardinality:0" value="1" />
- <link role="target:0" targetNodeId="2339873612002082821:0" resolveInfo="InputField" />
- </node>
- </node>
+ <import index="tpck" modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" implicit="yes" />
+ <import index="tpce" modelUID="r:00000000-0000-4000-0000-011c89590292(jetbrains.mps.lang.structure.structure)" version="0" implicit="yes" />
+ <import index="tpee" modelUID="r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)" version="3" implicit="yes" />
+ <import index="h01j" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" implicit="yes" />
+ <roots>
+ <node type="tpce.ConceptDeclaration" typeId="tpce.1071489090640" id="3058888773154280113">
+ <property name="name" nameId="tpck.1169194664001" value="Calculator" />
+ <property name="rootable" nameId="tpce.1096454100552" value="true" />
+ <link role="extends" roleId="tpce.1071489389519" targetNodeId="tpck.1133920641626" resolveInfo="BaseConcept" />
+ </node>
+ <node type="tpce.ConceptDeclaration" typeId="tpce.1071489090640" id="2339873612002082821">
+ <property name="name" nameId="tpck.1169194664001" value="InputField" />
+ <link role="extends" roleId="tpce.1071489389519" targetNodeId="tpck.1133920641626" resolveInfo="BaseConcept" />
+ </node>
+ <node type="tpce.ConceptDeclaration" typeId="tpce.1071489090640" id="2339873612002087719">
+ <property name="name" nameId="tpck.1169194664001" value="OutputField" />
+ <link role="extends" roleId="tpce.1071489389519" targetNodeId="tpck.1133920641626" resolveInfo="BaseConcept" />
+ </node>
+ <node type="tpce.ConceptDeclaration" typeId="tpce.1071489090640" id="2339873612002093005">
+ <property name="name" nameId="tpck.1169194664001" value="InputFieldReference" />
+ <link role="extends" roleId="tpce.1071489389519" targetNodeId="tpee.1068431790191" resolveInfo="Expression" />
+ </node>
+ </roots>
+ <root id="3058888773154280113">
+ <node role="linkDeclaration" roleId="tpce.1071489727083" type="tpce.LinkDeclaration" typeId="tpce.1071489288298" id="2339873612002082831">
+ <property name="metaClass" nameId="tpce.1071599937831" value="aggregation" />
+ <property name="role" nameId="tpce.1071599776563" value="inputField" />
+ <property name="sourceCardinality" nameId="tpce.1071599893252" value="0..n" />
+ <link role="target" roleId="tpce.1071599976176" targetNodeId="2339873612002082821" resolveInfo="InputField" />
+ </node>
+ <node role="linkDeclaration" roleId="tpce.1071489727083" type="tpce.LinkDeclaration" typeId="tpce.1071489288298" id="2339873612002087726">
+ <property name="metaClass" nameId="tpce.1071599937831" value="aggregation" />
+ <property name="role" nameId="tpce.1071599776563" value="outputField" />
+ <property name="sourceCardinality" nameId="tpce.1071599893252" value="0..n" />
+ <link role="target" roleId="tpce.1071599976176" targetNodeId="2339873612002087719" resolveInfo="OutputField" />
+ </node>
+ <node role="implements" roleId="tpce.1169129564478" type="tpce.InterfaceConceptReference" typeId="tpce.1169127622168" id="3058888773154280114">
+ <link role="intfc" roleId="tpce.1169127628841" targetNodeId="tpck.1169194658468" resolveInfo="INamedConcept" />
+ </node>
+ </root>
+ <root id="2339873612002082821">
+ <node role="implements" roleId="tpce.1169129564478" type="tpce.InterfaceConceptReference" typeId="tpce.1169127622168" id="2339873612002082822">
+ <link role="intfc" roleId="tpce.1169127628841" targetNodeId="tpck.1169194658468" resolveInfo="INamedConcept" />
+ </node>
+ </root>
+ <root id="2339873612002087719">
+ <node role="linkDeclaration" roleId="tpce.1071489727083" type="tpce.LinkDeclaration" typeId="tpce.1071489288298" id="2339873612002089359">
+ <property name="metaClass" nameId="tpce.1071599937831" value="aggregation" />
+ <property name="role" nameId="tpce.1071599776563" value="expression" />
+ <property name="sourceCardinality" nameId="tpce.1071599893252" value="1" />
+ <link role="target" roleId="tpce.1071599976176" targetNodeId="tpee.1068431790191" resolveInfo="Expression" />
+ </node>
+ </root>
+ <root id="2339873612002093005">
+ <node role="linkDeclaration" roleId="tpce.1071489727083" type="tpce.LinkDeclaration" typeId="tpce.1071489288298" id="2339873612002093006">
+ <property name="metaClass" nameId="tpce.1071599937831" value="reference" />
+ <property name="role" nameId="tpce.1071599776563" value="field" />
+ <property name="sourceCardinality" nameId="tpce.1071599893252" value="1" />
+ <link role="target" roleId="tpce.1071599976176" targetNodeId="2339873612002082821" resolveInfo="InputField" />
+ </node>
+ </root>
</model>
View
55 languages/Calculator/languageModels/typesystem.mps
@@ -1,39 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<model modelUID="r:9c1b136a-ed0f-40ea-9c80-a6c59cb0dea7(Calculator.typesystem)">
- <persistence version="4" />
- <refactoringHistory />
+ <persistence version="7" />
<language namespace="21560302-1e32-4533-bc15-78171e32e68f(Calculator)" />
<language namespace="7a5dda62-9140-4668-ab76-d5ed1746f2b2(jetbrains.mps.lang.typesystem)" />
<language namespace="ceab5195-25ea-4f22-9b92-103b95ca8c0c(jetbrains.mps.lang.core)" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)" version="3" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c895902b4(jetbrains.mps.lang.typesystem.structure)" version="3" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c8959034b(jetbrains.mps.lang.quotation.structure)" version="0" />
+ <language namespace="f3061a53-9226-4cc5-a443-f952ceaf5816(jetbrains.mps.baseLanguage)" />
+ <language namespace="3a13115c-633c-4c5c-bbcc-75c4219e9555(jetbrains.mps.lang.quotation)" />
+ <language namespace="7866978e-a0f0-4cc7-81bc-4d213d9375e1(jetbrains.mps.lang.smodel)" />
<devkit namespace="fbc25dd2-5da4-483a-8b19-70928e1b62d7(jetbrains.mps.devkit.general-purpose)" />
- <maxImportIndex value="1" />
- <import index="1" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
- <node type="jetbrains.mps.lang.typesystem.structure.InferenceRule:3" id="2339873612002239864">
- <property name="name:3" value="typeof_InputFieldReference" />
- <node role="body:3" type="jetbrains.mps.baseLanguage.structure.StatementList:3" id="2339873612002239865">
- <node role="statement:3" type="jetbrains.mps.lang.typesystem.structure.CreateEquationStatement:3" id="2339873612002239871">
- <node role="rightExpression:3" type="jetbrains.mps.lang.typesystem.structure.NormalTypeClause:3" id="2339873612002239875">
- <node role="normalType:3" type="jetbrains.mps.lang.quotation.structure.Quotation:0" id="2339873612002239876">
- <node role="quotedNode:0" type="jetbrains.mps.baseLanguage.structure.IntegerType:3" id="2339873612002239878" />
+ <import index="h01j" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
+ <import index="tpck" modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" implicit="yes" />
+ <import index="tpee" modelUID="r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)" version="3" implicit="yes" />
+ <import index="tpd4" modelUID="r:00000000-0000-4000-0000-011c895902b4(jetbrains.mps.lang.typesystem.structure)" version="3" implicit="yes" />
+ <import index="tp25" modelUID="r:00000000-0000-4000-0000-011c89590301(jetbrains.mps.lang.smodel.structure)" version="-1" implicit="yes" />
+ <roots>
+ <node type="tpd4.InferenceRule" typeId="tpd4.1174643105530" id="2339873612002239864">
+ <property name="name" nameId="tpck.1169194664001" value="typeof_InputFieldReference" />
+ </node>
+ </roots>
+ <root id="2339873612002239864">
+ <node role="body" roleId="tpd4.1195213635060" type="tpee.StatementList" typeId="tpee.1068580123136" id="2339873612002239865">
+ <node role="statement" roleId="tpee.1068581517665" type="tpd4.CreateEquationStatement" typeId="tpd4.1174658326157" id="2339873612002239871">
+ <node role="leftExpression" roleId="tpd4.1174660783413" type="tpd4.NormalTypeClause" typeId="tpd4.1185788614172" id="2339873612002239874">
+ <node role="normalType" roleId="tpd4.1185788644032" type="tpd4.TypeOfExpression" typeId="tpd4.1174657487114" id="2339873612002239868">
+ <node role="term" roleId="tpd4.1174657509053" type="tpd4.ApplicableNodeReference" typeId="tpd4.1174650418652" id="2339873612002239870">
+ <link role="applicableNode" roleId="tpd4.1174650432090" targetNodeId="2339873612002239866" resolveInfo="inputFieldReference" />
+ </node>
</node>
</node>
- <node role="leftExpression:3" type="jetbrains.mps.lang.typesystem.structure.NormalTypeClause:3" id="2339873612002239874">
- <node role="normalType:3" type="jetbrains.mps.lang.typesystem.structure.TypeOfExpression:3" id="2339873612002239868">
- <node role="term:3" type="jetbrains.mps.lang.typesystem.structure.ApplicableNodeReference:3" id="2339873612002239870">
- <link role="applicableNode:3" targetNodeId="2339873612002239866" resolveInfo="inputFieldReference" />
+ <node role="rightExpression" roleId="tpd4.1174660783414" type="tpd4.NormalTypeClause" typeId="tpd4.1185788614172" id="3195134851387366683">
+ <node role="normalType" roleId="tpd4.1185788644032" type="tpee.GenericNewExpression" typeId="tpee.1145552977093" id="3195134851387366684">
+ <node role="creator" roleId="tpee.1145553007750" type="tp25.SNodeCreator" typeId="tp25.1180636770613" id="3195134851387366686">
+ <node role="createdType" roleId="tp25.1180636770616" type="tp25.SNodeType" typeId="tp25.1138055754698" id="3195134851387366687">
+ <link role="concept" roleId="tp25.1138405853777" targetNodeId="tpee.1070534370425" resolveInfo="IntegerType" />
+ </node>
</node>
</node>
</node>
</node>
</node>
- <node role="applicableNode:3" type="jetbrains.mps.lang.typesystem.structure.ConceptReference:3" id="2339873612002239866">
- <property name="name:3" value="inputFieldReference" />
- <link role="concept:3" targetNodeId="1.2339873612002093005:0" resolveInfo="InputFieldReference" />
+ <node role="applicableNode" roleId="tpd4.1174648101952" type="tpd4.ConceptReference" typeId="tpd4.1174642788531" id="2339873612002239866">
+ <property name="name" nameId="tpck.1169194664001" value="inputFieldReference" />
+ <link role="concept" roleId="tpd4.1174642800329" targetNodeId="h01j.2339873612002093005" resolveInfo="InputFieldReference" />
</node>
- </node>
+ </root>
</model>
View
118 solutions/Calculator.sandbox/models/sandbox.mps
@@ -1,41 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<model modelUID="r:1784f14a-70d1-40e8-88e4-b5fddcf328ea(Calculator.sandbox.sandbox)">
- <persistence version="4" />
- <refactoringHistory />
+ <persistence version="7" />
<language namespace="21560302-1e32-4533-bc15-78171e32e68f(Calculator)" />
<language namespace="f3061a53-9226-4cc5-a443-f952ceaf5816(jetbrains.mps.baseLanguage)" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" />
- <languageAspect modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" />
- <languageAspect modelUID="r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)" version="3" />
- <maxImportIndex value="0" />
- <node type="Calculator.structure.Calculator:0" id="2339873612002082820">
- <property name="name:0" value="My2011Stuff" />
- <node role="outputField:0" type="Calculator.structure.OutputField:0" id="2339873612002089334">
- <node role="expression:0" type="jetbrains.mps.baseLanguage.structure.PlusExpression:3" id="5969289261497384106">
- <node role="rightExpression:3" type="Calculator.structure.InputFieldReference:0" id="5969289261497384109">
- <link role="field:0" targetNodeId="2339873612002089333" resolveInfo="Groovy" />
- </node>
- <node role="leftExpression:3" type="jetbrains.mps.baseLanguage.structure.MinusExpression:3" id="5969289261497384102">
- <node role="leftExpression:3" type="jetbrains.mps.baseLanguage.structure.PlusExpression:3" id="5969289261497384097">
- <node role="leftExpression:3" type="jetbrains.mps.baseLanguage.structure.IntegerConstant:3" id="5969289261497384096">
- <property name="value:3" value="1" />
+ <import index="tpck" modelUID="r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)" version="0" implicit="yes" />
+ <import index="h01j" modelUID="r:a97c2fcd-b950-4f67-90d2-868c73f6be51(Calculator.structure)" version="0" implicit="yes" />
+ <import index="tpee" modelUID="r:00000000-0000-4000-0000-011c895902ca(jetbrains.mps.baseLanguage.structure)" version="3" implicit="yes" />
+ <roots>
+ <node type="h01j.Calculator" typeId="h01j.3058888773154280113" id="2339873612002082820">
+ <property name="name" nameId="tpck.1169194664001" value="My2010Rates" />
+ </node>
+ <node type="h01j.Calculator" typeId="h01j.3058888773154280113" id="6766386558794066429">
+ <property name="name" nameId="tpck.1169194664001" value="My2011Rates" />
+ </node>
+ </roots>
+ <root id="2339873612002082820">
+ <node role="outputField" roleId="h01j.2339873612002087726" type="h01j.OutputField" typeId="h01j.2339873612002087719" id="2339873612002089334">
+ <node role="expression" roleId="h01j.2339873612002089359" type="tpee.PlusExpression" typeId="tpee.1068581242875" id="5969289261497384106">
+ <node role="rightExpression" roleId="tpee.1081773367579" type="h01j.InputFieldReference" typeId="h01j.2339873612002093005" id="5969289261497384109">
+ <link role="field" roleId="h01j.2339873612002093006" targetNodeId="2339873612002089333" resolveInfo="Groovy" />
+ </node>
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.MinusExpression" typeId="tpee.1068581242869" id="5969289261497384102">
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.PlusExpression" typeId="tpee.1068581242875" id="5969289261497384097">
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.IntegerConstant" typeId="tpee.1068580320020" id="5969289261497384096">
+ <property name="value" nameId="tpee.1068580320021" value="1" />
+ </node>
+ <node role="rightExpression" roleId="tpee.1081773367579" type="tpee.IntegerConstant" typeId="tpee.1068580320020" id="5969289261497384101">
+ <property name="value" nameId="tpee.1068580320021" value="2" />
+ </node>
+ </node>
+ <node role="rightExpression" roleId="tpee.1081773367579" type="tpee.IntegerConstant" typeId="tpee.1068580320020" id="5969289261497384105">
+ <property name="value" nameId="tpee.1068580320021" value="5" />
+ </node>
+ </node>
+ </node>
+ </node>
+ <node role="outputField" roleId="h01j.2339873612002087726" type="h01j.OutputField" typeId="h01j.2339873612002087719" id="3195134851387363023">
+ <node role="expression" roleId="h01j.2339873612002089359" type="tpee.MinusExpression" typeId="tpee.1068581242869" id="3195134851387363026">
+ <node role="rightExpression" roleId="tpee.1081773367579" type="h01j.InputFieldReference" typeId="h01j.2339873612002093005" id="3195134851387363029">
+ <link role="field" roleId="h01j.2339873612002093006" targetNodeId="2339873612002089333" resolveInfo="Groovy" />
+ </node>
+ <node role="leftExpression" roleId="tpee.1081773367580" type="h01j.InputFieldReference" typeId="h01j.2339873612002093005" id="3195134851387363025">
+ <link role="field" roleId="h01j.2339873612002093006" targetNodeId="2339873612002087718" resolveInfo="Java" />
+ </node>
+ </node>
+ </node>
+ <node role="outputField" roleId="h01j.2339873612002087726" type="h01j.OutputField" typeId="h01j.2339873612002087719" id="3195134851387363030">
+ <node role="expression" roleId="h01j.2339873612002089359" type="tpee.PlusExpression" typeId="tpee.1068581242875" id="3195134851387363032">
+ <node role="rightExpression" roleId="tpee.1081773367579" type="tpee.IntegerConstant" typeId="tpee.1068580320020" id="3195134851387363036">
+ <property name="value" nameId="tpee.1068580320021" value="20" />
+ </node>
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.IntegerConstant" typeId="tpee.1068580320020" id="3195134851387363035">
+ <property name="value" nameId="tpee.1068580320021" value="10" />
+ </node>
+ </node>
+ </node>
+ <node role="inputField" roleId="h01j.2339873612002082831" type="h01j.InputField" typeId="h01j.2339873612002082821" id="2339873612002087718">
+ <property name="name" nameId="tpck.1169194664001" value="Java" />
+ </node>
+ <node role="inputField" roleId="h01j.2339873612002082831" type="h01j.InputField" typeId="h01j.2339873612002082821" id="2339873612002089333">
+ <property name="name" nameId="tpck.1169194664001" value="Groovy" />
+ </node>
+ </root>
+ <root id="6766386558794066429">
+ <node role="outputField" roleId="h01j.2339873612002087726" type="h01j.OutputField" typeId="h01j.2339873612002087719" id="6766386558794066441">
+ <node role="expression" roleId="h01j.2339873612002089359" type="tpee.PlusExpression" typeId="tpee.1068581242875" id="6766386558794066456">
+ <node role="rightExpression" roleId="tpee.1081773367579" type="tpee.MulExpression" typeId="tpee.1092119917967" id="6766386558794066460">
+ <node role="rightExpression" roleId="tpee.1081773367579" type="h01j.InputFieldReference" typeId="h01j.2339873612002093005" id="6766386558794066463">
+ <link role="field" roleId="h01j.2339873612002093006" targetNodeId="6766386558794066440" resolveInfo="MPS" />
+ </node>
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.IntegerConstant" typeId="tpee.1068580320020" id="6766386558794118441">
+ <property name="value" nameId="tpee.1068580320021" value="2000" />
+ </node>
+ </node>
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.PlusExpression" typeId="tpee.1068581242875" id="6766386558794066448">
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.MulExpression" typeId="tpee.1092119917967" id="6766386558794066444">
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.IntegerConstant" typeId="tpee.1068580320020" id="6766386558794066443">
+ <property name="value" nameId="tpee.1068580320021" value="100" />
</node>
- <node role="rightExpression:3" type="jetbrains.mps.baseLanguage.structure.IntegerConstant:3" id="5969289261497384101">
- <property name="value:3" value="2" />
+ <node role="rightExpression" roleId="tpee.1081773367579" type="h01j.InputFieldReference" typeId="h01j.2339873612002093005" id="6766386558794066447">
+ <link role="field" roleId="h01j.2339873612002093006" targetNodeId="6766386558794066438" resolveInfo="Java" />
</node>
</node>
- <node role="rightExpression:3" type="jetbrains.mps.baseLanguage.structure.IntegerConstant:3" id="5969289261497384105">
- <property name="value:3" value="5" />
+ <node role="rightExpression" roleId="tpee.1081773367579" type="tpee.MulExpression" typeId="tpee.1092119917967" id="6766386558794066452">
+ <node role="leftExpression" roleId="tpee.1081773367580" type="tpee.IntegerConstant" typeId="tpee.1068580320020" id="6766386558794066451">
+ <property name="value" nameId="tpee.1068580320021" value="500" />
+ </node>
+ <node role="rightExpression" roleId="tpee.1081773367579" type="h01j.InputFieldReference" typeId="h01j.2339873612002093005" id="6766386558794066455">
+ <link role="field" roleId="h01j.2339873612002093006" targetNodeId="6766386558794066439" resolveInfo="Groovy/Grails" />
+ </node>
</node>
</node>
</node>
</node>
- <node role="inputField:0" type="Calculator.structure.InputField:0" id="2339873612002087718">
- <property name="name:0" value="Java" />
+ <node role="inputField" roleId="h01j.2339873612002082831" type="h01j.InputField" typeId="h01j.2339873612002082821" id="6766386558794066438">
+ <property name="name" nameId="tpck.1169194664001" value="Java" />
+ </node>
+ <node role="inputField" roleId="h01j.2339873612002082831" type="h01j.InputField" typeId="h01j.2339873612002082821" id="6766386558794066439">
+ <property name="name" nameId="tpck.1169194664001" value="Groovy/Grails" />
</node>
- <node role="inputField:0" type="Calculator.structure.InputField:0" id="2339873612002089333">
- <property name="name:0" value="Groovy" />
+ <node role="inputField" roleId="h01j.2339873612002082831" type="h01j.InputField" typeId="h01j.2339873612002082821" id="6766386558794066440">
+ <property name="name" nameId="tpck.1169194664001" value="MPS" />
</node>
- </node>
+ </root>
</model>

0 comments on commit 1a049dc

Please sign in to comment.
Something went wrong with that request. Please try again.